Skip to main content

optimism_outputAtBlock RPC Method

Returns the output root at a specific block.

Updated on
Mar 24, 2026

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

queued_unsafe_l2

The queued_unsafe_l2 object which contains the following fields:

hash

The hash of the queued unsafe L2

number

The block number of the queued unsafe L2

parentHash

The hash of the parent block

timestamp

The timestamp of the queued 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 queued unsafe L2

engine_sync_target

The engine_sync_target object which contains the following fields:

hash

The hash of the synchronization target for the engine

number

The block number of the synchronization target for the engine

parentHash

The hash of the parent block

timestamp

The timestamp of the synchronization target for the engine

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 synchronization target for the engine

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"version": "0x0000000000000000000000000000000000000000000000000000000000000000",
6
"outputRoot": "0x3748d13530f221c6ec7f96963fa3b4effdfd746fff70fc30287aabf5b9d0e87a",
7
"blockRef": {
8
"hash": "0xf13cb1393cfe02ccdcc90156dfee0807ede2423dfae578051399814a1a76c9a9",
9
"number": 40678569,
10
"parentHash": "0xf20385f6e1117143c783a8bd8fb89ee85fd5069da356b04efc4a7587984ab332",
11
"timestamp": 1771426928,
12
"l1origin": {
13
"hash": "0x56a4520bbe08dca3bf72a99a0abb53679a7c8adc30b3c88fddb591bee4827160",
14
"number": 24484481
15
},
16
"sequenceNumber": 0
17
},
18
"withdrawalStorageRoot": "0xcc6500d39917e8a61a4831ec32b8dd2e6e148c7a89ed687af989286e56b30d2b",
19
"stateRoot": "0x5bd91e00b6a1384cc288fce7404f3f44812b2238416efe360df142ec1668a724",
20
"syncStatus": {
21
"current_l1": {
22
"hash": "0xd15b78ca985e7be2ee58a2b23c2e6549e5fb77c73ad548323cb4591bbcde6348",
23
"number": 24484485,
24
"parentHash": "0x990e8a356f8b8a9e7ea5bed4ee23dd9014dce014f17c641797498642153d9dc7",
25
"timestamp": 1771426919
26
},
27
"current_l1_finalized": {
28
"hash": "0x6fbd26d1bb39f00ee81022ec23e90e81d6933f504abddb2332c5b04f5d1c6d8c",
29
"number": 24484409,
30
"parentHash": "0xc596d01342a5eeabcf0813ef43e34bfffe5c38eeadfaf2448fda0ec6f457bb7b",
31
"timestamp": 1771425995
32
},
33
"head_l1": {
34
"hash": "0xd15b78ca985e7be2ee58a2b23c2e6549e5fb77c73ad548323cb4591bbcde6348",
35
"number": 24484485,
36
"parentHash": "0x990e8a356f8b8a9e7ea5bed4ee23dd9014dce014f17c641797498642153d9dc7",
37
"timestamp": 1771426919
38
},
39
"safe_l1": {
40
"hash": "0x2ebd8fe72ca1fdb9f8cbdc309cce7760dd94d599ebe1b7fd202e6738d2337a0e",
41
"number": 24484441,
42
"parentHash": "0x05c02864e534ce0e15d2229db0afbd21d947ed20a2fc2cabb8b8edd739551043",
43
"timestamp": 1771426391
44
},
45
"finalized_l1": {
46
"hash": "0x6fbd26d1bb39f00ee81022ec23e90e81d6933f504abddb2332c5b04f5d1c6d8c",
47
"number": 24484409,
48
"parentHash": "0xc596d01342a5eeabcf0813ef43e34bfffe5c38eeadfaf2448fda0ec6f457bb7b",
49
"timestamp": 1771425995
50
},
51
"unsafe_l2": {
52
"hash": "0x5701ec6381bee612070192b1cb3f5f1601e8b82694a491234bd98ef7aa3f2b3e",
53
"number": 40678570,
54
"parentHash": "0xf13cb1393cfe02ccdcc90156dfee0807ede2423dfae578051399814a1a76c9a9",
55
"timestamp": 1771426929,
56
"l1origin": {
57
"hash": "0x56a4520bbe08dca3bf72a99a0abb53679a7c8adc30b3c88fddb591bee4827160",
58
"number": 24484481
59
},
60
"sequenceNumber": 1
61
},
62
"safe_l2": {
63
"hash": "0x2a0ee1a976943aefa2c86bd47f4663f2809becf6eef26199b16b304ad9627e68",
64
"number": 40678293,
65
"parentHash": "0xecb0ddf1af6ec68b98b3e8175ad5284c2aec56e01a063758aa0b74c65b593710",
66
"timestamp": 1771426652,
67
"l1origin": {
68
"hash": "0x67b9276b5b87dd55226640815a1de6154f255d89d5f71682dec0d36386e9e838",
69
"number": 24484458
70
},
71
"sequenceNumber": 1
72
},
73
"finalized_l2": {
74
"hash": "0xc39a9766182148bcf9d9e759bfc4bd52d9af1d58f479082ccf9361f9266c3f6d",
75
"number": 40677605,
76
"parentHash": "0x70eec99860da2a01803e3db68864265fd5e2f9e847ca50baf82c876cc720ea3a",
77
"timestamp": 1771425964,
78
"l1origin": {
79
"hash": "0xcc39fedf6939a5cb2507099635601d9a4237b771a9b93b6697c4460e342548c0",
80
"number": 24484401
81
},
82
"sequenceNumber": 6
83
},
84
"pending_safe_l2": {
85
"hash": "0x2a0ee1a976943aefa2c86bd47f4663f2809becf6eef26199b16b304ad9627e68",
86
"number": 40678293,
87
"parentHash": "0xecb0ddf1af6ec68b98b3e8175ad5284c2aec56e01a063758aa0b74c65b593710",
88
"timestamp": 1771426652,
89
"l1origin": {
90
"hash": "0x67b9276b5b87dd55226640815a1de6154f255d89d5f71682dec0d36386e9e838",
91
"number": 24484458
92
},
93
"sequenceNumber": 1
94
},
95
"cross_unsafe_l2": {
96
"hash": "0x5701ec6381bee612070192b1cb3f5f1601e8b82694a491234bd98ef7aa3f2b3e",
97
"number": 40678570,
98
"parentHash": "0xf13cb1393cfe02ccdcc90156dfee0807ede2423dfae578051399814a1a76c9a9",
99
"timestamp": 1771426929,
100
"l1origin": {
101
"hash": "0x56a4520bbe08dca3bf72a99a0abb53679a7c8adc30b3c88fddb591bee4827160",
102
"number": 24484481
103
},
104
"sequenceNumber": 1
105
},
106
"local_safe_l2": {
107
"hash": "0x2a0ee1a976943aefa2c86bd47f4663f2809becf6eef26199b16b304ad9627e68",
108
"number": 40678293,
109
"parentHash": "0xecb0ddf1af6ec68b98b3e8175ad5284c2aec56e01a063758aa0b74c65b593710",
110
"timestamp": 1771426652,
111
"l1origin": {
112
"hash": "0x67b9276b5b87dd55226640815a1de6154f255d89d5f71682dec0d36386e9e838",
113
"number": 24484458
114
},
115
"sequenceNumber": 1
116
}
117
}
118
}
119
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"version": "0x0000000000000000000000000000000000000000000000000000000000000000",
6
"outputRoot": "0x3748d13530f221c6ec7f96963fa3b4effdfd746fff70fc30287aabf5b9d0e87a",
7
"blockRef": {
8
"hash": "0xf13cb1393cfe02ccdcc90156dfee0807ede2423dfae578051399814a1a76c9a9",
9
"number": 40678569,
10
"parentHash": "0xf20385f6e1117143c783a8bd8fb89ee85fd5069da356b04efc4a7587984ab332",
11
"timestamp": 1771426928,
12
"l1origin": {
13
"hash": "0x56a4520bbe08dca3bf72a99a0abb53679a7c8adc30b3c88fddb591bee4827160",
14
"number": 24484481
15
},
16
"sequenceNumber": 0
17
},
18
"withdrawalStorageRoot": "0xcc6500d39917e8a61a4831ec32b8dd2e6e148c7a89ed687af989286e56b30d2b",
19
"stateRoot": "0x5bd91e00b6a1384cc288fce7404f3f44812b2238416efe360df142ec1668a724",
20
"syncStatus": {
21
"current_l1": {
22
"hash": "0xd15b78ca985e7be2ee58a2b23c2e6549e5fb77c73ad548323cb4591bbcde6348",
23
"number": 24484485,
24
"parentHash": "0x990e8a356f8b8a9e7ea5bed4ee23dd9014dce014f17c641797498642153d9dc7",
25
"timestamp": 1771426919
26
},
27
"current_l1_finalized": {
28
"hash": "0x6fbd26d1bb39f00ee81022ec23e90e81d6933f504abddb2332c5b04f5d1c6d8c",
29
"number": 24484409,
30
"parentHash": "0xc596d01342a5eeabcf0813ef43e34bfffe5c38eeadfaf2448fda0ec6f457bb7b",
31
"timestamp": 1771425995
32
},
33
"head_l1": {
34
"hash": "0xd15b78ca985e7be2ee58a2b23c2e6549e5fb77c73ad548323cb4591bbcde6348",
35
"number": 24484485,
36
"parentHash": "0x990e8a356f8b8a9e7ea5bed4ee23dd9014dce014f17c641797498642153d9dc7",
37
"timestamp": 1771426919
38
},
39
"safe_l1": {
40
"hash": "0x2ebd8fe72ca1fdb9f8cbdc309cce7760dd94d599ebe1b7fd202e6738d2337a0e",
41
"number": 24484441,
42
"parentHash": "0x05c02864e534ce0e15d2229db0afbd21d947ed20a2fc2cabb8b8edd739551043",
43
"timestamp": 1771426391
44
},
45
"finalized_l1": {
46
"hash": "0x6fbd26d1bb39f00ee81022ec23e90e81d6933f504abddb2332c5b04f5d1c6d8c",
47
"number": 24484409,
48
"parentHash": "0xc596d01342a5eeabcf0813ef43e34bfffe5c38eeadfaf2448fda0ec6f457bb7b",
49
"timestamp": 1771425995
50
},
51
"unsafe_l2": {
52
"hash": "0x5701ec6381bee612070192b1cb3f5f1601e8b82694a491234bd98ef7aa3f2b3e",
53
"number": 40678570,
54
"parentHash": "0xf13cb1393cfe02ccdcc90156dfee0807ede2423dfae578051399814a1a76c9a9",
55
"timestamp": 1771426929,
56
"l1origin": {
57
"hash": "0x56a4520bbe08dca3bf72a99a0abb53679a7c8adc30b3c88fddb591bee4827160",
58
"number": 24484481
59
},
60
"sequenceNumber": 1
61
},
62
"safe_l2": {
63
"hash": "0x2a0ee1a976943aefa2c86bd47f4663f2809becf6eef26199b16b304ad9627e68",
64
"number": 40678293,
65
"parentHash": "0xecb0ddf1af6ec68b98b3e8175ad5284c2aec56e01a063758aa0b74c65b593710",
66
"timestamp": 1771426652,
67
"l1origin": {
68
"hash": "0x67b9276b5b87dd55226640815a1de6154f255d89d5f71682dec0d36386e9e838",
69
"number": 24484458
70
},
71
"sequenceNumber": 1
72
},
73
"finalized_l2": {
74
"hash": "0xc39a9766182148bcf9d9e759bfc4bd52d9af1d58f479082ccf9361f9266c3f6d",
75
"number": 40677605,
76
"parentHash": "0x70eec99860da2a01803e3db68864265fd5e2f9e847ca50baf82c876cc720ea3a",
77
"timestamp": 1771425964,
78
"l1origin": {
79
"hash": "0xcc39fedf6939a5cb2507099635601d9a4237b771a9b93b6697c4460e342548c0",
80
"number": 24484401
81
},
82
"sequenceNumber": 6
83
},
84
"pending_safe_l2": {
85
"hash": "0x2a0ee1a976943aefa2c86bd47f4663f2809becf6eef26199b16b304ad9627e68",
86
"number": 40678293,
87
"parentHash": "0xecb0ddf1af6ec68b98b3e8175ad5284c2aec56e01a063758aa0b74c65b593710",
88
"timestamp": 1771426652,
89
"l1origin": {
90
"hash": "0x67b9276b5b87dd55226640815a1de6154f255d89d5f71682dec0d36386e9e838",
91
"number": 24484458
92
},
93
"sequenceNumber": 1
94
},
95
"cross_unsafe_l2": {
96
"hash": "0x5701ec6381bee612070192b1cb3f5f1601e8b82694a491234bd98ef7aa3f2b3e",
97
"number": 40678570,
98
"parentHash": "0xf13cb1393cfe02ccdcc90156dfee0807ede2423dfae578051399814a1a76c9a9",
99
"timestamp": 1771426929,
100
"l1origin": {
101
"hash": "0x56a4520bbe08dca3bf72a99a0abb53679a7c8adc30b3c88fddb591bee4827160",
102
"number": 24484481
103
},
104
"sequenceNumber": 1
105
},
106
"local_safe_l2": {
107
"hash": "0x2a0ee1a976943aefa2c86bd47f4663f2809becf6eef26199b16b304ad9627e68",
108
"number": 40678293,
109
"parentHash": "0xecb0ddf1af6ec68b98b3e8175ad5284c2aec56e01a063758aa0b74c65b593710",
110
"timestamp": 1771426652,
111
"l1origin": {
112
"hash": "0x67b9276b5b87dd55226640815a1de6154f255d89d5f71682dec0d36386e9e838",
113
"number": 24484458
114
},
115
"sequenceNumber": 1
116
}
117
}
118
}
119
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free