Geth/Parity Proxy
For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.
For compatibility with Parity, please prefix all hex strings with " 0x ".
Returns the number of most recent block
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Request
Response
No parameters required.
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0xa11446"
}
Returns information about a block by block number.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0xa11446
&boolean=true
&apikey=YourApiKeyToken
Request
Response
Query Parameters
tag | the block number, in hex eg. 0xC36B3C |
boolean | the boolean value to show full transaction objects.when true , returns full transaction objects and their information, when false only returns a list of transactions. |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0x2",
"extraData":"0xd883010006846765746888676f312e31352e35856c696e75780000001600553d127f190188f3dd0693fdddcd71933edfc7bcb1ddf10931374bbf4f506155bc9741b763582b6ae438f3354924d65f0c7a15d9027ee218d66158d4a0738537af7600",
"gasLimit":"0x1c9c380",
"gasUsed":"0x0",
"hash":"0x53377a136df8fbb6c23591ee5f816d33f8a12f4147cdf30c90f101548cd73445",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner":"0xe625dd7ad2f7b88723857946a41af646c589c336",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0000000000000000",
"number":"0xa11446",
"parentHash":"0xe0121a8b0f6a27850a35861d44b20df870cdf55971cb6aa538602b1108935f1b",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x262",
"stateRoot":"0x5f2aa920403c555aa7bcb32c60508f84ed84b5138b6afaef5f85515c64fef4b8",
"timestamp":"0x60ed8b1a",
"totalDifficulty":"0x140bf98",
"transactions":[
],
"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles":[
]
}
}
Returns the number of transactions in a block.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0xa11446
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
tag | the block number, in hex eg. 0x10FB78 |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0xc"
}
Returns information about a transaction requested by transaction hash.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xac2f90f947140c9db6502ba86a7e015dc567a23e3a2603a4e1c20bc5440952fa
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
txhash | the string representing the hash of the transaction |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x7f4f2a929c8cf13e91656451013da5d827035b72b50cb06d792116e23848b7a4",
"blockNumber":"0xbce938",
"from":"0x05e8b4714bcfa7adc4b1f16e81aa2152c7ac0a8f",
"gas":"0x8fa2",
"gasPrice":"0x2540be400",
"hash":"0xac2f90f947140c9db6502ba86a7e015dc567a23e3a2603a4e1c20bc5440952fa",
"input":"0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000000000000000000000000000003ff2e795f50000",
"nonce":"0x6c",
"to":"0x6c7e337d8afc09ff2f370d96f34da54b847422f5",
"transactionIndex":"0x5",
"value":"0x0",
"type":"0x0",
"v":"0xe5",
"r":"0x8e80a29fee7c48b0ddb12062b254ca6c1c792f84117ea6cd52099e996d264a69",
"s":"0x22c66701aa1bb9b6824d2a1926b97ecc3cdde6d301469aa2ba3204a0360aff0c"
}
}
Returns information about a transaction by block number and transaction index position.
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0xa6c1c0
&index=0x1
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
tag | the block number, in hex eg. 0x10FB78 |
index | the position of the uncle's index in the block, in hex eg. 0x1 |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x7890e94ebec7773f9f6f707374392290b229449cadf4c344a77cd60719d3914e",
"blockNumber":"0xa6c1c0",
"from":"0xf1951dfddecaad740ae436bfe408c2b34d6e8585",
"gas":"0x4049a",
"gasPrice":"0x2540be400",
"hash":"0xbdadbf2e6f0e10b19a15320fbe88401d91f1fefb274d24054866920a59dae3fa",
"input":"0x38ed173900000000000000000000000000000000000000000000000000089c51c3a7d6f6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f1951dfddecaad740ae436bfe408c2b34d6e85850000000000000000000000000000000000000000000000000000000060feb72400000000000000000000000000000000000000000000000000000000000000020000000000000000000000003fad19805ac7b25c6de0ca64235ed7aac4d6083a0000000000000000000000005562333ff4e0d788b236e77e9c5733ae2bf60e6e",
"nonce":"0xd",
"to":"0xcde540d7eafe93ac5fe6233bee57e1270d3e330f",
"transactionIndex":"0x1",
"value":"0x0",
"type":"0x0",
"v":"0x1b",
"r":"0xcdf341e38192488ce1f6cea4902a89b7ba3d662aa87bef9dfbd422f133752cb5",
"s":"0x2a8e0ee6dd53bf175821117acf9fda5800430d5bd9c9eab07e30e5d799c4027c"
}
}
Returns the number of transactions performed by an address**.**
https://api-testnet.bscscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0x05e8b4714BCfa7AdC4b1F16e81AA2152C7aC0a8F
&tag=latest
&apikey=YourApiKeyToken