Skip to main content
GET
/
api
/
blockchain
cURL
curl --request GET \
  --url https://public-beam-backend-mainnet.codemelt.codes/api/blockchain
{
  "message": "<string>",
  "data": [
    {
      "id": 123,
      "name": "<string>",
      "kyberSlug": "<string>",
      "chainId": 123,
      "messageReceiver": "<unknown>",
      "status": "<unknown>",
      "type": "<unknown>",
      "chainCurrencies": [
        {
          "id": 123,
          "address": "<string>",
          "chainId": 123,
          "currencyId": 123,
          "chain": {
            "id": 123,
            "name": "<string>",
            "kyberSlug": "<string>",
            "chainId": 123,
            "messageReceiver": "<unknown>",
            "status": "<unknown>",
            "type": "<unknown>",
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z"
          },
          "type": "<unknown>",
          "relatedCurrencyId": "<unknown>",
          "relatedCurrency": "<unknown>",
          "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": "<unknown>"
}

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
  • Option 1
  • Option 2
message
string
required
data
object[]
required
status
any
required