Geth/Parity Proxy (WIP)
eth_blockNumber (WIP)
Returns the number of most recent block
https://api.xdcscan.io/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyTokenTry this endpoint in your browser π
No parameters required.
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=YourApiKeyTokenTry this endpoint in your browser π
Query Parameters
tag
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
txhash
the string representing the hash of the transaction
Sample Response
eth_getTransactionByBlockNumberAndIndex (WIP)
Returns information about a transaction by block number and transaction index position.
Try this endpoint in your browser π
Query Parameters
tag
the block number, in hex eg. 0x10FB78
index
the position of the uncle's index in the block, in hex eg. 0x0
Sample Response
eth_getTransactionCount (WIP)
Returns the number of transactions performed by an address.
Try this endpoint in your browser π
Query Parameters
address
the string representing the address to get transaction count
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
eth_sendRawTransaction (WIP)
Submits a pre-signed transaction for broadcast to the XDC network.
Try this endpoint in your browser π
Query Parameters
hex
the string representing the signed raw transaction data to broadcast.
Sample Response
eth_getTransactionReceipt (WIP)
Returns the receipt of a transaction by transaction hash.
Try this endpoint in your browser π
Query Parameters
txhash
the string representing the hash of the transaction
Sample Response
eth_call (WIP)
Executes a new message call immediately without creating a transaction on the block chain.
Try this endpoint in your browser π
Query Parameters
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
Sample Response
eth_getCode (WIP)
Returns code at a given address.
Try this endpoint in your browser π
Query Parameters
address
the string representing the address to get code
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
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
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
Sample Response
eth_gasPrice (WIP)
Returns the current price per gas in wei.
Try this endpoint in your browser π
No parameters required.
Sample Response
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
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
post EIP-1559, the gasPrice has to be higher than the block's baseFeePerGas
Sample Response
Last updated