spec

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderVersion

type BuilderVersion uint64

BuilderVersion defines the builder spec version.

const (
	// BuilderVersionV1 is applicable for the V1 release of the builder spec.
	BuilderVersionV1 BuilderVersion = iota
)

func (*BuilderVersion) MarshalJSON

func (d *BuilderVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BuilderVersion) String

func (d BuilderVersion) String() string

String returns a string representation of the struct.

func (*BuilderVersion) UnmarshalJSON

func (d *BuilderVersion) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type DataVersion

type DataVersion uint64

DataVersion defines the spec version of the data in a response.

const (
	// DataVersionUnknown is an unknown data version.
	DataVersionUnknown DataVersion = iota
	// DataVersionPhase0 is data applicable for the initial release of the beacon chain.
	DataVersionPhase0
	// DataVersionAltair is data applicable for the Altair release of the beacon chain.
	DataVersionAltair
	// DataVersionBellatrix is data applicable for the Bellatrix release of the beacon chain.
	DataVersionBellatrix
	// DataVersionCapella is data applicable for the Capella release of the beacon chain.
	DataVersionCapella
	// DataVersionDeneb is data applicable for the Deneb release of the beacon chain.
	DataVersionDeneb
	// DataVersionElectra is data applicable for the Electra release of the beacon chain.
	DataVersionElectra
	// DataVersionFulu is data applicable for the Fulu release of the beacon chain.
	DataVersionFulu
	// DataVersionGloas is data applicable for the Gloas release of the beacon chain.
	DataVersionGloas
	// DataVersionHeze is data applicable for the Heze release of the beacon chain.
	DataVersionHeze
)

func DataVersionFromString

func DataVersionFromString(fork string) (DataVersion, error)

DataVersionFromString turns a fork string into a DataVersion returns an error if the fork is not recognized.

func (*DataVersion) MarshalJSON

func (d *DataVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (DataVersion) String

func (d DataVersion) String() string

String returns a string representation of the struct.

func (*DataVersion) UnmarshalJSON

func (d *DataVersion) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type VersionedAggregateAndProof

VersionedAggregateAndProof contains a versioned aggregate and proof.

func (*VersionedAggregateAndProof) AggregatorIndex

func (v *VersionedAggregateAndProof) AggregatorIndex() (phase0.ValidatorIndex, error)

AggregatorIndex returns the aggregator index of the aggregate.

func (*VersionedAggregateAndProof) HashTreeRoot

func (v *VersionedAggregateAndProof) HashTreeRoot() ([32]byte, error)

HashTreeRoot returns the hash tree root of the aggregate and proof.

func (*VersionedAggregateAndProof) IsEmpty

func (v *VersionedAggregateAndProof) IsEmpty() bool

IsEmpty returns true if there is no aggregate and proof.

func (*VersionedAggregateAndProof) SelectionProof

func (v *VersionedAggregateAndProof) SelectionProof() (phase0.BLSSignature, error)

SelectionProof returns the selection proof of the aggregate.

func (*VersionedAggregateAndProof) String

func (v *VersionedAggregateAndProof) String() string

String returns a string version of the structure.

type VersionedAttestation

type VersionedAttestation struct {
	Version        DataVersion
	ValidatorIndex *phase0.ValidatorIndex
	Phase0         *phase0.Attestation
	Altair         *phase0.Attestation
	Bellatrix      *phase0.Attestation
	Capella        *phase0.Attestation
	Deneb          *phase0.Attestation
	Electra        *electra.Attestation
	Fulu           *electra.Attestation
	Gloas          *electra.Attestation
	Heze           *electra.Attestation
}

VersionedAttestation contains a versioned attestation.

func (*VersionedAttestation) AggregationBits

func (v *VersionedAttestation) AggregationBits() (bitfield.Bitlist, error)

AggregationBits returns the aggregation bits of the attestation.

func (*VersionedAttestation) CommitteeBits

func (v *VersionedAttestation) CommitteeBits() (bitfield.Bitvector64, error)

CommitteeBits returns the committee bits of the attestation.

func (*VersionedAttestation) CommitteeIndex

func (v *VersionedAttestation) CommitteeIndex() (phase0.CommitteeIndex, error)

CommitteeIndex returns the index if only one bit is set, otherwise error.

func (*VersionedAttestation) Data

Data returns the data of the attestation.

func (*VersionedAttestation) HashTreeRoot

func (v *VersionedAttestation) HashTreeRoot() ([32]byte, error)

func (*VersionedAttestation) IsEmpty

func (v *VersionedAttestation) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedAttestation) Signature

