本参考文档涵盖 Chaingateway 在七条网络上的 REST API:Bitcoin、Ethereum、Binance Smart Chain、Tron、Solana、Polygon 和 Arbitrum。每条链都提供用于创建地址的接口(Bitcoin 把这一版本称为钱包),七条链中有五条——Tron、Ethereum、BSC、Polygon 和 Arbitrum——还支持导入已有地址。交易接口涵盖原生转账和代币转账:Tron 上的 TRC20/TRC721/TRC10,Ethereum、Polygon 和 Arbitrum 上的 ERC20/ERC721,BSC 上的 BEP20/BEP721,以及 Solana 上的 SPL。Tron、Ethereum、BSC、Polygon、Bitcoin 和 Arbitrum 提供 Webhook 接口,用于注册回调、查看已投递和失败的通知;本参考文档中 Solana 没有 Webhook 接口。Ethereum、BSC、Polygon 和 Arbitrum 还额外提供 gas 价格接口。每个请求都通过 Authorization 头中的 Bearer token 认证;添加 X-Network: testnet 请求头即可切换到测试网,省略该请求头或将其设为 mainnet 即可使用主网。
快速跳转到某条链: Bitcoin Ethereum BSC Tron Solana Polygon Arbitrum 或查看全部链