Comment on page
JSON-RPC Endpoints
Here is a list of all the supported RPC endpoints of smartBCH, sorted by the prefixes. The endpoints with "sbch" prefix are smartBCH-specific, which are used by the BasicBrowser. The endpoints with "web3", "net" and "eth" prefixes have the same function as infura, except for some features which are described below.
JSON-RPC methods | Doc (eth.wiki) | Doc (infura.io/docs) | Implemented? |
---|---|---|---|
web3_clientVersion | ✅ | ||
web3_sha3 | | ✅ |
JSON-RPC methods | Doc (eth.wiki) | Doc (infura.io/docs) | Implemented? |
---|---|---|---|
net_version | ✅ | ||
net_peerCount | ❌ | ||
net_listening | ❌ |
⚠️the 'pending' block number parameter is not supported, because the mempool of smartbchd is invisable now.
The throughput of smartBCH is very high, and no transactions will be waiting in the mempool for a long time, so there is no need to check whether a transaction is accepted by mempool.
JSON-RPC methods | Doc (eth.wiki) | Doc (infura.io/docs) | Implemented? |
---|---|---|---|
eth_protocolVersion | ✅ | ||
eth_syncing | ✅ | ||
eth_coinbase | | ✅ (returns 0) | |
eth_mining | ❌ | ||
eth_hashrate | ❌ | ||
eth_gasPrice | ✅ (returns 0) | ||
eth_accounts | ✅ | ||
eth_blockNumber | ✅ | ||
eth_getBalance | ✅ ❌pending | ||
eth_getStorageAt | ✅ ❌pending | ||
eth_getTransactionCount | ✅ ❌pending | ||
eth_getBlockTransactionCountByHash | ✅ | ||
eth_getBlockTransactionCountByNumber | ✅ ❌pending | ||
eth_getUncleCountByBlockHash | ❌ | ||
eth_getUncleCountByBlockNumber | ❌ | ||
eth_getCode | ✅ ❌pending | ||
eth_sign | | ❌ | |
eth_signTransaction | | ❌ | |
eth_sendTransaction | | ✅ | |
eth_sendRawTransaction | ✅ | ||
eth_call | ✅ ❌pending | ||
eth_estimateGas | ✅ | ||
eth_getBlockByHash | ✅ | ||
eth_getBlockByNumber | ✅ ❌pending | ||
eth_getTransactionByHash | ✅ | ||
eth_getTransactionByBlockHashAndIndex | ✅ | ||
eth_getTransactionByBlockNumberAndIndex | ✅ ❌pending | ||
eth_getTransactionReceipt | ✅ | ||
eth_getUncleByBlockHashAndIndex | ❌ | ||
eth_getUncleByBlockNumberAndIndex | ❌ | ||
eth_getCompiles | | ❌ | |
eth_compileLLL | | ❌ | |
eth_compileSolidity | | ❌ | |
eth_compileSerpent | | ❌ | |
eth_newFilter | ✅ ❌pending | ||
eth_newBlockFilter | ✅ | ||
eth_newPendingTransactionFilter |