func (v *VersionedAttestation) Signature() (phase0.BLSSignature, error)

Signature returns the signature of the attestation.

func (*VersionedAttestation) String

func (v *VersionedAttestation) String() string

String returns a string version of the structure.

func (*VersionedAttestation) UnmarshalJSON

func (v *VersionedAttestation) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type VersionedAttesterSlashing

VersionedAttesterSlashing contains a versioned attestation.

func (*VersionedAttesterSlashing) Attestation1

Attestation1 returns the first indexed attestation.

func (*VersionedAttesterSlashing) Attestation2

Attestation2 returns the second indexed attestation.

func (*VersionedAttesterSlashing) IsEmpty

func (v *VersionedAttesterSlashing) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedAttesterSlashing) String

func (v *VersionedAttesterSlashing) String() string

String returns a string version of the structure.

type VersionedBeaconBlock

type VersionedBeaconBlock struct {
	Version   DataVersion
	Phase0    *phase0.BeaconBlock
	Altair    *altair.BeaconBlock
	Bellatrix *bellatrix.BeaconBlock
	Capella   *capella.BeaconBlock
	Deneb     *deneb.BeaconBlock
	Electra   *electra.BeaconBlock
	Fulu      *electra.BeaconBlock
	Gloas     *gloas.BeaconBlock
	Heze      *heze.BeaconBlock
}

VersionedBeaconBlock contains a versioned beacon block.

func (*VersionedBeaconBlock) Attestations

func (v *VersionedBeaconBlock) Attestations() ([]VersionedAttestation, error)

Attestations returns the attestations of the beacon block.

func (*VersionedBeaconBlock) AttesterSlashings

func (v *VersionedBeaconBlock) AttesterSlashings() ([]VersionedAttesterSlashing, error)

AttesterSlashings returns the attester slashings of the beacon block.

func (*VersionedBeaconBlock) BodyRoot

func (v *VersionedBeaconBlock) BodyRoot() (phase0.Root, error)

BodyRoot returns the body root of the beacon block.

func (*VersionedBeaconBlock) ExecutionPayload

func (v *VersionedBeaconBlock) ExecutionPayload() (*VersionedExecutionPayload, error)

ExecutionPayload returns the execution payload of the beacon block.

func (*VersionedBeaconBlock) Graffiti

func (v *VersionedBeaconBlock) Graffiti() ([32]byte, error)

Graffiti returns the graffiti of the beacon block.

func (*VersionedBeaconBlock) IsEmpty

func (v *VersionedBeaconBlock) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedBeaconBlock) ParentRoot

func (v *VersionedBeaconBlock) ParentRoot() (phase0.Root, error)

ParentRoot returns the parent root of the beacon block.

func (*VersionedBeaconBlock) ProposerIndex

func (v *VersionedBeaconBlock) ProposerIndex() (phase0.ValidatorIndex, error)

ProposerIndex returns the proposer index of the beacon block.

func (*VersionedBeaconBlock) ProposerSlashings

func (v *VersionedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)

ProposerSlashings returns the proposer slashings of the beacon block.

func (*VersionedBeaconBlock) RandaoReveal

func (v *VersionedBeaconBlock) RandaoReveal() (phase0.BLSSignature, error)

RandaoReveal returns the RANDAO reveal of the beacon block.

func (*VersionedBeaconBlock) Root

func (v *VersionedBeaconBlock) Root() (phase0.Root, error)

Root returns the root of the beacon block.

func (*VersionedBeaconBlock) SignedExecutionPayloadBid

func (v *VersionedBeaconBlock) SignedExecutionPayloadBid() (*VersionedSignedExecutionPayloadBid, error)

SignedExecutionPayloadBid returns the execution payload bid of the beacon block.

func (*VersionedBeaconBlock) Slot

func (v *VersionedBeaconBlock) Slot() (phase0.Slot, error)

Slot returns the slot of the beacon block.

func (*VersionedBeaconBlock) StateRoot

func (v *VersionedBeaconBlock) StateRoot() (phase0.Root, error)

StateRoot returns the state root of the beacon block.

func (*VersionedBeaconBlock) String

func (v *VersionedBeaconBlock) String() string

String returns a string version of the structure.

type VersionedBeaconBlockBody

type VersionedBeaconBlockBody struct {
	Version   DataVersion
	Phase0    *phase0.BeaconBlockBody
	Altair    *altair.BeaconBlockBody
	Bellatrix *bellatrix.BeaconBlockBody
	Capella   *capella.BeaconBlockBody
	Deneb     *deneb.BeaconBlockBody
	Electra   *electra.BeaconBlockBody
	Fulu      *electra.BeaconBlockBody
	Gloas     *gloas.BeaconBlockBody
	Heze      *heze.BeaconBlockBody
}

VersionedBeaconBlockBody contains a versioned beacon block body.

func (*VersionedBeaconBlockBody) String

func (v *VersionedBeaconBlockBody) String() string

String returns a string version of the structure.

type VersionedBeaconState

type VersionedBeaconState struct {
	Version   DataVersion
	Phase0    *phase0.BeaconState
	Altair    *altair.BeaconState
	Bellatrix *bellatrix.BeaconState
	Capella   *capella.BeaconState
	Deneb     *deneb.BeaconState
	Electra   *electra.BeaconState
	Fulu      *fulu.BeaconState
	Gloas     *gloas.BeaconState
	Heze      *heze.BeaconState
}

VersionedBeaconState contains a versioned beacon state.

func (*VersionedBeaconState) Builders

func (v *VersionedBeaconState) Builders() ([]*gloas.Builder, error)

Builders returns the builders of the state.

func (*VersionedBeaconState) ConsolidationBalanceToConsume

func (v *VersionedBeaconState) ConsolidationBalanceToConsume() (phase0.Gwei, error)

ConsolidationBalanceToConsume returns the consolidation balance to consume of the state.

func (*VersionedBeaconState) DepositBalanceToConsume

func (v *VersionedBeaconState) DepositBalanceToConsume() (phase0.Gwei, error)

DepositBalanceToConsume returns the deposit balance to consume of the state.

func (*VersionedBeaconState) DepositRequestsStartIndex

func (v *VersionedBeaconState) DepositRequestsStartIndex() (uint64, error)

DepositRequestsStartIndex returns the deposit requests start index of the state.

func (*VersionedBeaconState) EarliestConsolidationEpoch

func (v *VersionedBeaconState) EarliestConsolidationEpoch() (phase0.Epoch, error)

EarliestConsolidationEpoch returns the earliest consolidation epoch of the state.

func (*VersionedBeaconState) EarliestExitEpoch

func (v *VersionedBeaconState) EarliestExitEpoch() (phase0.Epoch, error)

EarliestExitEpoch returns the earliest exit epoch of the state.

func (*VersionedBeaconState) ExecutionPayloadAvailability

func (v *VersionedBeaconState) ExecutionPayloadAvailability() ([]uint8, error)

ExecutionPayloadAvailability returns the execution payload availability of the state.

func (*VersionedBeaconState) ExitBalanceToConsume

func (v *VersionedBeaconState) ExitBalanceToConsume() (phase0.Gwei, error)

ExitBalanceToConsume returns the deposit balance to consume of the state.

func (*VersionedBeaconState) FieldGeneralizedIndex

func (v *VersionedBeaconState) FieldGeneralizedIndex(name string) (int, error)

FieldGeneralizedIndex returns the generalized index for a given field name. The generalized index represents the field's absolute position in the Merkle tree. This is used for generating and verifying Merkle proofs. Returns an error if the field doesn't exist or the state is empty.

func (*VersionedBeaconState) FieldIndex

func (v *VersionedBeaconState) FieldIndex(name string) (int, error)

FieldIndex returns the struct field index for a given field name. The index represents the field's position in the struct's memory layout. Returns an error if the field doesn't exist or the state is empty.

func (*VersionedBeaconState) FieldRoot

func (v *VersionedBeaconState) FieldRoot(name string) (phase0.Hash32, error)

FieldRoot returns the SSZ hash root of a specific field in the beacon state. Parameters:

  • name: The name of the field to get the root for

