All URIs are relative to https://openapi.debank.com
Method | HTTP request | Description |
---|---|---|
getChainList | GET /v1/chain/list | |
getChainR | GET /v1/chain |
[Chain] getChainList()
Get supported chain list
const DeBankOpenApi = require('debank-open-api');
let apiInstance = new DeBankOpenApi.ChainApi();
apiInstance.getChainList().then((response) => {
console.log(response);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Chain getChainR(id)
Get chain info by id
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);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ChainID |
No authorization required
- Content-Type: Not defined
- Accept: application/json