Skip to main content

optimism_outputAtBlock RPC Method

Returns the output root at a specific block.

Updated on
Nov 4, 2024

optimism_outputAtBlock RPC Method

Parameters

blockNumber
string
REQUIRED
The block number in hexadecimal format

Returns

result
The result object which contains the following fields:
version
The output root version number, beginning with 0
outputRoot
The output root
blockRef
The block reference object which contains the following fields:
hash
The hash of the referenced block
number
The block number of the referenced block
parentHash
The hash of the parent block
timestamp
The timestamp associated with the referenced block
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
The sequence number of the queued unsafe L2
withdrawalStorageRoot
The root hash of the withdrawal storage data at the specified block
stateRoot
The root hash of the state data at the specified block
syncStatus
The syncStatus object which contains the following fields:
current_l1
The current_l1 object which contains the following fields:
hash
The hash of the current L1 synchronization status
number
The block number of the current L1 synchronization status
parentHash
The hash of the parent block
timestamp
The timestamp of the current L1 synchronization status
current_l1_finalized
The current_l1_finalized object which contains the following fields:
hash
The hash of the finalized state of the current L1
number
The block number of the finalized state of the current L1
parentHash
The hash of the parent block
timestamp
The timestamp of the finalized state of the current L1
head_l1
The head_l1 object which contains the following fields:
hash
The hash of the head L1
number
The block number of the head L1
parentHash
The hash of the parent block
timestamp
The timestamp of the head L1
safe_l1
The safe_l1 object which contains the following fields:
hash
The hash of the safe L1
number
The block number of the safe L1
parentHash
The hash of the parent block
timestamp
The timestamp of the safe L1
finalized_l1
The finalized_l1 object which contains the following fields:
hash
The hash of the finalized L1
number
The block number of the finalized L1
parentHash
The hash of the parent block
timestamp
The timestamp of the finalized L1
unsafe_l2
The unsafe_l2 object which contains the following fields:
hash
The hash of the unsafe L2
number
The block number of the unsafe L2
parentHash
The hash of the parent block
timestamp
The timestamp of the unsafe L2
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
The sequence number of the unsafe L2
safe_l2
The safe_l2 object which contains the following fields:
hash
The hash of the safe L2
number
The block number of the safe L2
parentHash
The hash of the parent block
timestamp
The timestamp of the safe L2
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
The sequence number of the safe L2
finalized_l2
The finalized_l2 object which contains the following fields:
hash
The hash of the finalized L2
number
The block number of the finalized L2
parentHash
The hash of the parent block
timestamp
The timestamp of the finalized L2
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
The sequence number of the finalized L2
pending_safe_l2
The pending_safe_l2 object which contains the following fields:
hash
The hash of the pending unsafe L2
number
The block number of the pending unsafe L2
parentHash
The hash of the parent block
timestamp
The timestamp of the pending unsafe L2
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
The sequence number of the pending unsafe L2
cross_unsafe_l2
The cross_unsafe_l2 object which contains the following fields:
hash
A unique identifier for the L2 (Layer 2) block
number
The block number in the L2 chain
parentHash
The hash of the previous (parent) block in the blockchain
timestamp
The UNIX timestamp representing when the block was created
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
A number that specifies the order or sequence of L2 blocks relative to their generation or processing order within a given L2 chain
local_safe_l2
The local_safe_l2 object which contains the following fields:
hash
A unique identifier for the L2 (Layer 2) block
number
The block number in the L2 chain
parentHash
The hash of the previous (parent) block in the blockchain
timestamp
The UNIX timestamp representing when the block was created
l1origin
The l1origin object which contains the following fields
hash
The hash of the L1 origin block
number
The block number of the L1 origin
sequenceNumber
A number that specifies the order or sequence of L2 blocks relative to their generation or processing order within a given L2 chain
Request
1
curl https://docs-demo.ink-sepolia.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"optimism_outputAtBlock","params":["BLOCK_NUMBER"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free