T
T
Totle Documentation
Search…
T
T
Totle Documentation
Overview
Copy and Paste Widget
API
Swap
Tokens
Exchanges
API Response
Error Messages
Operational Details
API Key
Smart Contract
Powered By
GitBook
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
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
=
true
http
.
verify_mode
=
OpenSSL
::
SSL
::
VERIFY_NONE
request
=
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
requests
url
=
"https://api.totle.com/tokens"
response
=
requests
.
request
(
"GET"
,
url
)
print
(
response
.
text
)
Previous
Swap
Next
Exchanges
Last modified
1yr ago
Copy link