eth_blockNumber (WIP)
Returns the number of most recent block
https://api.xdcscan.io/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0x1104728"
}
eth_getBlockTransactionCountByNumber (WIP)
Returns the number of transactions in a block.
https://api.xdcscan.io/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x10FB78
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
the block number, in hex eg. 0x10FB78
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x3"
}
eth_getTransactionByHash (WIP)
Returns the information about a transaction requested by transaction hash.
Try this endpoint in your browser 🔗
Query Parameters
the string representing the hash of the transaction
eth_getTransactionByBlockNumberAndIndex (WIP)
Returns information about a transaction by block number and transaction index position.
Try this endpoint in your browser 🔗
Query Parameters
the block number, in hex eg. 0x10FB78
the position of the uncle's index in the block, in hex eg. 0x0
eth_getTransactionCount (WIP)
Returns the number of transactions performed by an address.
Try this endpoint in your browser 🔗
Query Parameters
the string representing the address to get transaction count
the string pre-defined block parameter, either earliest, pending or latest
eth_sendRawTransaction (WIP)
Submits a pre-signed transaction for broadcast to the XDC network.
Try this endpoint in your browser 🔗
the string representing the signed raw transaction data to broadcast.
eth_getTransactionReceipt (WIP)
Returns the receipt of a transaction by transaction hash.
Try this endpoint in your browser 🔗
Query Parameters
the string representing the hash of the transaction
Sample Response
Executes a new message call immediately without creating a transaction on the block chain.
Try this endpoint in your browser 🔗
Query Parameters
the string representing the address to interact with
the hash of the method signature and encoded parameters
the string pre-defined block parameter, either earliest, pending or latest
eth_getCode (WIP)
Returns code at a given address.
Try this endpoint in your browser 🔗
Query Parameters
the string representing the address to get code
the string pre-defined block parameter, either earliest, pending or latest
eth_getStorageAt (WIP)
Returns the value from a storage position at a given address.
This endpoint is still experimental and may have potential issues
Try this endpoint in your browser
Query Parameters
the string representing the address to get code
the hex code of the position in storage, eg 0x0
the string pre-defined block parameter, either earliest, pending or latest
eth_gasPrice (WIP)
Returns the current price per gas in wei.
Try this endpoint in your browser 🔗
eth_estimateGas (WIP)
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
Try this endpoint in your browser 🔗
Query Parameters
the hash of the method signature and encoded parameters
the string representing the address to interact with
the value sent in this transaction, in hex eg. 0xff22
the amount of gas provided for the transaction, in hex eg. 0x5f5e0ff
the gas price paid for each unit of gas, in wei
post EIP-1559, the gasPrice has to be higher than the block's baseFeePerGas