Documentation Index
Fetch the complete documentation index at: https://docs.binibit.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Standard JSON-RPC
BiniChain implements the standard Ethereum JSON-RPC API. Common methods:| Method | Purpose |
|---|---|
eth_chainId | Get the chain ID |
eth_blockNumber | Latest block number |
eth_getBalance | Get account balance |
eth_getTransactionCount | Get account nonce |
eth_gasPrice | Suggested gas price |
eth_estimateGas | Estimate gas for a transaction |
eth_sendRawTransaction | Submit signed transaction |
eth_getTransactionByHash | Lookup transaction |
eth_getTransactionReceipt | Lookup receipt |
eth_getLogs | Query event logs |
eth_call | Read contract state |
net_version | Network ID (mirror of chainId) |
web3_clientVersion and others.
Curl examples
Get latest block:ethers.js example
WebSocket subscriptions
For real-time data:Rate limits
Standard rate limits apply per IP:| Tier | Limit |
|---|---|
| Public RPC | 60 req/min, 10 req/sec burst |
| WebSocket | 100 concurrent subscriptions per IP |
Error responses
Standard JSON-RPC errors:| Code | Meaning |
|---|---|
| -32600 | Invalid request |
| -32601 | Method not found |
| -32602 | Invalid params |
| -32603 | Internal error |
| -32000 | Server error (rate limited, etc.) |
Retry-After header.
Public archive node
For historical queries beyond the standard pruning window:- Production RPC (
rpc.binibit.com) keeps recent state and a moving window of historical - For deep historical, use a third-party archive node provider (when available)
Tooling
| Tool | Notes |
|---|---|
| MetaMask | Add chain via Network Parameters |
| ethers.js | Standard provider works |
| viem | Standard createPublicClient works |
| Hardhat | Configure as a network in hardhat.config.js |
| Foundry | Configure as RPC endpoint in foundry.toml |
| 1inch / ParaSwap | When integrated, will route through BaiDEX |
Related
Network parameters
chainId and config
Block explorer
Visual block / tx browser
BaiDEX Trading guide
Use RPC for swap calls
Architecture
What’s running behind the RPC
