Get Tokens
curl --request GET \
--url https://testapi.kravata.co/api/parameters/tokensimport requests
url = "https://testapi.kravata.co/api/parameters/tokens"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testapi.kravata.co/api/parameters/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": 1,
"token": "USDT",
"status": true
},
{
"id": 3,
"token": "USDC",
"status": true
},
{
"id": 15,
"token": "COPM",
"status": true
}
]Wallets
Get Tokens
Lists the active tokens. Use the id as supportedTokenId when registering a wallet.
This endpoint is public: it does not require an access token.
Response
An array of tokens:
| Field | Description |
|---|---|
| id | Token identifier. |
| token | Token symbol (e.g. USDC). |
| status | Whether the token is active. |
| registerDate | Date the token was added. |
| logo_base64 | Token logo, when available. |
IDs can differ between test and production: always read them from the parameter endpoints of the environment you use.
GET
/
api
/
parameters
/
tokens
Get Tokens
curl --request GET \
--url https://testapi.kravata.co/api/parameters/tokensimport requests
url = "https://testapi.kravata.co/api/parameters/tokens"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testapi.kravata.co/api/parameters/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": 1,
"token": "USDT",
"status": true
},
{
"id": 3,
"token": "USDC",
"status": true
},
{
"id": 15,
"token": "COPM",
"status": true
}
]
