Tokens
Retrieve information about tokens supported by Totle.
get
https://api.totle.com
/tokens
/tokens
Response Parameter
Description
tokens
The list of known ERC-20 tokens
name
The long name of the token
symbol
The ticker symbol of the token
address
The contract address that should be used to identify the token in API calls
decimals
The number of decimal places implemented by the tokens
tradeable
Whether the token can be traded on Totle
iconUrl
The URL of the token icon
cURL
Node
Ruby
JavaScript
Python
1
curl --request GET \
2
--url https://api.totle.com/tokens
Copied!
1
var request = require("request");
2
3
var options = {method: 'GET', url: 'https://api.totle.com/tokens'};
4
5
request(options, function (error, response, body) {
6
if (error) throw new Error(error);
7
8
console.log(body);
9
});
Copied!
1
require 'uri'
2
require 'net/http'
3
require 'openssl'
4
5
url = URI("https://api.totle.com/tokens")
6
7
http = Net::HTTP.new(url.host, url.port)
8
http.use_ssl = true
9
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
10
11
request = Net::HTTP::Get.new(url)
12
13
response = http.request(request)
14
puts response.read_body
Copied!
1
var data = null;
2
3
var xhr = new XMLHttpRequest();
4
5
xhr.addEventListener("readystatechange", function () {
6
if (this.readyState === this.DONE) {
7
console.log(this.responseText);
8
}
9
});
10
11
xhr.open("GET", "https://api.totle.com/tokens");
12
13
xhr.send(data);
14
Copied!
1
import requests
2
3
url = "https://api.totle.com/tokens"
4
5
response = requests.request("GET", url)
6
7
print(response.text)
8
Copied!
Last modified 11mo ago
Copy link