Introduction
Developer Guide
API Documentation
- Swap Operations
- Token Operations
- Liquidity Operations
Token Operations
Fetch Crosschain Tokens
GET
/
api
/
blockchain
curl --request GET \
--url https://public-retro-staging-be.codemelt.codes/api/blockchain
{
"message": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"kyberSlug": "<string>",
"chainId": 123,
"messageReceiver": null,
"status": "<any>",
"type": "<any>",
"chainCurrencies": [
{
"id": 123,
"address": "<string>",
"chainId": 123,
"currencyId": 123,
"chain": {
"id": 123,
"name": "<string>",
"kyberSlug": "<string>",
"chainId": 123,
"messageReceiver": null,
"status": "<any>",
"type": "<any>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"type": "<any>",
"relatedCurrencyId": null,
"relatedCurrency": null,
"currency": {
"id": 123,
"name": "<string>",
"ticker": "<string>",
"decimals": 123,
"price": 123,
"relativeImagePath": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"status": "<any>"
}
Overview
This endpoint provides functionality for fetching all enabled chains for the specific client in use along with all currencies for each individual chain
Using the sdk
import api, { IConnection } from "codemelt-retro-api-sdk"
const connection: IConnection = {
host: '<enter you host url here>',
headers: {
'x-api-key': '<enter your api key here>'
}
}
const response = await api.functional.api.blockchain.getAvailableChains(
connection
)
Response
200 - application/json
The response is of type object
.
The response is of type object
.
The response is of type object
.
curl --request GET \
--url https://public-retro-staging-be.codemelt.codes/api/blockchain
{
"message": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"kyberSlug": "<string>",
"chainId": 123,
"messageReceiver": null,
"status": "<any>",
"type": "<any>",
"chainCurrencies": [
{
"id": 123,
"address": "<string>",
"chainId": 123,
"currencyId": 123,
"chain": {
"id": 123,
"name": "<string>",
"kyberSlug": "<string>",
"chainId": 123,
"messageReceiver": null,
"status": "<any>",
"type": "<any>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"type": "<any>",
"relatedCurrencyId": null,
"relatedCurrency": null,
"currency": {
"id": 123,
"name": "<string>",
"ticker": "<string>",
"decimals": 123,
"price": 123,
"relativeImagePath": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"status": "<any>"
}