Class: L2ToL1Message
message/L2ToL1Message.L2ToL1Message
Base functionality for L2->L1 messages
Hierarchy
L2ToL1Message
Methods
getL2ToL1Events
Static
getL2ToL1Events(l2Provider
, filter
, position?
, destination?
, hash?
, indexInBatch?
): Promise
<Object
[]>
Get event logs for L2ToL1 transactions.
Parameters
Name | Type | Description |
---|---|---|
l2Provider | Provider | |
filter | Object | Block range filter |
filter.fromBlock | BlockTag | - |
filter.toBlock | BlockTag | - |
position? | BigNumber | The batchnumber indexed field was removed in nitro and a position indexed field was added. For pre-nitro events the value passed in here will be used to find events with the same batchnumber. For post nitro events it will be used to find events with the same position. |
destination? | string | The L1 destination of the L2ToL1 message |
hash? | BigNumber | The uniqueId indexed field was removed in nitro and a hash indexed field was added. For pre-nitro events the value passed in here will be used to find events with the same uniqueId. For post nitro events it will be used to find events with the same hash. |
indexInBatch? | BigNumber | The index in the batch, only valid for pre-nitro events. This parameter is ignored post-nitro |
Returns
Promise
<Object
[]>
Any classic and nitro events that match the provided filters.