eth_getBlockByNumber

Returns information about a block by number.

https://api.1inch.com/web3/324
Supported on:
ZKsync

Parameters

Block (required)

Block
* any
oneOf[0]
string
oneOf[1]
string (Enum)
earliest
finalized
safe
latest
pending

Hydrated transactions (required)

Hydrated transactions
* boolean

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
oneOf[0]
any
oneOf[0]
string
oneOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
oneOf[1]
boolean
id
* number
1

Response

Block information

Block information
any
oneOf[0]
null
oneOf[1]
object
hash
* string
parentHash
* string
sha3Uncles
* string
miner
* string
stateRoot
* string
transactionsRoot
* string
receiptsRoot
* string
logsBloom
* string
difficulty
string
number
* string
gasLimit
* string
gasUsed
* string
timestamp
* string
extraData
* string
mixHash
* string
nonce
* string
baseFeePerGas
string
withdrawalsRoot
string
blobGasUsed
string
excessBlobGas
string
parentBeaconBlockRoot
string
size
* string
transactions
* any
anyOf[0]
array
items
string
anyOf[1]
array
items
object
oneOf[0]
object
type
* string
nonce
* string
to
* string
gas
* string
value
* string
input
* string
maxPriorityFeePerGas
* string
maxFeePerGas
* string
gasPrice
string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
chainId
* string
authorizationList
* array
items
object
chainId
* string
nonce
* string
address
* string
yParity
* string
r
* string
s
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[1]
object
type
* string
nonce
* string
to
* string
gas
* string
value
* string
input
* string
maxPriorityFeePerGas
* string
maxFeePerGas
* string
maxFeePerBlobGas
* string
gasPrice
string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
blobVersionedHashes
* array
items
string
chainId
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[2]
object
type
* string
nonce
* string
to
any
oneOf[0]
null
oneOf[1]
string
gas
* string
value
* string
input
* string
maxPriorityFeePerGas
* string
maxFeePerGas
* string
gasPrice
* string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
chainId
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[3]
object
type
* string
nonce
* string
to
any
oneOf[0]
null
oneOf[1]
string
gas
* string
value
* string
input
* string
gasPrice
* string
accessList
* array
items
object
address
* string
storageKeys
* array
items
string
additionalProperties
none
chainId
* string
yParity
* string
v
string
r
* string
s
* string
oneOf[4]
object
type
* string
nonce
* string
to
any
oneOf[0]
null
oneOf[1]
string
gas
* string
value
* string
input
* string
gasPrice
* string
chainId
string
v
* string
r
* string
s
* string
blockHash
* string
blockNumber
* string
from
* string
hash
* string
transactionIndex
* string
withdrawals
any
oneOf[0]
null
oneOf[1]
array
items
object
index
* string
validatorIndex
* string
address
* string
amount
* string
additionalProperties
none
uncles
* array
items
string
requestsHash
any
oneOf[0]
null
oneOf[1]
string
additionalProperties
none
JSON
1

Did you find what you need?