Returns:

  • phase0.Hash32: The SSZ hash root of the field
  • error: If the field doesn't exist, the state is empty, or the field is not hash tree rootable

func (*VersionedBeaconState) FieldTree

func (v *VersionedBeaconState) FieldTree(name string) (*treeproof.Node, error)

FieldTree returns the Merkle subtree for a specific field in the beacon state.

func (*VersionedBeaconState) GetTree

func (v *VersionedBeaconState) GetTree() (*treeproof.Node, error)

GetTree returns the GetTree of the specific beacon state version.

func (*VersionedBeaconState) HashTreeRoot

func (v *VersionedBeaconState) HashTreeRoot() (phase0.Hash32, error)

HashTreeRoot returns the HashTreeRoot of the specific beacon state version.

func (*VersionedBeaconState) IsEmpty

func (v *VersionedBeaconState) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedBeaconState) NextWithdrawalValidatorIndex

func (v *VersionedBeaconState) NextWithdrawalValidatorIndex() (phase0.ValidatorIndex, error)

NextWithdrawalValidatorIndex returns the next withdrawal validator index of the state.

func (*VersionedBeaconState) PendingConsolidations

func (v *VersionedBeaconState) PendingConsolidations() ([]*electra.PendingConsolidation, error)

PendingConsolidations returns the pending consolidations of the state.

func (*VersionedBeaconState) PendingDeposits

func (v *VersionedBeaconState) PendingDeposits() ([]*electra.PendingDeposit, error)

PendingDeposits returns the pending deposits of the state.

func (*VersionedBeaconState) PendingPartialWithdrawals

func (v *VersionedBeaconState) PendingPartialWithdrawals() ([]*electra.PendingPartialWithdrawal, error)

PendingPartialWithdrawals returns the pending partial withdrawals of the state.

func (*VersionedBeaconState) ProveField

func (v *VersionedBeaconState) ProveField(name string) ([]phase0.Hash32, error)

ProveField generates a Merkle proof for a specific field against the beacon state root. Parameters:

  • name: The name of the field to generate a proof for

Returns:

  • []phase0.Hash32: The Merkle proof as a sequence of 32-byte hashes
  • error: If the field doesn't exist or there's an error generating the proof

func (*VersionedBeaconState) Slot

func (v *VersionedBeaconState) Slot() (phase0.Slot, error)

Slot returns the slot of the state.

func (*VersionedBeaconState) String

func (v *VersionedBeaconState) String() string

String returns a string version of the structure.

func (*VersionedBeaconState) ValidatorAtIndex

func (v *VersionedBeaconState) ValidatorAtIndex(index phase0.ValidatorIndex) (*phase0.Validator, error)

ValidatorAtIndex returns the validator at the given index. This is a convenience method that handles accessing the validators array. Parameters:

  • index: The index of the validator to retrieve

Returns:

  • *phase0.Validator: The validator at the given index
  • error: If the index is invalid or there's an error accessing the validators

func (*VersionedBeaconState) ValidatorBalance

func (v *VersionedBeaconState) ValidatorBalance(index phase0.ValidatorIndex) (phase0.Gwei, error)

ValidatorBalance returns the balance of the validator at the given index. This is a convenience method that handles accessing the balances array. Parameters:

  • index: The index of the validator whose balance to retrieve

Returns:

  • phase0.Gwei: The balance in Gwei
  • error: If the index is invalid or there's an error accessing the balances

func (*VersionedBeaconState) ValidatorBalances

func (v *VersionedBeaconState) ValidatorBalances() ([]phase0.Gwei, error)

ValidatorBalances returns the validator balances of the state.

func (*VersionedBeaconState) Validators

func (v *VersionedBeaconState) Validators() ([]*phase0.Validator, error)

Validators returns the validators of the state.

func (*VersionedBeaconState) VerifyFieldProof

func (v *VersionedBeaconState) VerifyFieldProof(proof []phase0.Hash32, name string) (bool, error)

VerifyFieldProof verifies a Merkle proof for a field against the beacon state root. Parameters:

  • proof: The Merkle proof as a sequence of 32-byte hashes
  • name: The name of the field the proof is for

Returns:

  • bool: True if the proof is valid, false otherwise
  • error: If there's an error during verification

type VersionedExecutionPayload

type VersionedExecutionPayload struct {
	Version   DataVersion
	Bellatrix *bellatrix.ExecutionPayload
	Capella   *capella.ExecutionPayload
	Deneb     *deneb.ExecutionPayload
	Electra   *deneb.ExecutionPayload
	Fulu      *deneb.ExecutionPayload
	Gloas     *deneb.ExecutionPayload
	Heze      *deneb.ExecutionPayload
}

VersionedExecutionPayload contains a versioned execution payload.

func (*VersionedExecutionPayload) BaseFeePerGas

func (v *VersionedExecutionPayload) BaseFeePerGas() (*uint256.Int, error)

BaseFeePerGas returns the base fee per gas of the execution payload.

func (*VersionedExecutionPayload) BlobGasUsed

func (v *VersionedExecutionPayload) BlobGasUsed() (uint64, error)

BlobGasUsed returns the blob gas used of the execution payload.

func (*VersionedExecutionPayload) BlockHash

func (v *VersionedExecutionPayload) BlockHash() (phase0.Hash32, error)

BlockHash returns the block hash of the execution payload.

func (*VersionedExecutionPayload) BlockNumber

func (v *VersionedExecutionPayload) BlockNumber() (uint64, error)

BlockNumber returns the block number of the execution payload.

func (*VersionedExecutionPayload) ExcessBlobGas

func (v *VersionedExecutionPayload) ExcessBlobGas() (uint64, error)

ExcessBlobGas returns the excess blob gas of the execution payload.

func (*VersionedExecutionPayload) ExtraData

func (v *VersionedExecutionPayload) ExtraData() ([]byte, error)

ExtraData returns the extra data of the execution payload.

func (*VersionedExecutionPayload) FeeRecipient

FeeRecipient returns the fee recipient of the execution payload.

func (*VersionedExecutionPayload) GasLimit

func (v *VersionedExecutionPayload) GasLimit() (uint64, error)

GasLimit returns the gas limit of the execution payload.

func (*VersionedExecutionPayload) GasUsed

func (v *VersionedExecutionPayload) GasUsed() (uint64, error)

GasUsed returns the gas used of the execution payload.

func (*VersionedExecutionPayload) IsEmpty

func (v *VersionedExecutionPayload) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedExecutionPayload) LogsBloom

func (v *VersionedExecutionPayload) LogsBloom() ([256]byte, error)

LogsBloom returns the logs bloom of the execution payload.

func (*VersionedExecutionPayload) ParentHash

func (v *VersionedExecutionPayload) ParentHash() (phase0.Hash32, error)

ParentHash returns the parent hash of the execution payload.

func (*VersionedExecutionPayload) PrevRandao

func (v *VersionedExecutionPayload) PrevRandao() ([32]byte, error)

PrevRandao returns the prev randao of the execution payload.

func (*VersionedExecutionPayload) ReceiptsRoot

func (v *VersionedExecutionPayload) ReceiptsRoot() (phase0.Root, error)

ReceiptsRoot returns the receipts root of the execution payload.

func (*VersionedExecutionPayload) StateRoot

func (v *VersionedExecutionPayload) StateRoot() (phase0.Root, error)

StateRoot returns the state root of the execution payload.

func (*VersionedExecutionPayload) String

func (v *VersionedExecutionPayload) String() string

String returns a string version of the structure.

func (*VersionedExecutionPayload) Timestamp

func (v *VersionedExecutionPayload) Timestamp() (uint64, error)

Timestamp returns the timestamp of the execution payload.

func (*VersionedExecutionPayload) Transactions

func (v *VersionedExecutionPayload) Transactions() ([]bellatrix.Transaction, error)

Transactions returns the transactions of the execution payload.

func (*VersionedExecutionPayload) Withdrawals

func (v *VersionedExecutionPayload) Withdrawals() ([]*capella.Withdrawal, error)

Withdrawals returns the withdrawals of the execution payload.

type VersionedIndexedAttestation

VersionedIndexedAttestation contains a versioned indexed attestation.

func (*VersionedIndexedAttestation) AttestingIndices

func (v *VersionedIndexedAttestation) AttestingIndices() ([]uint64, error)

AttestingIndices returns the attesting indices of the indexed attestation.

