Get Networks
curl --request GET \
--url https://testapi.kravata.co/api/parameters/networksimport requests
url = "https://testapi.kravata.co/api/parameters/networks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testapi.kravata.co/api/parameters/networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": 7,
"name": "SOLANA",
"status": true
},
{
"id": 4,
"name": "POLYGON",
"status": true
},
{
"id": 6,
"name": "CELO",
"status": true
}
]Wallets
Get Networks
Lists the networks available for a token. Use the id as supportedNetworkId when registering a wallet: the network must be one of the networks returned for the wallet’s token.
This endpoint is public: it does not require an access token.
Request
| Field | Type | Required | Description |
|---|---|---|---|
| token | Query | No | Token symbol, case sensitive (e.g. USDC). Without it, all networks with active pairs are returned. |
Response
An array of networks with id, name and status.
IDs can differ between test and production: always read them from the parameter endpoints of the environment you use.
GET
/
api
/
parameters
/
networks
Get Networks
curl --request GET \
--url https://testapi.kravata.co/api/parameters/networksimport requests
url = "https://testapi.kravata.co/api/parameters/networks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testapi.kravata.co/api/parameters/networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": 7,
"name": "SOLANA",
"status": true
},
{
"id": 4,
"name": "POLYGON",
"status": true
},
{
"id": 6,
"name": "CELO",
"status": true
}
]
