Geth Proxy

For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.

eth_blockNumber

Returns the number of most recent block

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_blockNumber
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

No parameters required.

eth_getBlockByNumber

Returns information about a block by block number.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getBlockByNumber
   &tag=0xa11446
   &boolean=true
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

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.

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getBlockTransactionCountByNumber
   &tag=0xa11446
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

tag

the block number, in hex eg. 0x10FB78

eth_getTransactionByHash

Returns information about a transaction requested by transaction hash.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getTransactionByHash
   &txhash=0x9983332a52df5ad1dabf8fa81b1642e9383f302a399c532fc47ecb6a7a967166
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

txhash

the string representing the hash of the transaction

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getTransactionByBlockNumberAndIndex
   &tag=0xa11446
   &index=0x1
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

tag

the block number, in hex eg. 0x10FB78

index

the position of the uncle's index in the block, in hex eg. 0x1

eth_getTransactionCount

Returns the number of transactions performed by an address.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getTransactionCount
   &address=0x4430b3230294D12c6AB2aAC5C2cd68E80B16b581
   &tag=latest
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the address to get transaction count

tag

the string pre-defined block parameter, either earliest, pending or latest

eth_sendRawTransaction

Submits a pre-signed transaction for broadcast to the BNB Smart Chain network.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_sendRawTransaction
   &hex=0xf904808000831cfde080
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

hex

the string representing the signed raw transaction data to broadcast.

🖊️ Tip: For more information on creating a signed raw transaction, visit this page.

eth_getTransactionReceipt

Returns the receipt of a transaction that has been validated.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getTransactionReceipt
   &txhash=0x2122b2317d6cf409846f80e829c1e45ecb30306907ba0a00a02730c78890739f
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

txhash

the string representing the hash of the transaction

eth_call

Executes a new message call immediately without creating a transaction on the block chain.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_call
   &to=0xAEEF46DB4855E25702F8237E8f403FddcaF931C0
   &data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
   &tag=latest
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

to

the string representing the address to interact with

data

the hash of the method signature and encoded parameters

tag

the string pre-defined block parameter, either earliest, pending or latest

Note: The gas parameter is capped at 2x the current block gas limit.

eth_getCode

Returns code at a given address.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getCode
   &address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
   &tag=latest
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the address to get code

tag

the string pre-defined block parameter, either earliest, pending or latest

eth_getStorageAt

Returns the value from a storage position at a given address.

This endpoint is still experimental and may have potential issues

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_getStorageAt
   &address=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
   &position=0x0
   &tag=latest
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the address to get code

position

the hex code of the position in storage, eg 0x0

tag

the string pre-defined block parameter, either earliest, pending or latest

eth_gasPrice

Returns the current price per gas in wei.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_gasPrice
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

No parameters required.

eth_estimateGas

Makes a call or transaction, which won't be added to the blockchain and returns the gas used.

https://api.bscscan.com/api
   ?module=proxy
   &action=eth_estimateGas
   &data=0x4e71d92d
   &to=0xEeee7341f206302f2216e39D715B96D8C6901A1C
   &value=0xff22
   &gasPrice=0x51da038cc
   &gas=0x5f5e0ff
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

data

the hash of the method signature and encoded parameters

to

the string representing the address to interact with

value

the value sent in this transaction, in hex eg. 0xff22

gas

the amount of gas provided for the transaction, in hex eg. 0x5f5e0ff

gasPrice

the gas price paid for each unit of gas, in wei

Note: The gas parameter is capped at 2x the current block gas limit.

Last updated