Help us shape the future of Go! Take the 2026 Go Developer Survey

opnode

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockInfo

type BlockInfo struct {
	Number     uint64      `json:"number"`
	Hash       common.Hash `json:"hash"`
	ParentHash common.Hash `json:"parentHash"`
	Timestamp  uint64      `json:"timestamp"`
}

type OpNodeClient

type OpNodeClient struct {
	// contains filtered or unexported fields
}

func NewOpNodeClient

func NewOpNodeClient(url string) *OpNodeClient

func (*OpNodeClient) FinalizedL2Block

func (c *OpNodeClient) FinalizedL2Block() (*BlockInfo, error)

func (*OpNodeClient) OutputAtBlockRoot added in v0.4.0

func (c *OpNodeClient) OutputAtBlockRoot(number uint64) (common.Hash, error)

OutputAtBlockRoot retrieves the output root at a specific block number from the OP Node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL