payloadattribute

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributer

type Attributer interface {
	Version() int
	PrevRandao() []byte
	Timestamps() uint64
	SuggestedFeeRecipient() []byte
	Withdrawals() ([]*enginev1.Withdrawal, error)
	PbV1() (*enginev1.PayloadAttributes, error)
	PbV2() (*enginev1.PayloadAttributesV2, error)
	PbV3() (*enginev1.PayloadAttributesV3, error)
}

func EmptyWithVersion

func EmptyWithVersion(version int) Attributer

EmptyWithVersion returns an empty payload attribute with the given version.

func New

func New(i interface{}) (Attributer, error)

New returns a new payload attribute with the given input object.

Jump to

Keyboard shortcuts

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