๐ฑ๏ธGeth Proxy
eth_blockNumber
Get the current height data of the block
Request address
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://rpc01.trias.oneRequest Parameters
no
Return data description
Current block height
Trias return data example
{"jsonrpc":"2.0","id":1,"result":"0x8bd98"}eth_getBlockByNumber
Returns the block with the specified number
Request address
Request Parameters
QUANTITY|TAG - integer block number, or the strings "earliest", "latest", or "pending" Boolean - returns the full transaction object if true, otherwise only the transaction hash is returned
Return data description
Object - the object of the matching block, or null if no block is found
Trias return data example
eth_getBlockTransactionCountByNumber
Returns the number of transactions in the specified block, using the block number to specify the block
Request address
Request Parameters
QUANTITY|TAG - integer block number, or the strings "earliest", "latest", or "pending".
Return data description
Number of transactions for a given block
Trias return data example
eth_getTransactionByHash
Get the current height data of the block
Request address
Request Parameters
DATA, 32 bytes - transaction hash
Return data description
Current transaction object information
Trias return data example
eth_getTransactionReceipt
Returns the receipt for the specified transaction, using the hash of the specified transaction
Request address
Request Parameters
DATA, 32 bytes - transaction hash
Return data description
Returns the receipt for the specified transaction
Trias return data example
Last updated