Parameters
- block numberstringREQUIRED
The block number in hexadecimal format
Returns
- blockobject
The information about the specified block:
- baseFeePerGasstring
A string of the base fee encoded as hexadecimal
- difficultystring
The integer of the difficulty for this block encoded as hexadecimal
- extraDatastring
The extra data field of this block
- gasLimitstring
The maximum gas allowed in this block encoded as hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as hexadecimal
- hashstring
The block hash of the requested block. Null when it's pending block
- logsBloomarray
The bloom filter for the logs of the block. Null when it's a pending block
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
A string of a 256-bit hash encoded as hexadecimal
- noncestring
The hash of the generated proof-of-work. Null when it's a pending block
- numberstring
The block number of the requested block, encoded as hexadecimal. Null when it's a pending block
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- sizestring
The size of this block in bytes as an Integer value encoded as hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The UNIX timestamp for when the block was collated
- totalDifficultystring
The integer of the total difficulty of the chain until this block encoded as hexadecimal
- transactionsarray
An array of transaction objects:
- blockHashstring
The block hash of the requested block
- blockNumberstring
The block number of the requested block, encoded as hexadecimal
- fromstring
The address of the sender
- gasstring
The gas provided by the sender, encoded as hexadecimal
- gasPricestring
The gas price provided by the sender in Wei, encoded as hexadecimal
- hashstring
The hash of the transaction
- inputstring
The data sent along with the transaction
- noncestring
The number of transactions made by the sender prior to this one encoded as hexadecimal
- tostring
The address of the receiver. Null when it's a contract creation
- transactionIndexstring
The integer of the transactions index position in the block. Null if pending
- valuestring
The value transferred in Wei, encoded as hexadecimal
- typestring
The transaction type
- vstring
The ECDSA recovery id encoded as hexadecimal
- rstring
The ECDSA signature r
- sstring
The ECDSA signature s
- maxFeePerGasstring
The maximum fee per gas set in the transaction
- maxPriorityFeePerGasstring
The maximum priority gas fee set in the transaction
- accessListarray
An array of legacy transaction objects
- chainIdstring
The chain id of the transaction
- transactionsRootstring
The root of the transaction trie of the block
- unclesstring
An array of uncle hashes
- receiptsarray
An array of transaction receipt objects for the specified block
- blockHashstring
The hash of the block. Null when it's a pending
- blockNumberstring
The block number
- contractAddressstring
The contract address created if the transaction was a contract creation, otherwise null
- cumulativeGasUsedstring
The total amount of gas used when this transaction was executed in the block
- effectiveGasPricestring
The actual value per gas deducted from the senders account
- fromstring
The address of the sender
- gasUsedstring
The amount of gas used by this specific transaction alone
- logsarray
An array of log objects generated by this transaction:
- addressstring
The address from which this log originated
- topicsarray
An array of zero to four 32 Bytes data of indexed log arguments. In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declare the event with the anonymous specifier
- datastring
It contains one or more 32 Bytes non-indexed arguments of the
- blockNumberstring
The block number where this log was in. Null when it's a pending
- transactionHashstring
The hash of the transactions this log was created from. Null when it's a pending
- transactionIndexstring
The integer of the transaction's index position that the log was created from. Null when it's a pending
- blockHashstring
The hash of the block where this log was in. Null when it's a pending
- logIndexstring
The integer of the log index position in the block. Null when it's a pending
- removedboolean
True when the log was removed, due to a chain reorganization. False if it's a valid
- logsBloomstring
The bloom filter for light clients to quickly retrieve related
- statusstring
Either 1 (success) or 0 (failure)
- tostring
The address of the receiver. Null when it's a contract creation
- transactionHashstring
The hash of the transaction
- transactionIndexstring
The index of the transaction in the block
- typestring
The receipt type
1{2"jsonrpc": "2.0",3"id": 1,4"error": {5"code": -32602,6"message": "Invalid params: at least one parameter is required"7}8}
1{2"jsonrpc": "2.0",3"id": 1,4"error": {5"code": -32602,6"message": "Invalid params: at least one parameter is required"7}8}