Introduction
Developer Guide
API Documentation
- Swap Operations
- Token Operations
- Liquidity Operations
Token Operations
Fetch Single chain Tokens
GET
/
api
/
currency
/
partners
/
{chain}
curl --request GET \
--url https://public-retro-staging-be.codemelt.codes/api/currency/partners/{chain}
{
"message": "<string>",
"data": [
{
"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"
}
],
"status": "<any>"
}
Overview
Endpoint used for the retro app for fetching all partner tokens that can be swapped on the platform
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 chain = '<enter your blockchain of usage>' //example polygon
const respTokens = await api.functional.api.currency.partners.getPartners(
apiConnection,
chain
);
Path Parameters
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/currency/partners/{chain}
{
"message": "<string>",
"data": [
{
"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"
}
],
"status": "<any>"
}