Skip to content

L1 Transaction Hash #476

Closed Answered by artjoma
artjoma asked this question in Application Development
Oct 27, 2022 · 0 comments · 3 replies
Discussion options

You must be logged in to vote

@smartcontracts thank you!
Yes I'm using this approach:

var appendSequencerBatchTopic = common.HexToHash("0x127186556e7be68c7e31263195225b4de02820707889540969f62c05cf73525e")
l1Logs, err := l1Client.FilterLogs(ctx, ethereum.FilterQuery{
		FromBlock: big.NewInt(0).SetUint64(l1BlockN),
		ToBlock:   big.NewInt(0).SetUint64(l1BlockN),
		Topics:    [][]common.Hash{{appendSequencerBatchTopic}},
	})
...
L1TxHash:     l1Logs[0].TxHash,

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@smartcontracts
Comment options

Answer selected by artjoma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants