get chains

API details

This API returns a list of the blockchain networks supported by Hibit, providing a clear overview of the available chains for integration.

Get all supported chains

get
Responses
200
OK
get
GET /v1/chains HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": [
    {
      "chainId": "text",
      "depositAddress": "text",
      "displayName": "text"
    }
  ]
}

Code example

import { hibitClient } from '@delandlabs/hibit-sdk';

const options = {
  network: HibitNetwork.Testnet
};
hibitClient.setOptions(options);

const chains = await hibitClient.getChains();

SDK

Source code https://github.com/Deland-Labs/hibit-sdk

Last updated