func (*VersionedIndexedAttestation) Data

Data returns the data of the indexed attestation.

func (*VersionedIndexedAttestation) IsEmpty

func (v *VersionedIndexedAttestation) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedIndexedAttestation) Signature

Signature returns the signature of the indexed attestation.

func (*VersionedIndexedAttestation) String

func (v *VersionedIndexedAttestation) String() string

String returns a string version of the structure.

type VersionedSignedAggregateAndProof

VersionedSignedAggregateAndProof contains a versioned signed aggregate and proof.

func (*VersionedSignedAggregateAndProof) AggregatorIndex

AggregatorIndex returns the aggregator index of the aggregate.

func (*VersionedSignedAggregateAndProof) IsEmpty

IsEmpty returns true if there is no aggregate and proof.

func (*VersionedSignedAggregateAndProof) SelectionProof

SelectionProof returns the selection proof of the signed aggregate.

func (*VersionedSignedAggregateAndProof) Signature

Signature returns the signature of the signed aggregate and proof.

func (*VersionedSignedAggregateAndProof) Slot

Slot returns the slot of the signed aggregate and proof.

func (*VersionedSignedAggregateAndProof) String

String returns a string version of the structure.

type VersionedSignedBeaconBlock

VersionedSignedBeaconBlock contains a versioned signed beacon block.

func (*VersionedSignedBeaconBlock) Attestations

func (v *VersionedSignedBeaconBlock) Attestations() ([]*VersionedAttestation, error)

Attestations returns the attestations of the beacon block.

func (*VersionedSignedBeaconBlock) AttesterSlashings

func (v *VersionedSignedBeaconBlock) AttesterSlashings() ([]VersionedAttesterSlashing, error)

AttesterSlashings returns the attester slashings of the beacon block.

func (*VersionedSignedBeaconBlock) BLSToExecutionChanges

func (v *VersionedSignedBeaconBlock) BLSToExecutionChanges() ([]*capella.SignedBLSToExecutionChange, error)

BLSToExecutionChanges returns the bls to execution changes of the beacon block.

func (*VersionedSignedBeaconBlock) BlobKZGCommitments

func (v *VersionedSignedBeaconBlock) BlobKZGCommitments() ([]deneb.KZGCommitment, error)

BlobKZGCommitments returns the blob KZG commitments of the beacon block.

func (*VersionedSignedBeaconBlock) BodyRoot

func (v *VersionedSignedBeaconBlock) BodyRoot() (phase0.Root, error)

BodyRoot returns the body root of the beacon block.

func (*VersionedSignedBeaconBlock) Deposits

func (v *VersionedSignedBeaconBlock) Deposits() ([]*phase0.Deposit, error)

Deposits returns the deposits of the beacon block.

func (*VersionedSignedBeaconBlock) ETH1Data

func (v *VersionedSignedBeaconBlock) ETH1Data() (*phase0.ETH1Data, error)

ETH1Data returns the eth1 data of the beacon block.

func (*VersionedSignedBeaconBlock) ExecutionBlockHash

func (v *VersionedSignedBeaconBlock) ExecutionBlockHash() (phase0.Hash32, error)

ExecutionBlockHash returns the block hash of the beacon block.

func (*VersionedSignedBeaconBlock) ExecutionBlockNumber

func (v *VersionedSignedBeaconBlock) ExecutionBlockNumber() (uint64, error)

ExecutionBlockNumber returns the block number of the beacon block.

func (*VersionedSignedBeaconBlock) ExecutionPayload

ExecutionPayload returns the execution payload of the signed beacon block.

func (*VersionedSignedBeaconBlock) ExecutionRequests

func (v *VersionedSignedBeaconBlock) ExecutionRequests() (*electra.ExecutionRequests, error)

ExecutionRequests returs the execution requests for the block.

func (*VersionedSignedBeaconBlock) ExecutionTransactions

func (v *VersionedSignedBeaconBlock) ExecutionTransactions() ([]bellatrix.Transaction, error)

ExecutionTransactions returns the execution payload transactions for the block.

func (*VersionedSignedBeaconBlock) Graffiti

func (v *VersionedSignedBeaconBlock) Graffiti() ([32]byte, error)

Graffiti returns the graffiti for the block.

func (*VersionedSignedBeaconBlock) IsEmpty

func (v *VersionedSignedBeaconBlock) IsEmpty() bool

IsEmpty returns true if the block is empty.

func (*VersionedSignedBeaconBlock) ParentRoot

func (v *VersionedSignedBeaconBlock) ParentRoot() (phase0.Root, error)

ParentRoot returns the parent root of the beacon block.

func (*VersionedSignedBeaconBlock) ProposerIndex

func (v *VersionedSignedBeaconBlock) ProposerIndex() (phase0.ValidatorIndex, error)

ProposerIndex returns the proposer index of the beacon block.

func (*VersionedSignedBeaconBlock) ProposerSlashings

func (v *VersionedSignedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)

ProposerSlashings returns the proposer slashings of the beacon block.

func (*VersionedSignedBeaconBlock) RandaoReveal

func (v *VersionedSignedBeaconBlock) RandaoReveal() (phase0.BLSSignature, error)

RandaoReveal returns the randao reveal of the beacon block.

func (*VersionedSignedBeaconBlock) Root

Root returns the root of the beacon block.

func (*VersionedSignedBeaconBlock) SignedExecutionPayloadBid

func (v *VersionedSignedBeaconBlock) SignedExecutionPayloadBid() (*VersionedSignedExecutionPayloadBid, error)

SignedExecutionPayloadBid returns the execution payload bid of the beacon block.

func (*VersionedSignedBeaconBlock) Slot

Slot returns the slot of the signed beacon block.

func (*VersionedSignedBeaconBlock) StateRoot

func (v *VersionedSignedBeaconBlock) StateRoot() (phase0.Root, error)

StateRoot returns the state root of the beacon block.

func (*VersionedSignedBeaconBlock) String

func (v *VersionedSignedBeaconBlock) String() string

String returns a string version of the structure.

func (*VersionedSignedBeaconBlock) SyncAggregate

func (v *VersionedSignedBeaconBlock) SyncAggregate() (*altair.SyncAggregate, error)

SyncAggregate returns the sync aggregate of the beacon block.

func (*VersionedSignedBeaconBlock) VoluntaryExits

func (v *VersionedSignedBeaconBlock) VoluntaryExits() ([]*phase0.SignedVoluntaryExit, error)

VoluntaryExits returns the voluntary exits of the beacon block.

func (*VersionedSignedBeaconBlock) Withdrawals

func (v *VersionedSignedBeaconBlock) Withdrawals() ([]*capella.Withdrawal, error)

Withdrawals returns the withdrawals of the beacon block.

type VersionedSignedExecutionPayloadBid

type VersionedSignedExecutionPayloadBid struct {
	Version DataVersion
	Gloas   *gloas.SignedExecutionPayloadBid
	Heze    *heze.SignedExecutionPayloadBid
}

VersionedSignedExecutionPayloadBid contains a versioned signed execution payload bid.

func (*VersionedSignedExecutionPayloadBid) BlobKZGCommitments

func (v *VersionedSignedExecutionPayloadBid) BlobKZGCommitments() ([]deneb.KZGCommitment, error)

BlobKZGCommitments returns the blob kzg commitments of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) BlockHash

BlockHash returns the block hash of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) BuilderIndex

BuilderIndex returns the builder index of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) ExecutionPayment

func (v *VersionedSignedExecutionPayloadBid) ExecutionPayment() (phase0.Gwei, error)

ExecutionPayment returns the execution payment of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) FeeRecipient

FeeRecipient returns the fee recipient of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) GasLimit

GasLimit returns the gas limit of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) ParentBlockHash

func (v *VersionedSignedExecutionPayloadBid) ParentBlockHash() (phase0.Hash32, error)

ParentBlockHash returns the parent block hash of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) ParentBlockRoot

func (v *VersionedSignedExecutionPayloadBid) ParentBlockRoot() (phase0.Root, error)

ParentBlockRoot returns the parent block root of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) Signature

Signature returns the signature of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) Slot

Slot returns the slot of the execution payload bid.

func (*VersionedSignedExecutionPayloadBid) String

String returns a string version of the structure.

func (*VersionedSignedExecutionPayloadBid) Value

Value returns the value of the execution payload bid.

Directories

Path Synopsis
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.

Jump to

Keyboard shortcuts

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