Skip to content

Latest commit

 

History

History
88 lines (55 loc) · 1.55 KB

ChainApi.md

File metadata and controls

88 lines (55 loc) · 1.55 KB

DeBankOpenApi.ChainApi

All URIs are relative to https://openapi.debank.com

Method HTTP request Description
getChainList GET /v1/chain/list
getChainR GET /v1/chain

getChainList

[Chain] getChainList()

Get supported chain list

Example

const DeBankOpenApi = require('debank-open-api');

let apiInstance = new DeBankOpenApi.ChainApi();
apiInstance.getChainList().then((response) => {
  console.log(response);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

[Chain]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getChainR

Chain getChainR(id)

Get chain info by id

Example

const DeBankOpenApi = require('debank-open-api');

let apiInstance = new DeBankOpenApi.ChainApi();
let id = "id_example"; // String | ChainID

apiInstance.getChainR(id).then((response) => {
  console.log(response);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
id String ChainID

Return type

Chain

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json