
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
debank-open-api
Advanced tools
DeBank | OpenAPI - Build for DeFi Developers
JavaScript client for DeBank | OpenAPI
This SDK is automatically generated by the Swagger Codegen project:
Install it via:
npm install debank-open-api --save
The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Please follow the installation instruction and execute the following JS code:
var DeBankOpenApi = require('debank-open-api');
var api = new DeBankOpenApi.ChainApi()
api.getChainList().then(function(response) {
console.log('API called successfully. Returned data: ' + response.data);
}, function(error) {
console.error(error);
});
All URIs are relative to //openapi.debank.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DeBankOpenApi.ChainApi | getChainList | GET /v1/chain/list | |
| DeBankOpenApi.ChainApi | getChainR | GET /v1/chain | |
| DeBankOpenApi.ProtocolApi | getProtocolListR | GET /v1/protocol/list | |
| DeBankOpenApi.ProtocolApi | getProtocolR | GET /v1/protocol | |
| DeBankOpenApi.ProtocolApi | getTvl | GET /v1/protocol/tvl | |
| DeBankOpenApi.TokenApi | getTokenListByIdsR | GET /v1/token/list_by_ids | |
| DeBankOpenApi.TokenApi | getTokenR | GET /v1/token | |
| DeBankOpenApi.UserApi | getUserComplexProtocolList | GET /v1/user/complex_protocol_list | |
| DeBankOpenApi.UserApi | getUserNftList | GET /v1/user/nft_list | |
| DeBankOpenApi.UserApi | getUserProtocol | GET /v1/user/protocol | |
| DeBankOpenApi.UserApi | getUserSimpleProtocolList | GET /v1/user/simple_protocol_list | |
| DeBankOpenApi.UserApi | getUserToken | GET /v1/user/token | |
| DeBankOpenApi.UserApi | getUserTokenAuthorizedList | GET /v1/user/token_authorized_list | |
| DeBankOpenApi.UserApi | getUserTokenList | GET /v1/user/token_list | |
| DeBankOpenApi.UserApi | getUserTokenSearch | GET /v1/user/token_search | |
| DeBankOpenApi.UserApi | getUserTotalBalance | GET /v1/user/chain_balance | |
| DeBankOpenApi.UserApi | getUserTotalBalance_0 | GET /v1/user/total_balance | |
| DeBankOpenApi.WalletApi | getCheckOrigin | GET /v1/wallet/check_origin | |
| DeBankOpenApi.WalletApi | getEns | GET /v1/wallet/ens | |
| DeBankOpenApi.WalletApi | getExplainOrigin | GET /v1/wallet/explain_origin | |
| DeBankOpenApi.WalletApi | getExplainTx | GET /v1/wallet/get_tx | |
| DeBankOpenApi.WalletApi | getGasMarket | GET /v1/wallet/gas_market | |
| DeBankOpenApi.WalletApi | getPendingTxCount | GET /v1/wallet/pending_tx_count | |
| DeBankOpenApi.WalletApi | getRecommendChains | GET /v1/wallet/recommend_chains | |
| DeBankOpenApi.WalletApi | getSupportChains | GET /v1/wallet/supported_chains | |
| DeBankOpenApi.WalletApi | getUrlConfig | GET /v1/wallet/config | |
| DeBankOpenApi.WalletApi | postCheckText | POST /v1/wallet/check_text | |
| DeBankOpenApi.WalletApi | postCheckTx | POST /v1/wallet/check_tx | |
| DeBankOpenApi.WalletApi | postEthCall | POST /v1/wallet/eth_rpc | |
| DeBankOpenApi.WalletApi | postExplainText | POST /v1/wallet/explain_text | |
| DeBankOpenApi.WalletApi | postExplainTx | POST /v1/wallet/explain_tx | |
| DeBankOpenApi.WalletApi | postPushTx | POST /v1/wallet/push_tx |
All endpoints do not require authorization.
FAQs
JavaScript library for DeBank OpenAPI
We found that debank-open-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.