{"tokens": [{"name": "Name of Coin","symbol": "COINSYMBOL","address": "0x...372","decimals": 18,"tradable": true}]}
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 --request GET \--url https://api.totle.com/tokens
var request = require("request");var options = {method: 'GET', url: 'https://api.totle.com/tokens'};request(options, function (error, response, body) {if (error) throw new Error(error);console.log(body);});
require 'uri'require 'net/http'require 'openssl'url = URI("https://api.totle.com/tokens")http = Net::HTTP.new(url.host, url.port)http.use_ssl = truehttp.verify_mode = OpenSSL::SSL::VERIFY_NONErequest = Net::HTTP::Get.new(url)response = http.request(request)puts response.read_body
var data = null;var xhr = new XMLHttpRequest();xhr.addEventListener("readystatechange", function () {if (this.readyState === this.DONE) {console.log(this.responseText);}});xhr.open("GET", "https://api.totle.com/tokens");xhr.send(data);
import requestsurl = "https://api.totle.com/tokens"response = requests.request("GET", url)print(response.text)