debank-open-api
Version:
JavaScript library for DeBank OpenAPI
89 lines (55 loc) • 1.59 kB
Markdown
//openapi.debank.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getChainList**](ChainApi.md
[**getChainR**](ChainApi.md
<a name="getChainList"></a>
> [Chain] getChainList()
Get supported chain list
```javascript
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.
[**[Chain]**](Chain.md)
No authorization required
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="getChainR"></a>
> Chain getChainR(id)
Get chain info by id
### Example
```javascript
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 |
[**Chain**](Chain.md)
No authorization required
- **Content-Type**: Not defined
- **Accept**: application/json
All URIs are relative to *https: