Documentation
¶
Index ¶
- Variables
- func AttesterSlashingsElectraToConsensus(src []*AttesterSlashingElectra) ([]*eth.AttesterSlashingElectra, error)
- func AttesterSlashingsToConsensus(src []*AttesterSlashing) ([]*eth.AttesterSlashing, error)
- func AttsElectraToConsensus(src []*AttestationElectra) ([]*eth.AttestationElectra, error)
- func AttsToConsensus(src []*Attestation) ([]*eth.Attestation, error)
- func DepositsToConsensus(src []*Deposit) ([]*eth.Deposit, error)
- func ProposerSlashingsToConsensus(src []*ProposerSlashing) ([]*eth.ProposerSlashing, error)
- func SignedBLSChangesToConsensus(src []*SignedBLSToExecutionChange) ([]*eth.SignedBLSToExecutionChange, error)
- func SignedExitsToConsensus(src []*SignedVoluntaryExit) ([]*eth.SignedVoluntaryExit, error)
- type ActiveSetChanges
- type AddrRequest
- type AggregateAttestationAndProof
- type AggregateAttestationAndProofElectra
- type AggregateAttestationResponse
- type AggregatedAttEventSource
- type Attestation
- type AttestationData
- type AttestationElectra
- type AttestationRewards
- type AttestationRewardsResponse
- type AttesterDuty
- type AttesterSlashing
- type AttesterSlashingElectra
- type BLSToExecutionChange
- type BLSToExecutionChangesPoolResponse
- type BeaconBlock
- type BeaconBlockAltair
- type BeaconBlockBellatrix
- type BeaconBlockBody
- type BeaconBlockBodyAltair
- type BeaconBlockBodyBellatrix
- type BeaconBlockBodyCapella
- type BeaconBlockBodyDeneb
- type BeaconBlockBodyElectra
- type BeaconBlockCapella
- type BeaconBlockContentsDeneb
- type BeaconBlockContentsElectra
- type BeaconBlockContentsFulu
- type BeaconBlockDeneb
- type BeaconBlockElectra
- type BeaconBlockHeader
- type BeaconCommitteeSubscription
- type BeaconState
- type BeaconStateAltair
- type BeaconStateBellatrix
- type BeaconStateCapella
- type BeaconStateDeneb
- type BeaconStateElectra
- type BeaconStateFulu
- type BlindedBeaconBlockBellatrix
- type BlindedBeaconBlockBodyBellatrix
- type BlindedBeaconBlockBodyCapella
- type BlindedBeaconBlockBodyDeneb
- type BlindedBeaconBlockBodyElectra
- type BlindedBeaconBlockCapella
- type BlindedBeaconBlockDeneb
- type BlindedBeaconBlockElectra
- type BlindedBeaconBlockFulu
- type BlobSidecarEvent
- type BlobSidecars
- type BlockEvent
- type BlockGossipEvent
- type BlockRewards
- type BlockRewardsResponse
- type BlockRoot
- type BlockRootResponse
- type ChainHead
- type ChainReorgEvent
- type Checkpoint
- type Committee
- type ConsolidationRequest
- type ContributionAndProof
- type Deposit
- type DepositContractData
- type DepositData
- type DepositRequest
- type DepositSnapshot
- type Eth1Data
- type ExecutionPayload
- type ExecutionPayloadCapella
- type ExecutionPayloadDeneb
- type ExecutionPayloadHeader
- type ExecutionPayloadHeaderCapella
- type ExecutionPayloadHeaderDeneb
- type ExecutionRequests
- type ExpectedWithdrawal
- type ExpectedWithdrawalsResponse
- type FeeRecipient
- type FinalityCheckpoints
- type FinalizedCheckpointEvent
- type Fork
- type ForkChoiceDumpExtraData
- type ForkChoiceHead
- type ForkChoiceNode
- type ForkChoiceNodeExtraData
- type Genesis
- type GetAttestationDataResponse
- type GetAttesterDutiesResponse
- type GetAttesterSlashingsResponse
- type GetBeaconStateV2Response
- type GetBlockAttestationsResponse
- type GetBlockAttestationsV2Response
- type GetBlockHeaderResponse
- type GetBlockHeadersResponse
- type GetBlockResponse
- type GetBlockV2Response
- type GetCommitteesResponse
- type GetDepositContractResponse
- type GetDepositSnapshotResponse
- type GetFinalityCheckpointsResponse
- type GetForkChoiceDumpResponse
- type GetForkChoiceHeadsV2Response
- type GetForkScheduleResponse
- type GetGenesisResponse
- type GetIdentityResponse
- type GetIndividualVotesRequest
- type GetIndividualVotesResponse
- type GetLivenessResponse
- type GetPeerCountResponse
- type GetPeerResponse
- type GetPeersResponse
- type GetPendingConsolidationsResponse
- type GetPendingDepositsResponse
- type GetPendingPartialWithdrawalsResponse
- type GetProposerDutiesResponse
- type GetProposerSlashingsResponse
- type GetRandaoResponse
- type GetSpecResponse
- type GetStateForkResponse
- type GetStateRootResponse
- type GetSyncCommitteeDutiesResponse
- type GetSyncCommitteeResponse
- type GetValidatorBalancesResponse
- type GetValidatorCountResponse
- type GetValidatorIdentitiesResponse
- type GetValidatorParticipationResponse
- type GetValidatorPerformanceRequest
- type GetValidatorPerformanceResponse
- type GetValidatorResponse
- type GetValidatorsRequest
- type GetValidatorsResponse
- type GetVersionResponse
- type GetWeakSubjectivityResponse
- type HeadEvent
- type HistoricalSummary
- type IdealAttestationReward
- type Identity
- type IndexedAttestation
- type IndexedAttestationElectra
- type IndividualVote
- type LightClientBootstrap
- type LightClientBootstrapResponse
- type LightClientFinalityUpdate
- type LightClientFinalityUpdateEvent
- type LightClientFinalityUpdateResponse
- type LightClientHeader
- type LightClientHeaderCapella
- type LightClientHeaderDeneb
- type LightClientOptimisticUpdate
- type LightClientOptimisticUpdateEvent
- type LightClientOptimisticUpdateResponse
- type LightClientUpdate
- type LightClientUpdateResponse
- type LightClientUpdatesByRangeResponse
- type ListAttestationsResponse
- type ListVoluntaryExitsResponse
- type Liveness
- type MessageJsoner
- type Metadata
- type PayloadAttributesEvent
- type PayloadAttributesEventData
- type PayloadAttributesV1
- type PayloadAttributesV2
- type PayloadAttributesV3
- type Peer
- type PeerCount
- type PeersResponse
- type PendingAttestation
- type PendingConsolidation
- type PendingDeposit
- type PendingPartialWithdrawal
- type ProduceBlockV3Response
- type ProduceSyncCommitteeContributionResponse
- type ProposerDuty
- type ProposerSlashing
- type PublishBlobsRequest
- type Randao
- type Sidecar
- type SidecarsResponse
- type SignedAggregateAttestationAndProof
- type SignedAggregateAttestationAndProofElectra
- type SignedBLSToExecutionChange
- type SignedBeaconBlock
- type SignedBeaconBlockAltair
- type SignedBeaconBlockBellatrix
- type SignedBeaconBlockCapella
- type SignedBeaconBlockContentsDeneb
- type SignedBeaconBlockContentsElectra
- type SignedBeaconBlockContentsFulu
- type SignedBeaconBlockDeneb
- type SignedBeaconBlockElectra
- type SignedBeaconBlockFulu
- type SignedBeaconBlockHeader
- type SignedBeaconBlockHeaderContainer
- type SignedBlindedBeaconBlockBellatrix
- type SignedBlindedBeaconBlockCapella
- type SignedBlindedBeaconBlockDeneb
- func (s *SignedBlindedBeaconBlockDeneb) MessageRawJson() ([]byte, error)
- func (s *SignedBlindedBeaconBlockDeneb) SigString() string
- func (b *SignedBlindedBeaconBlockDeneb) ToConsensus() (*eth.SignedBlindedBeaconBlockDeneb, error)
- func (b *SignedBlindedBeaconBlockDeneb) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
- type SignedBlindedBeaconBlockElectra
- func (s *SignedBlindedBeaconBlockElectra) MessageRawJson() ([]byte, error)
- func (s *SignedBlindedBeaconBlockElectra) SigString() string
- func (b *SignedBlindedBeaconBlockElectra) ToConsensus() (*eth.SignedBlindedBeaconBlockElectra, error)
- func (b *SignedBlindedBeaconBlockElectra) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
- type SignedBlindedBeaconBlockFulu
- func (s *SignedBlindedBeaconBlockFulu) MessageRawJson() ([]byte, error)
- func (s *SignedBlindedBeaconBlockFulu) SigString() string
- func (b *SignedBlindedBeaconBlockFulu) ToConsensus() (*eth.SignedBlindedBeaconBlockFulu, error)
- func (b *SignedBlindedBeaconBlockFulu) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
- type SignedBlock
- type SignedContributionAndProof
- type SignedMessageJsoner
- type SignedValidatorRegistration
- type SignedVoluntaryExit
- type SingleAttestation
- type StateRoot
- type SubmitAggregateAndProofsRequest
- type SubmitAttestationsRequest
- type SubmitBeaconCommitteeSubscriptionsRequest
- type SubmitContributionAndProofsRequest
- type SubmitSyncCommitteeSignaturesRequest
- type SubmitSyncCommitteeSubscriptionsRequest
- type SyncAggregate
- type SyncCommittee
- type SyncCommitteeContribution
- type SyncCommitteeDuty
- type SyncCommitteeMessage
- type SyncCommitteeReward
- type SyncCommitteeRewardsResponse
- type SyncCommitteeSubscription
- type SyncCommitteeValidators
- type SyncDetails
- type SyncDetailsContainer
- type SyncStatusResponse
- type SyncStatusResponseData
- type TotalAttestationReward
- type UnaggregatedAttEventSource
- type Validator
- type ValidatorBalance
- type ValidatorContainer
- type ValidatorCount
- type ValidatorIdentity
- type ValidatorParticipation
- type ValidatorRegistration
- type Version
- type VoluntaryExit
- type WeakSubjectivityData
- type Withdrawal
- type WithdrawalRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExecutionPayloadElectraFromConsensus = ExecutionPayloadDenebFromConsensus ExecutionPayloadHeaderElectraFromConsensus = ExecutionPayloadHeaderDenebFromConsensus )
View Source
var ( ExecutionPayloadFuluFromConsensus = ExecutionPayloadDenebFromConsensus ExecutionPayloadHeaderFuluFromConsensus = ExecutionPayloadHeaderDenebFromConsensus BeaconBlockFuluFromConsensus = BeaconBlockElectraFromConsensus )
View Source
var ErrUnsupportedConversion = errors.New("Could not determine api struct type to use for value")
Functions ¶
func AttesterSlashingsElectraToConsensus ¶
func AttesterSlashingsElectraToConsensus(src []*AttesterSlashingElectra) ([]*eth.AttesterSlashingElectra, error)
func AttesterSlashingsToConsensus ¶
func AttesterSlashingsToConsensus(src []*AttesterSlashing) ([]*eth.AttesterSlashing, error)
func AttsElectraToConsensus ¶
func AttsElectraToConsensus(src []*AttestationElectra) ([]*eth.AttestationElectra, error)
func AttsToConsensus ¶
func AttsToConsensus(src []*Attestation) ([]*eth.Attestation, error)
func ProposerSlashingsToConsensus ¶
func ProposerSlashingsToConsensus(src []*ProposerSlashing) ([]*eth.ProposerSlashing, error)
func SignedBLSChangesToConsensus ¶
func SignedBLSChangesToConsensus(src []*SignedBLSToExecutionChange) ([]*eth.SignedBLSToExecutionChange, error)
func SignedExitsToConsensus ¶
func SignedExitsToConsensus(src []*SignedVoluntaryExit) ([]*eth.SignedVoluntaryExit, error)
Types ¶
type ActiveSetChanges ¶
type ActiveSetChanges struct {
Epoch string `json:"epoch"`
ActivatedPublicKeys []string `json:"activated_public_keys"`
ActivatedIndices []string `json:"activated_indices"`
ExitedPublicKeys []string `json:"exited_public_keys"`
ExitedIndices []string `json:"exited_indices"`
SlashedPublicKeys []string `json:"slashed_public_keys"`
SlashedIndices []string `json:"slashed_indices"`
EjectedPublicKeys []string `json:"ejected_public_keys"`
EjectedIndices []string `json:"ejected_indices"`
}
type AddrRequest ¶
type AddrRequest struct {
Addr string `json:"addr"`
}
type AggregateAttestationAndProof ¶
type AggregateAttestationAndProof struct {
AggregatorIndex string `json:"aggregator_index"`
Aggregate *Attestation `json:"aggregate"`
SelectionProof string `json:"selection_proof"`
}
func (*AggregateAttestationAndProof) ToConsensus ¶
func (a *AggregateAttestationAndProof) ToConsensus() (*eth.AggregateAttestationAndProof, error)
type AggregateAttestationAndProofElectra ¶
type AggregateAttestationAndProofElectra struct {
AggregatorIndex string `json:"aggregator_index"`
Aggregate *AttestationElectra `json:"aggregate"`
SelectionProof string `json:"selection_proof"`
}
func (*AggregateAttestationAndProofElectra) ToConsensus ¶
func (a *AggregateAttestationAndProofElectra) ToConsensus() (*eth.AggregateAttestationAndProofElectra, error)
type AggregateAttestationResponse ¶
type AggregateAttestationResponse struct {
Version string `json:"version,omitempty"`
Data json.RawMessage `json:"data"`
}
type AggregatedAttEventSource ¶
type AggregatedAttEventSource struct {
Aggregate *Attestation `json:"aggregate"`
}
type Attestation ¶
type Attestation struct {
AggregationBits string `json:"aggregation_bits"`
Data *AttestationData `json:"data"`
Signature string `json:"signature"`
}
func AttFromConsensus ¶
func AttFromConsensus(a *eth.Attestation) *Attestation
func AttsFromConsensus ¶
func AttsFromConsensus(src []*eth.Attestation) []*Attestation
func (*Attestation) ToConsensus ¶
func (a *Attestation) ToConsensus() (*eth.Attestation, error)
type AttestationData ¶
type AttestationData struct {
Slot string `json:"slot"`
CommitteeIndex string `json:"index"`
BeaconBlockRoot string `json:"beacon_block_root"`
Source *Checkpoint `json:"source"`
Target *Checkpoint `json:"target"`
}
func AttDataFromConsensus ¶
func AttDataFromConsensus(a *eth.AttestationData) *AttestationData
func (*AttestationData) ToConsensus ¶
func (a *AttestationData) ToConsensus() (*eth.AttestationData, error)
type AttestationElectra ¶
type AttestationElectra struct {
AggregationBits string `json:"aggregation_bits"`
Data *AttestationData `json:"data"`
Signature string `json:"signature"`
CommitteeBits string `json:"committee_bits"`
}
func AttElectraFromConsensus ¶
func AttElectraFromConsensus(a *eth.AttestationElectra) *AttestationElectra
func AttsElectraFromConsensus ¶
func AttsElectraFromConsensus(src []*eth.AttestationElectra) []*AttestationElectra
func (*AttestationElectra) ToConsensus ¶
func (a *AttestationElectra) ToConsensus() (*eth.AttestationElectra, error)
type AttestationRewards ¶
type AttestationRewards struct {
IdealRewards []IdealAttestationReward `json:"ideal_rewards"`
TotalRewards []TotalAttestationReward `json:"total_rewards"`
}
type AttestationRewardsResponse ¶
type AttestationRewardsResponse struct {
Data AttestationRewards `json:"data"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
}
type AttesterDuty ¶
type AttesterDuty struct {
Pubkey string `json:"pubkey"`
ValidatorIndex string `json:"validator_index"`
CommitteeIndex string `json:"committee_index"`
CommitteeLength string `json:"committee_length"`
CommitteesAtSlot string `json:"committees_at_slot"`
ValidatorCommitteeIndex string `json:"validator_committee_index"`
Slot string `json:"slot"`
}
type AttesterSlashing ¶
type AttesterSlashing struct {
Attestation1 *IndexedAttestation `json:"attestation_1"`
Attestation2 *IndexedAttestation `json:"attestation_2"`
}
func AttesterSlashingFromConsensus ¶
func AttesterSlashingFromConsensus(src *eth.AttesterSlashing) *AttesterSlashing
func AttesterSlashingsFromConsensus ¶
func AttesterSlashingsFromConsensus(src []*eth.AttesterSlashing) []*AttesterSlashing
func (*AttesterSlashing) ToConsensus ¶
func (s *AttesterSlashing) ToConsensus() (*eth.AttesterSlashing, error)
type AttesterSlashingElectra ¶
type AttesterSlashingElectra struct {
Attestation1 *IndexedAttestationElectra `json:"attestation_1"`
Attestation2 *IndexedAttestationElectra `json:"attestation_2"`
}
func AttesterSlashingElectraFromConsensus ¶
func AttesterSlashingElectraFromConsensus(src *eth.AttesterSlashingElectra) *AttesterSlashingElectra
func AttesterSlashingsElectraFromConsensus ¶
func AttesterSlashingsElectraFromConsensus(src []*eth.AttesterSlashingElectra) []*AttesterSlashingElectra
func (*AttesterSlashingElectra) ToConsensus ¶
func (s *AttesterSlashingElectra) ToConsensus() (*eth.AttesterSlashingElectra, error)
type BLSToExecutionChange ¶
type BLSToExecutionChange struct {
ValidatorIndex string `json:"validator_index"`
FromBLSPubkey string `json:"from_bls_pubkey"`
ToExecutionAddress string `json:"to_execution_address"`
}
func BLSChangeFromConsensus ¶
func BLSChangeFromConsensus(ch *eth.BLSToExecutionChange) *BLSToExecutionChange
func (*BLSToExecutionChange) ToConsensus ¶
func (b *BLSToExecutionChange) ToConsensus() (*eth.BLSToExecutionChange, error)
type BLSToExecutionChangesPoolResponse ¶
type BLSToExecutionChangesPoolResponse struct {
Data []*SignedBLSToExecutionChange `json:"data"`
}
type BeaconBlock ¶
type BeaconBlock struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BeaconBlockBody `json:"body"`
}
func BeaconBlockFromConsensus ¶
func BeaconBlockFromConsensus(b *eth.BeaconBlock) *BeaconBlock
func (*BeaconBlock) ToConsensus ¶
func (b *BeaconBlock) ToConsensus() (*eth.BeaconBlock, error)
func (*BeaconBlock) ToGeneric ¶
func (b *BeaconBlock) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockAltair ¶
type BeaconBlockAltair struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BeaconBlockBodyAltair `json:"body"`
}
func BeaconBlockAltairFromConsensus ¶
func BeaconBlockAltairFromConsensus(b *eth.BeaconBlockAltair) *BeaconBlockAltair
func (*BeaconBlockAltair) ToConsensus ¶
func (b *BeaconBlockAltair) ToConsensus() (*eth.BeaconBlockAltair, error)
func (*BeaconBlockAltair) ToGeneric ¶
func (b *BeaconBlockAltair) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockBellatrix ¶
type BeaconBlockBellatrix struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BeaconBlockBodyBellatrix `json:"body"`
}
func BeaconBlockBellatrixFromConsensus ¶
func BeaconBlockBellatrixFromConsensus(b *eth.BeaconBlockBellatrix) (*BeaconBlockBellatrix, error)
func (*BeaconBlockBellatrix) ToConsensus ¶
func (b *BeaconBlockBellatrix) ToConsensus() (*eth.BeaconBlockBellatrix, error)
func (*BeaconBlockBellatrix) ToGeneric ¶
func (b *BeaconBlockBellatrix) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockBody ¶
type BeaconBlockBody struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
}
type BeaconBlockBodyAltair ¶
type BeaconBlockBodyAltair struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
}
type BeaconBlockBodyBellatrix ¶
type BeaconBlockBodyBellatrix struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayload *ExecutionPayload `json:"execution_payload"`
}
type BeaconBlockBodyCapella ¶
type BeaconBlockBodyCapella struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayload *ExecutionPayloadCapella `json:"execution_payload"`
BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"`
}
type BeaconBlockBodyDeneb ¶
type BeaconBlockBodyDeneb struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayload *ExecutionPayloadDeneb `json:"execution_payload"`
BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"`
BlobKzgCommitments []string `json:"blob_kzg_commitments"`
}
type BeaconBlockBodyElectra ¶
type BeaconBlockBodyElectra struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashingElectra `json:"attester_slashings"`
Attestations []*AttestationElectra `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayload *ExecutionPayloadDeneb `json:"execution_payload"`
BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"`
BlobKzgCommitments []string `json:"blob_kzg_commitments"`
ExecutionRequests *ExecutionRequests `json:"execution_requests"`
}
type BeaconBlockCapella ¶
type BeaconBlockCapella struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BeaconBlockBodyCapella `json:"body"`
}
func BeaconBlockCapellaFromConsensus ¶
func BeaconBlockCapellaFromConsensus(b *eth.BeaconBlockCapella) (*BeaconBlockCapella, error)
func (*BeaconBlockCapella) ToConsensus ¶
func (b *BeaconBlockCapella) ToConsensus() (*eth.BeaconBlockCapella, error)
func (*BeaconBlockCapella) ToGeneric ¶
func (b *BeaconBlockCapella) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockContentsDeneb ¶
type BeaconBlockContentsDeneb struct {
Block *BeaconBlockDeneb `json:"block"`
KzgProofs []string `json:"kzg_proofs"`
Blobs []string `json:"blobs"`
}
func BeaconBlockContentsDenebFromConsensus ¶
func BeaconBlockContentsDenebFromConsensus(b *eth.BeaconBlockContentsDeneb) (*BeaconBlockContentsDeneb, error)
func (*BeaconBlockContentsDeneb) ToConsensus ¶
func (b *BeaconBlockContentsDeneb) ToConsensus() (*eth.BeaconBlockContentsDeneb, error)
func (*BeaconBlockContentsDeneb) ToGeneric ¶
func (b *BeaconBlockContentsDeneb) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockContentsElectra ¶
type BeaconBlockContentsElectra struct {
Block *BeaconBlockElectra `json:"block"`
KzgProofs []string `json:"kzg_proofs"`
Blobs []string `json:"blobs"`
}
func BeaconBlockContentsElectraFromConsensus ¶
func BeaconBlockContentsElectraFromConsensus(b *eth.BeaconBlockContentsElectra) (*BeaconBlockContentsElectra, error)
func (*BeaconBlockContentsElectra) ToConsensus ¶
func (b *BeaconBlockContentsElectra) ToConsensus() (*eth.BeaconBlockContentsElectra, error)
func (*BeaconBlockContentsElectra) ToGeneric ¶
func (b *BeaconBlockContentsElectra) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockContentsFulu ¶
type BeaconBlockContentsFulu struct {
Block *BeaconBlockElectra `json:"block"`
KzgProofs []string `json:"kzg_proofs"`
Blobs []string `json:"blobs"`
}
func BeaconBlockContentsFuluFromConsensus ¶
func BeaconBlockContentsFuluFromConsensus(b *eth.BeaconBlockContentsFulu) (*BeaconBlockContentsFulu, error)
func (*BeaconBlockContentsFulu) ToConsensus ¶
func (b *BeaconBlockContentsFulu) ToConsensus() (*eth.BeaconBlockContentsFulu, error)
func (*BeaconBlockContentsFulu) ToGeneric ¶
func (b *BeaconBlockContentsFulu) ToGeneric() (*eth.GenericBeaconBlock, error)
type BeaconBlockDeneb ¶
type BeaconBlockDeneb struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BeaconBlockBodyDeneb `json:"body"`
}
func BeaconBlockDenebFromConsensus ¶
func BeaconBlockDenebFromConsensus(b *eth.BeaconBlockDeneb) (*BeaconBlockDeneb, error)
func (*BeaconBlockDeneb) ToConsensus ¶
func (b *BeaconBlockDeneb) ToConsensus() (*eth.BeaconBlockDeneb, error)
type BeaconBlockElectra ¶
type BeaconBlockElectra struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BeaconBlockBodyElectra `json:"body"`
}
func BeaconBlockElectraFromConsensus ¶
func BeaconBlockElectraFromConsensus(b *eth.BeaconBlockElectra) (*BeaconBlockElectra, error)
func (*BeaconBlockElectra) ToConsensus ¶
func (b *BeaconBlockElectra) ToConsensus() (*eth.BeaconBlockElectra, error)
type BeaconBlockHeader ¶
type BeaconBlockHeader struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
BodyRoot string `json:"body_root"`
}
func BeaconBlockHeaderFromConsensus ¶
func BeaconBlockHeaderFromConsensus(h *eth.BeaconBlockHeader) *BeaconBlockHeader
func (*BeaconBlockHeader) ToConsensus ¶
func (h *BeaconBlockHeader) ToConsensus() (*eth.BeaconBlockHeader, error)
type BeaconCommitteeSubscription ¶
type BeaconCommitteeSubscription struct {
ValidatorIndex string `json:"validator_index"`
CommitteeIndex string `json:"committee_index"`
CommitteesAtSlot string `json:"committees_at_slot"`
Slot string `json:"slot"`
IsAggregator bool `json:"is_aggregator"`
}
func (*BeaconCommitteeSubscription) ToConsensus ¶
func (b *BeaconCommitteeSubscription) ToConsensus() (*validator.BeaconCommitteeSubscription, error)
type BeaconState ¶
type BeaconState struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochAttestations []*PendingAttestation `json:"previous_epoch_attestations"`
CurrentEpochAttestations []*PendingAttestation `json:"current_epoch_attestations"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
}
func BeaconStateFromConsensus ¶
func BeaconStateFromConsensus(st beaconState.BeaconState) (*BeaconState, error)
type BeaconStateAltair ¶
type BeaconStateAltair struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochParticipation []string `json:"previous_epoch_participation"`
CurrentEpochParticipation []string `json:"current_epoch_participation"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []string `json:"inactivity_scores"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
}
func BeaconStateAltairFromConsensus ¶
func BeaconStateAltairFromConsensus(st beaconState.BeaconState) (*BeaconStateAltair, error)
type BeaconStateBellatrix ¶
type BeaconStateBellatrix struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochParticipation []string `json:"previous_epoch_participation"`
CurrentEpochParticipation []string `json:"current_epoch_participation"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []string `json:"inactivity_scores"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeader `json:"latest_execution_payload_header"`
}
func BeaconStateBellatrixFromConsensus ¶
func BeaconStateBellatrixFromConsensus(st beaconState.BeaconState) (*BeaconStateBellatrix, error)
type BeaconStateCapella ¶
type BeaconStateCapella struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochParticipation []string `json:"previous_epoch_participation"`
CurrentEpochParticipation []string `json:"current_epoch_participation"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []string `json:"inactivity_scores"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeaderCapella `json:"latest_execution_payload_header"`
NextWithdrawalIndex string `json:"next_withdrawal_index"`
NextWithdrawalValidatorIndex string `json:"next_withdrawal_validator_index"`
HistoricalSummaries []*HistoricalSummary `json:"historical_summaries"`
}
func BeaconStateCapellaFromConsensus ¶
func BeaconStateCapellaFromConsensus(st beaconState.BeaconState) (*BeaconStateCapella, error)
type BeaconStateDeneb ¶
type BeaconStateDeneb struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochParticipation []string `json:"previous_epoch_participation"`
CurrentEpochParticipation []string `json:"current_epoch_participation"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []string `json:"inactivity_scores"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"latest_execution_payload_header"`
NextWithdrawalIndex string `json:"next_withdrawal_index"`
NextWithdrawalValidatorIndex string `json:"next_withdrawal_validator_index"`
HistoricalSummaries []*HistoricalSummary `json:"historical_summaries"`
}
func BeaconStateDenebFromConsensus ¶
func BeaconStateDenebFromConsensus(st beaconState.BeaconState) (*BeaconStateDeneb, error)
type BeaconStateElectra ¶
type BeaconStateElectra struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochParticipation []string `json:"previous_epoch_participation"`
CurrentEpochParticipation []string `json:"current_epoch_participation"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []string `json:"inactivity_scores"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"latest_execution_payload_header"`
NextWithdrawalIndex string `json:"next_withdrawal_index"`
NextWithdrawalValidatorIndex string `json:"next_withdrawal_validator_index"`
HistoricalSummaries []*HistoricalSummary `json:"historical_summaries"`
DepositRequestsStartIndex string `json:"deposit_requests_start_index"`
DepositBalanceToConsume string `json:"deposit_balance_to_consume"`
ExitBalanceToConsume string `json:"exit_balance_to_consume"`
EarliestExitEpoch string `json:"earliest_exit_epoch"`
ConsolidationBalanceToConsume string `json:"consolidation_balance_to_consume"`
EarliestConsolidationEpoch string `json:"earliest_consolidation_epoch"`
PendingDeposits []*PendingDeposit `json:"pending_deposits"`
PendingPartialWithdrawals []*PendingPartialWithdrawal `json:"pending_partial_withdrawals"`
PendingConsolidations []*PendingConsolidation `json:"pending_consolidations"`
}
func BeaconStateElectraFromConsensus ¶
func BeaconStateElectraFromConsensus(st beaconState.BeaconState) (*BeaconStateElectra, error)
type BeaconStateFulu ¶
type BeaconStateFulu struct {
GenesisTime string `json:"genesis_time"`
GenesisValidatorsRoot string `json:"genesis_validators_root"`
Slot string `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots []string `json:"block_roots"`
StateRoots []string `json:"state_roots"`
HistoricalRoots []string `json:"historical_roots"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes"`
Eth1DepositIndex string `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators"`
Balances []string `json:"balances"`
RandaoMixes []string `json:"randao_mixes"`
Slashings []string `json:"slashings"`
PreviousEpochParticipation []string `json:"previous_epoch_participation"`
CurrentEpochParticipation []string `json:"current_epoch_participation"`
JustificationBits string `json:"justification_bits"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []string `json:"inactivity_scores"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"latest_execution_payload_header"`
NextWithdrawalIndex string `json:"next_withdrawal_index"`
NextWithdrawalValidatorIndex string `json:"next_withdrawal_validator_index"`
HistoricalSummaries []*HistoricalSummary `json:"historical_summaries"`
DepositRequestsStartIndex string `json:"deposit_requests_start_index"`
DepositBalanceToConsume string `json:"deposit_balance_to_consume"`
ExitBalanceToConsume string `json:"exit_balance_to_consume"`
EarliestExitEpoch string `json:"earliest_exit_epoch"`
ConsolidationBalanceToConsume string `json:"consolidation_balance_to_consume"`
EarliestConsolidationEpoch string `json:"earliest_consolidation_epoch"`
PendingDeposits []*PendingDeposit `json:"pending_deposits"`
PendingPartialWithdrawals []*PendingPartialWithdrawal `json:"pending_partial_withdrawals"`
PendingConsolidations []*PendingConsolidation `json:"pending_consolidations"`
}
func BeaconStateFuluFromConsensus ¶
func BeaconStateFuluFromConsensus(st beaconState.BeaconState) (*BeaconStateFulu, error)
type BlindedBeaconBlockBellatrix ¶
type BlindedBeaconBlockBellatrix struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BlindedBeaconBlockBodyBellatrix `json:"body"`
}
func BlindedBeaconBlockBellatrixFromConsensus ¶
func BlindedBeaconBlockBellatrixFromConsensus(b *eth.BlindedBeaconBlockBellatrix) (*BlindedBeaconBlockBellatrix, error)
func (*BlindedBeaconBlockBellatrix) ToConsensus ¶
func (b *BlindedBeaconBlockBellatrix) ToConsensus() (*eth.BlindedBeaconBlockBellatrix, error)
func (*BlindedBeaconBlockBellatrix) ToGeneric ¶
func (b *BlindedBeaconBlockBellatrix) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlindedBeaconBlockBodyBellatrix ¶
type BlindedBeaconBlockBodyBellatrix struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayloadHeader *ExecutionPayloadHeader `json:"execution_payload_header"`
}
type BlindedBeaconBlockBodyCapella ¶
type BlindedBeaconBlockBodyCapella struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayloadHeader *ExecutionPayloadHeaderCapella `json:"execution_payload_header"`
BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"`
}
type BlindedBeaconBlockBodyDeneb ¶
type BlindedBeaconBlockBodyDeneb struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings"`
Attestations []*Attestation `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"execution_payload_header"`
BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"`
BlobKzgCommitments []string `json:"blob_kzg_commitments"`
}
type BlindedBeaconBlockBodyElectra ¶
type BlindedBeaconBlockBodyElectra struct {
RandaoReveal string `json:"randao_reveal"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti string `json:"graffiti"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings"`
AttesterSlashings []*AttesterSlashingElectra `json:"attester_slashings"`
Attestations []*AttestationElectra `json:"attestations"`
Deposits []*Deposit `json:"deposits"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayloadHeader *ExecutionPayloadHeaderDeneb `json:"execution_payload_header"`
BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes"`
BlobKzgCommitments []string `json:"blob_kzg_commitments"`
ExecutionRequests *ExecutionRequests `json:"execution_requests"`
}
type BlindedBeaconBlockCapella ¶
type BlindedBeaconBlockCapella struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BlindedBeaconBlockBodyCapella `json:"body"`
}
func BlindedBeaconBlockCapellaFromConsensus ¶
func BlindedBeaconBlockCapellaFromConsensus(b *eth.BlindedBeaconBlockCapella) (*BlindedBeaconBlockCapella, error)
func (*BlindedBeaconBlockCapella) ToConsensus ¶
func (b *BlindedBeaconBlockCapella) ToConsensus() (*eth.BlindedBeaconBlockCapella, error)
func (*BlindedBeaconBlockCapella) ToGeneric ¶
func (b *BlindedBeaconBlockCapella) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlindedBeaconBlockDeneb ¶
type BlindedBeaconBlockDeneb struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BlindedBeaconBlockBodyDeneb `json:"body"`
}
func BlindedBeaconBlockDenebFromConsensus ¶
func BlindedBeaconBlockDenebFromConsensus(b *eth.BlindedBeaconBlockDeneb) (*BlindedBeaconBlockDeneb, error)
func (*BlindedBeaconBlockDeneb) ToConsensus ¶
func (b *BlindedBeaconBlockDeneb) ToConsensus() (*eth.BlindedBeaconBlockDeneb, error)
func (*BlindedBeaconBlockDeneb) ToGeneric ¶
func (b *BlindedBeaconBlockDeneb) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlindedBeaconBlockElectra ¶
type BlindedBeaconBlockElectra struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BlindedBeaconBlockBodyElectra `json:"body"`
}
func BlindedBeaconBlockElectraFromConsensus ¶
func BlindedBeaconBlockElectraFromConsensus(b *eth.BlindedBeaconBlockElectra) (*BlindedBeaconBlockElectra, error)
func (*BlindedBeaconBlockElectra) ToConsensus ¶
func (b *BlindedBeaconBlockElectra) ToConsensus() (*eth.BlindedBeaconBlockElectra, error)
func (*BlindedBeaconBlockElectra) ToGeneric ¶
func (b *BlindedBeaconBlockElectra) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlindedBeaconBlockFulu ¶
type BlindedBeaconBlockFulu struct {
Slot string `json:"slot"`
ProposerIndex string `json:"proposer_index"`
ParentRoot string `json:"parent_root"`
StateRoot string `json:"state_root"`
Body *BlindedBeaconBlockBodyElectra `json:"body"`
}
func BlindedBeaconBlockFuluFromConsensus ¶
func BlindedBeaconBlockFuluFromConsensus(b *eth.BlindedBeaconBlockFulu) (*BlindedBeaconBlockFulu, error)
func (*BlindedBeaconBlockFulu) ToConsensus ¶
func (b *BlindedBeaconBlockFulu) ToConsensus() (*eth.BlindedBeaconBlockFulu, error)
func (*BlindedBeaconBlockFulu) ToGeneric ¶
func (b *BlindedBeaconBlockFulu) ToGeneric() (*eth.GenericBeaconBlock, error)
type BlobSidecarEvent ¶
type BlobSidecars ¶
type BlobSidecars struct {
Sidecars []*Sidecar `json:"sidecars"`
}
type BlockEvent ¶
type BlockGossipEvent ¶
type BlockRewards ¶
type BlockRewardsResponse ¶
type BlockRewardsResponse struct {
Data *BlockRewards `json:"data"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
}
type BlockRootResponse ¶
type ChainHead ¶
type ChainHead struct {
HeadSlot string `json:"head_slot"`
HeadEpoch string `json:"head_epoch"`
HeadBlockRoot string `json:"head_block_root"`
FinalizedSlot string `json:"finalized_slot"`
FinalizedEpoch string `json:"finalized_epoch"`
FinalizedBlockRoot string `json:"finalized_block_root"`
JustifiedSlot string `json:"justified_slot"`
JustifiedEpoch string `json:"justified_epoch"`
JustifiedBlockRoot string `json:"justified_block_root"`
PreviousJustifiedSlot string `json:"previous_justified_slot"`
PreviousJustifiedEpoch string `json:"previous_justified_epoch"`
PreviousJustifiedBlockRoot string `json:"previous_justified_block_root"`
OptimisticStatus bool `json:"optimistic_status"`
}
type ChainReorgEvent ¶
type ChainReorgEvent struct {
Slot string `json:"slot"`
Depth string `json:"depth"`
OldHeadBlock string `json:"old_head_block"`
NewHeadBlock string `json:"old_head_state"`
OldHeadState string `json:"new_head_block"`
NewHeadState string `json:"new_head_state"`
Epoch string `json:"epoch"`
ExecutionOptimistic bool `json:"execution_optimistic"`
}
func EventChainReorgFromV1 ¶
func EventChainReorgFromV1(event *ethv1.EventChainReorg) *ChainReorgEvent
type Checkpoint ¶
func CheckpointFromConsensus ¶
func CheckpointFromConsensus(c *eth.Checkpoint) *Checkpoint
func (*Checkpoint) ToConsensus ¶
func (c *Checkpoint) ToConsensus() (*eth.Checkpoint, error)
type ConsolidationRequest ¶
type ConsolidationRequest struct {
SourceAddress string `json:"source_address"`
SourcePubkey string `json:"source_pubkey"`
TargetPubkey string `json:"target_pubkey"`
}
func ConsolidationRequestFromConsensus ¶
func ConsolidationRequestFromConsensus(c *enginev1.ConsolidationRequest) *ConsolidationRequest
func ConsolidationRequestsFromConsensus ¶
func ConsolidationRequestsFromConsensus(cs []*enginev1.ConsolidationRequest) []*ConsolidationRequest
func (*ConsolidationRequest) ToConsensus ¶
func (c *ConsolidationRequest) ToConsensus() (*enginev1.ConsolidationRequest, error)
type ContributionAndProof ¶
type ContributionAndProof struct {
AggregatorIndex string `json:"aggregator_index"`
Contribution *SyncCommitteeContribution `json:"contribution"`
SelectionProof string `json:"selection_proof"`
}
func ContributionAndProofFromConsensus ¶
func ContributionAndProofFromConsensus(c *eth.ContributionAndProof) *ContributionAndProof
func (*ContributionAndProof) ToConsensus ¶
func (c *ContributionAndProof) ToConsensus() (*eth.ContributionAndProof, error)
type Deposit ¶
type Deposit struct {
Proof []string `json:"proof"`
Data *DepositData `json:"data"`
}
func DepositsFromConsensus ¶
type DepositContractData ¶
type DepositData ¶
type DepositRequest ¶
type DepositRequest struct {
Pubkey string `json:"pubkey"`
WithdrawalCredentials string `json:"withdrawal_credentials"`
Amount string `json:"amount"`
Signature string `json:"signature"`
Index string `json:"index"`
}
func DepositRequestFromConsensus ¶
func DepositRequestFromConsensus(d *enginev1.DepositRequest) *DepositRequest
func DepositRequestsFromConsensus ¶
func DepositRequestsFromConsensus(ds []*enginev1.DepositRequest) []*DepositRequest
func (*DepositRequest) ToConsensus ¶
func (d *DepositRequest) ToConsensus() (*enginev1.DepositRequest, error)
type DepositSnapshot ¶
type DepositSnapshot struct {
Finalized []string `json:"finalized"`
DepositRoot string `json:"deposit_root"`
DepositCount string `json:"deposit_count"`
ExecutionBlockHash string `json:"execution_block_hash"`
ExecutionBlockHeight string `json:"execution_block_height"`
}
func DepositSnapshotFromConsensus ¶
func DepositSnapshotFromConsensus(ds *eth.DepositSnapshot) *DepositSnapshot
type Eth1Data ¶
type Eth1Data struct {
DepositRoot string `json:"deposit_root"`
DepositCount string `json:"deposit_count"`
BlockHash string `json:"block_hash"`
}
func Eth1DataFromConsensus ¶
type ExecutionPayload ¶
type ExecutionPayload struct {
ParentHash string `json:"parent_hash"`
FeeRecipient string `json:"fee_recipient"`
StateRoot string `json:"state_root"`
ReceiptsRoot string `json:"receipts_root"`
LogsBloom string `json:"logs_bloom"`
PrevRandao string `json:"prev_randao"`
BlockNumber string `json:"block_number"`
GasLimit string `json:"gas_limit"`
GasUsed string `json:"gas_used"`
Timestamp string `json:"timestamp"`
ExtraData string `json:"extra_data"`
BaseFeePerGas string `json:"base_fee_per_gas"`
BlockHash string `json:"block_hash"`
Transactions []string `json:"transactions"`
}
func ExecutionPayloadFromConsensus ¶
func ExecutionPayloadFromConsensus(payload *enginev1.ExecutionPayload) (*ExecutionPayload, error)
func (*ExecutionPayload) PayloadProto ¶ added in v6.0.4
func (r *ExecutionPayload) PayloadProto() (proto.Message, error)
func (*ExecutionPayload) ToConsensus ¶
func (e *ExecutionPayload) ToConsensus() (*enginev1.ExecutionPayload, error)
type ExecutionPayloadCapella ¶
type ExecutionPayloadCapella struct {
ParentHash string `json:"parent_hash"`
FeeRecipient string `json:"fee_recipient"`
StateRoot string `json:"state_root"`
ReceiptsRoot string `json:"receipts_root"`
LogsBloom string `json:"logs_bloom"`
PrevRandao string `json:"prev_randao"`
BlockNumber string `json:"block_number"`
GasLimit string `json:"gas_limit"`
GasUsed string `json:"gas_used"`
Timestamp string `json:"timestamp"`
ExtraData string `json:"extra_data"`
BaseFeePerGas string `json:"base_fee_per_gas"`
BlockHash string `json:"block_hash"`
Transactions []string `json:"transactions"`
Withdrawals []*Withdrawal `json:"withdrawals"`
}
func ExecutionPayloadCapellaFromConsensus ¶
func ExecutionPayloadCapellaFromConsensus(payload *enginev1.ExecutionPayloadCapella) (*ExecutionPayloadCapella, error)
func (*ExecutionPayloadCapella) PayloadProto ¶ added in v6.0.4
func (p *ExecutionPayloadCapella) PayloadProto() (proto.Message, error)
func (*ExecutionPayloadCapella) ToConsensus ¶
func (e *ExecutionPayloadCapella) ToConsensus() (*enginev1.ExecutionPayloadCapella, error)
type ExecutionPayloadDeneb ¶
type ExecutionPayloadDeneb struct {
ParentHash string `json:"parent_hash"`
FeeRecipient string `json:"fee_recipient"`
StateRoot string `json:"state_root"`
ReceiptsRoot string `json:"receipts_root"`
LogsBloom string `json:"logs_bloom"`
PrevRandao string `json:"prev_randao"`
BlockNumber string `json:"block_number"`
GasLimit string `json:"gas_limit"`
GasUsed string `json:"gas_used"`
Timestamp string `json:"timestamp"`
ExtraData string `json:"extra_data"`
BaseFeePerGas string `json:"base_fee_per_gas"`
BlockHash string `json:"block_hash"`
Transactions []string `json:"transactions"`
Withdrawals []*Withdrawal `json:"withdrawals"`
BlobGasUsed string `json:"blob_gas_used"`
ExcessBlobGas string `json:"excess_blob_gas"`
}
func ExecutionPayloadDenebFromConsensus ¶
func ExecutionPayloadDenebFromConsensus(payload *enginev1.ExecutionPayloadDeneb) (*ExecutionPayloadDeneb, error)
func (*ExecutionPayloadDeneb) ToConsensus ¶
func (e *ExecutionPayloadDeneb) ToConsensus() (*enginev1.ExecutionPayloadDeneb, error)
type ExecutionPayloadHeader ¶
type ExecutionPayloadHeader struct {
ParentHash string `json:"parent_hash"`
FeeRecipient string `json:"fee_recipient"`
StateRoot string `json:"state_root"`
ReceiptsRoot string `json:"receipts_root"`
LogsBloom string `json:"logs_bloom"`
PrevRandao string `json:"prev_randao"`
BlockNumber string `json:"block_number"`
GasLimit string `json:"gas_limit"`
GasUsed string `json:"gas_used"`
Timestamp string `json:"timestamp"`
ExtraData string `json:"extra_data"`
BaseFeePerGas string `json:"base_fee_per_gas"`
BlockHash string `json:"block_hash"`
TransactionsRoot string `json:"transactions_root"`
}
func ExecutionPayloadHeaderFromConsensus ¶
func ExecutionPayloadHeaderFromConsensus(payload *enginev1.ExecutionPayloadHeader) (*ExecutionPayloadHeader, error)
func (*ExecutionPayloadHeader) ToConsensus ¶
func (e *ExecutionPayloadHeader) ToConsensus() (*enginev1.ExecutionPayloadHeader, error)
type ExecutionPayloadHeaderCapella ¶
type ExecutionPayloadHeaderCapella struct {
ParentHash string `json:"parent_hash"`
FeeRecipient string `json:"fee_recipient"`
StateRoot string `json:"state_root"`
ReceiptsRoot string `json:"receipts_root"`
LogsBloom string `json:"logs_bloom"`
PrevRandao string `json:"prev_randao"`
BlockNumber string `json:"block_number"`
GasLimit string `json:"gas_limit"`
GasUsed string `json:"gas_used"`
Timestamp string `json:"timestamp"`
ExtraData string `json:"extra_data"`
BaseFeePerGas string `json:"base_fee_per_gas"`
BlockHash string `json:"block_hash"`
TransactionsRoot string `json:"transactions_root"`
WithdrawalsRoot string `json:"withdrawals_root"`
}
func ExecutionPayloadHeaderCapellaFromConsensus ¶
func ExecutionPayloadHeaderCapellaFromConsensus(payload *enginev1.ExecutionPayloadHeaderCapella) (*ExecutionPayloadHeaderCapella, error)
func (*ExecutionPayloadHeaderCapella) ToConsensus ¶
func (e *ExecutionPayloadHeaderCapella) ToConsensus() (*enginev1.ExecutionPayloadHeaderCapella, error)
type ExecutionPayloadHeaderDeneb ¶
type ExecutionPayloadHeaderDeneb struct {
ParentHash string `json:"parent_hash"`
FeeRecipient string `json:"fee_recipient"`
StateRoot string `json:"state_root"`
ReceiptsRoot string `json:"receipts_root"`
LogsBloom string `json:"logs_bloom"`
PrevRandao string `json:"prev_randao"`
BlockNumber string `json:"block_number"`
GasLimit string `json:"gas_limit"`
GasUsed string `json:"gas_used"`
Timestamp string `json:"timestamp"`
ExtraData string `json:"extra_data"`
BaseFeePerGas string `json:"base_fee_per_gas"`
BlockHash string `json:"block_hash"`
TransactionsRoot string `json:"transactions_root"`
WithdrawalsRoot string `json:"withdrawals_root"`
BlobGasUsed string `json:"blob_gas_used"`
ExcessBlobGas string `json:"excess_blob_gas"`
}
func ExecutionPayloadHeaderDenebFromConsensus ¶
func ExecutionPayloadHeaderDenebFromConsensus(payload *enginev1.ExecutionPayloadHeaderDeneb) (*ExecutionPayloadHeaderDeneb, error)
func (*ExecutionPayloadHeaderDeneb) ToConsensus ¶
func (e *ExecutionPayloadHeaderDeneb) ToConsensus() (*enginev1.ExecutionPayloadHeaderDeneb, error)
type ExecutionRequests ¶
type ExecutionRequests struct {
Deposits []*DepositRequest `json:"deposits"`
Withdrawals []*WithdrawalRequest `json:"withdrawals"`
Consolidations []*ConsolidationRequest `json:"consolidations"`
}
func ExecutionRequestsFromConsensus ¶
func ExecutionRequestsFromConsensus(er *enginev1.ExecutionRequests) *ExecutionRequests
func (*ExecutionRequests) ToConsensus ¶
func (e *ExecutionRequests) ToConsensus() (*enginev1.ExecutionRequests, error)
type ExpectedWithdrawal ¶
type ExpectedWithdrawalsResponse ¶
type ExpectedWithdrawalsResponse struct {
Data []*ExpectedWithdrawal `json:"data"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
}
type FeeRecipient ¶
type FinalityCheckpoints ¶
type FinalityCheckpoints struct {
PreviousJustified *Checkpoint `json:"previous_justified"`
CurrentJustified *Checkpoint `json:"current_justified"`
Finalized *Checkpoint `json:"finalized"`
}
type FinalizedCheckpointEvent ¶
type FinalizedCheckpointEvent struct {
Block string `json:"block"`
State string `json:"state"`
Epoch string `json:"epoch"`
ExecutionOptimistic bool `json:"execution_optimistic"`
}
func FinalizedCheckpointEventFromV1 ¶
func FinalizedCheckpointEventFromV1(event *ethv1.EventFinalizedCheckpoint) *FinalizedCheckpointEvent
type Fork ¶
type Fork struct {
PreviousVersion string `json:"previous_version"`
CurrentVersion string `json:"current_version"`
Epoch string `json:"epoch"`
}
func ForkFromConsensus ¶
type ForkChoiceDumpExtraData ¶
type ForkChoiceDumpExtraData struct {
UnrealizedJustifiedCheckpoint *Checkpoint `json:"unrealized_justified_checkpoint"`
UnrealizedFinalizedCheckpoint *Checkpoint `json:"unrealized_finalized_checkpoint"`
ProposerBoostRoot string `json:"proposer_boost_root"`
PreviousProposerBoostRoot string `json:"previous_proposer_boost_root"`
HeadRoot string `json:"head_root"`
}
type ForkChoiceHead ¶
type ForkChoiceNode ¶
type ForkChoiceNode struct {
Slot string `json:"slot"`
BlockRoot string `json:"block_root"`
ParentRoot string `json:"parent_root"`
JustifiedEpoch string `json:"justified_epoch"`
FinalizedEpoch string `json:"finalized_epoch"`
Weight string `json:"weight"`
Validity string `json:"validity"`
ExecutionBlockHash string `json:"execution_block_hash"`
ExtraData *ForkChoiceNodeExtraData `json:"extra_data"`
}
type ForkChoiceNodeExtraData ¶
type ForkChoiceNodeExtraData struct {
UnrealizedJustifiedEpoch string `json:"unrealized_justified_epoch"`
UnrealizedFinalizedEpoch string `json:"unrealized_finalized_epoch"`
Balance string `json:"balance"`
ExecutionOptimistic bool `json:"execution_optimistic"`
TimeStamp string `json:"timestamp"`
Target string `json:"target"`
}
type GetAttestationDataResponse ¶
type GetAttestationDataResponse struct {
Data *AttestationData `json:"data"`
}
type GetAttesterDutiesResponse ¶
type GetAttesterDutiesResponse struct {
DependentRoot string `json:"dependent_root"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Data []*AttesterDuty `json:"data"`
}
type GetAttesterSlashingsResponse ¶
type GetAttesterSlashingsResponse struct {
Version string `json:"version,omitempty"`
Data json.RawMessage `json:"data"` // Accepts both `[]*AttesterSlashing` and `[]*AttesterSlashingElectra` types
}
type GetBeaconStateV2Response ¶
type GetBeaconStateV2Response struct {
Version string `json:"version"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data json.RawMessage `json:"data"` // represents the state values based on the version
}
type GetBlockAttestationsResponse ¶
type GetBlockAttestationsResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*Attestation `json:"data"`
}
type GetBlockAttestationsV2Response ¶
type GetBlockAttestationsV2Response struct {
Version string `json:"version"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data json.RawMessage `json:"data"` // Accepts both `Attestation` and `AttestationElectra` types
}
type GetBlockHeaderResponse ¶
type GetBlockHeaderResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data *SignedBeaconBlockHeaderContainer `json:"data"`
}
type GetBlockHeadersResponse ¶
type GetBlockHeadersResponse struct {
Data []*SignedBeaconBlockHeaderContainer `json:"data"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
}
type GetBlockResponse ¶
type GetBlockResponse struct {
Data *SignedBlock `json:"data"`
}
type GetBlockV2Response ¶
type GetBlockV2Response struct {
Version string `json:"version"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data *SignedBlock `json:"data"`
}
type GetCommitteesResponse ¶
type GetDepositContractResponse ¶
type GetDepositContractResponse struct {
Data *DepositContractData `json:"data"`
}
type GetDepositSnapshotResponse ¶
type GetDepositSnapshotResponse struct {
Data *DepositSnapshot `json:"data"`
}
type GetFinalityCheckpointsResponse ¶
type GetFinalityCheckpointsResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data *FinalityCheckpoints `json:"data"`
}
type GetForkChoiceDumpResponse ¶
type GetForkChoiceDumpResponse struct {
JustifiedCheckpoint *Checkpoint `json:"justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
ForkChoiceNodes []*ForkChoiceNode `json:"fork_choice_nodes"`
ExtraData *ForkChoiceDumpExtraData `json:"extra_data"`
}
type GetForkChoiceHeadsV2Response ¶
type GetForkChoiceHeadsV2Response struct {
Data []*ForkChoiceHead `json:"data"`
}
type GetForkScheduleResponse ¶
type GetForkScheduleResponse struct {
Data []*Fork `json:"data"`
}
type GetGenesisResponse ¶
type GetGenesisResponse struct {
Data *Genesis `json:"data"`
}
type GetIdentityResponse ¶
type GetIdentityResponse struct {
Data *Identity `json:"data"`
}
type GetIndividualVotesResponse ¶
type GetIndividualVotesResponse struct {
IndividualVotes []*IndividualVote `json:"individual_votes"`
}
type GetLivenessResponse ¶
type GetLivenessResponse struct {
Data []*Liveness `json:"data"`
}
type GetPeerCountResponse ¶
type GetPeerCountResponse struct {
Data *PeerCount `json:"data"`
}
type GetPeerResponse ¶
type GetPeerResponse struct {
Data *Peer `json:"data"`
}
type GetPeersResponse ¶
type GetPeersResponse struct {
Data []*Peer `json:"data"`
}
type GetPendingConsolidationsResponse ¶ added in v6.0.1
type GetPendingConsolidationsResponse struct {
Version string `json:"version"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*PendingConsolidation `json:"data"`
}
type GetPendingDepositsResponse ¶
type GetPendingDepositsResponse struct {
Version string `json:"version"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*PendingDeposit `json:"data"`
}
type GetPendingPartialWithdrawalsResponse ¶
type GetPendingPartialWithdrawalsResponse struct {
Version string `json:"version"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*PendingPartialWithdrawal `json:"data"`
}
type GetProposerDutiesResponse ¶
type GetProposerDutiesResponse struct {
DependentRoot string `json:"dependent_root"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Data []*ProposerDuty `json:"data"`
}
type GetProposerSlashingsResponse ¶
type GetProposerSlashingsResponse struct {
Data []*ProposerSlashing `json:"data"`
}
type GetRandaoResponse ¶
type GetSpecResponse ¶
type GetSpecResponse struct {
Data interface{} `json:"data"`
}
type GetStateForkResponse ¶
type GetStateRootResponse ¶
type GetSyncCommitteeDutiesResponse ¶
type GetSyncCommitteeDutiesResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Data []*SyncCommitteeDuty `json:"data"`
}
type GetSyncCommitteeResponse ¶
type GetSyncCommitteeResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data *SyncCommitteeValidators `json:"data"`
}
type GetValidatorBalancesResponse ¶
type GetValidatorBalancesResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*ValidatorBalance `json:"data"`
}
type GetValidatorCountResponse ¶
type GetValidatorCountResponse struct {
ExecutionOptimistic string `json:"execution_optimistic"`
Finalized string `json:"finalized"`
Data []*ValidatorCount `json:"data"`
}
type GetValidatorIdentitiesResponse ¶
type GetValidatorIdentitiesResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*ValidatorIdentity `json:"data"`
}
type GetValidatorParticipationResponse ¶
type GetValidatorParticipationResponse struct {
Epoch string `json:"epoch"`
Finalized bool `json:"finalized"`
Participation *ValidatorParticipation `json:"participation"`
}
type GetValidatorPerformanceRequest ¶
type GetValidatorPerformanceRequest struct {
PublicKeys [][]byte `json:"public_keys,omitempty"`
Indices []primitives.ValidatorIndex `json:"indices,omitempty"`
}
type GetValidatorPerformanceResponse ¶
type GetValidatorPerformanceResponse struct {
PublicKeys [][]byte `json:"public_keys,omitempty"`
CorrectlyVotedSource []bool `json:"correctly_voted_source,omitempty"`
CorrectlyVotedTarget []bool `json:"correctly_voted_target,omitempty"`
CorrectlyVotedHead []bool `json:"correctly_voted_head,omitempty"`
CurrentEffectiveBalances []uint64 `json:"current_effective_balances,omitempty"`
BalancesBeforeEpochTransition []uint64 `json:"balances_before_epoch_transition,omitempty"`
BalancesAfterEpochTransition []uint64 `json:"balances_after_epoch_transition,omitempty"`
MissingValidators [][]byte `json:"missing_validators,omitempty"`
InactivityScores []uint64 `json:"inactivity_scores,omitempty"`
}
type GetValidatorResponse ¶
type GetValidatorResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data *ValidatorContainer `json:"data"`
}
type GetValidatorsRequest ¶
type GetValidatorsResponse ¶
type GetValidatorsResponse struct {
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
Data []*ValidatorContainer `json:"data"`
}
type GetVersionResponse ¶
type GetVersionResponse struct {
Data *Version `json:"data"`
}
type GetWeakSubjectivityResponse ¶
type GetWeakSubjectivityResponse struct {
Data *WeakSubjectivityData `json:"data"`
}
type HeadEvent ¶
type HeadEvent struct {
Slot string `json:"slot"`
Block string `json:"block"`
State string `json:"state"`
EpochTransition bool `json:"epoch_transition"`
ExecutionOptimistic bool `json:"execution_optimistic"`
PreviousDutyDependentRoot string `json:"previous_duty_dependent_root"`
CurrentDutyDependentRoot string `json:"current_duty_dependent_root"`
}
func HeadEventFromV1 ¶
type HistoricalSummary ¶
type HistoricalSummary struct {
BlockSummaryRoot string `json:"block_summary_root"`
StateSummaryRoot string `json:"state_summary_root"`
}
func HistoricalSummaryFromConsensus ¶
func HistoricalSummaryFromConsensus(s *eth.HistoricalSummary) *HistoricalSummary
type IdealAttestationReward ¶
type IndexedAttestation ¶
type IndexedAttestation struct {
AttestingIndices []string `json:"attesting_indices"`
Data *AttestationData `json:"data"`
Signature string `json:"signature"`
}
func (*IndexedAttestation) ToConsensus ¶
func (a *IndexedAttestation) ToConsensus() (*eth.IndexedAttestation, error)
type IndexedAttestationElectra ¶
type IndexedAttestationElectra struct {
AttestingIndices []string `json:"attesting_indices"`
Data *AttestationData `json:"data"`
Signature string `json:"signature"`
}
func (*IndexedAttestationElectra) ToConsensus ¶
func (a *IndexedAttestationElectra) ToConsensus() (*eth.IndexedAttestationElectra, error)
type IndividualVote ¶
type IndividualVote struct {
Epoch string `json:"epoch"`
PublicKey string `json:"public_keys,omitempty"`
ValidatorIndex string `json:"validator_index"`
IsSlashed bool `json:"is_slashed"`
IsWithdrawableInCurrentEpoch bool `json:"is_withdrawable_in_current_epoch"`
IsActiveInCurrentEpoch bool `json:"is_active_in_current_epoch"`
IsActiveInPreviousEpoch bool `json:"is_active_in_previous_epoch"`
IsCurrentEpochAttester bool `json:"is_current_epoch_attester"`
IsCurrentEpochTargetAttester bool `json:"is_current_epoch_target_attester"`
IsPreviousEpochAttester bool `json:"is_previous_epoch_attester"`
IsPreviousEpochTargetAttester bool `json:"is_previous_epoch_target_attester"`
IsPreviousEpochHeadAttester bool `json:"is_previous_epoch_head_attester"`
CurrentEpochEffectiveBalanceGwei string `json:"current_epoch_effective_balance_gwei"`
InclusionSlot string `json:"inclusion_slot"`
InclusionDistance string `json:"inclusion_distance"`
InactivityScore string `json:"inactivity_score"`
}
type LightClientBootstrap ¶
type LightClientBootstrap struct {
Header json.RawMessage `json:"header"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
CurrentSyncCommitteeBranch []string `json:"current_sync_committee_branch"`
}
func LightClientBootstrapFromConsensus ¶
func LightClientBootstrapFromConsensus(bootstrap interfaces.LightClientBootstrap) (*LightClientBootstrap, error)
type LightClientBootstrapResponse ¶
type LightClientBootstrapResponse struct {
Version string `json:"version"`
Data *LightClientBootstrap `json:"data"`
}
type LightClientFinalityUpdate ¶
type LightClientFinalityUpdate struct {
AttestedHeader json.RawMessage `json:"attested_header"`
FinalizedHeader json.RawMessage `json:"finalized_header"`
FinalityBranch []string `json:"finality_branch"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
SignatureSlot string `json:"signature_slot"`
}
func LightClientFinalityUpdateFromConsensus ¶
func LightClientFinalityUpdateFromConsensus(update interfaces.LightClientFinalityUpdate) (*LightClientFinalityUpdate, error)
type LightClientFinalityUpdateEvent ¶
type LightClientFinalityUpdateEvent struct {
Version string `json:"version"`
Data *LightClientFinalityUpdate `json:"data"`
}
type LightClientFinalityUpdateResponse ¶
type LightClientFinalityUpdateResponse struct {
Version string `json:"version"`
Data *LightClientFinalityUpdate `json:"data"`
}
type LightClientHeader ¶
type LightClientHeader struct {
Beacon *BeaconBlockHeader `json:"beacon"`
}
type LightClientHeaderCapella ¶
type LightClientHeaderCapella struct {
Beacon *BeaconBlockHeader `json:"beacon"`
Execution *ExecutionPayloadHeaderCapella `json:"execution"`
ExecutionBranch []string `json:"execution_branch"`
}
type LightClientHeaderDeneb ¶
type LightClientHeaderDeneb struct {
Beacon *BeaconBlockHeader `json:"beacon"`
Execution *ExecutionPayloadHeaderDeneb `json:"execution"`
ExecutionBranch []string `json:"execution_branch"`
}
type LightClientOptimisticUpdate ¶
type LightClientOptimisticUpdate struct {
AttestedHeader json.RawMessage `json:"attested_header"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
SignatureSlot string `json:"signature_slot"`
}
func LightClientOptimisticUpdateFromConsensus ¶
func LightClientOptimisticUpdateFromConsensus(update interfaces.LightClientOptimisticUpdate) (*LightClientOptimisticUpdate, error)
type LightClientOptimisticUpdateEvent ¶
type LightClientOptimisticUpdateEvent struct {
Version string `json:"version"`
Data *LightClientOptimisticUpdate `json:"data"`
}
type LightClientOptimisticUpdateResponse ¶
type LightClientOptimisticUpdateResponse struct {
Version string `json:"version"`
Data *LightClientOptimisticUpdate `json:"data"`
}
type LightClientUpdate ¶
type LightClientUpdate struct {
AttestedHeader json.RawMessage `json:"attested_header"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee,omitempty"`
FinalizedHeader json.RawMessage `json:"finalized_header,omitempty"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
NextSyncCommitteeBranch []string `json:"next_sync_committee_branch,omitempty"`
FinalityBranch []string `json:"finality_branch,omitempty"`
SignatureSlot string `json:"signature_slot"`
}
func LightClientUpdateFromConsensus ¶
func LightClientUpdateFromConsensus(update interfaces.LightClientUpdate) (*LightClientUpdate, error)
type LightClientUpdateResponse ¶
type LightClientUpdateResponse struct {
Version string `json:"version"`
Data *LightClientUpdate `json:"data"`
}
type LightClientUpdatesByRangeResponse ¶
type LightClientUpdatesByRangeResponse struct {
Updates []*LightClientUpdateResponse `json:"updates"`
}
type ListAttestationsResponse ¶
type ListAttestationsResponse struct {
Version string `json:"version,omitempty"`
Data json.RawMessage `json:"data"`
}
type ListVoluntaryExitsResponse ¶
type ListVoluntaryExitsResponse struct {
Data []*SignedVoluntaryExit `json:"data"`
}
type MessageJsoner ¶
MessageJsoner describes a signed consensus type wrapper that can return the `.Message` field in a json envelope encoded as a []byte, for use as a json.RawMessage value when encoding the outer envelope.
type PayloadAttributesEvent ¶
type PayloadAttributesEvent struct {
Version string `json:"version"`
Data json.RawMessage `json:"data"`
}
type PayloadAttributesEventData ¶
type PayloadAttributesEventData struct {
ProposerIndex string `json:"proposer_index"`
ProposalSlot string `json:"proposal_slot"`
ParentBlockNumber string `json:"parent_block_number"`
ParentBlockRoot string `json:"parent_block_root"`
ParentBlockHash string `json:"parent_block_hash"`
PayloadAttributes json.RawMessage `json:"payload_attributes"`
}
type PayloadAttributesV1 ¶
type PayloadAttributesV2 ¶
type PayloadAttributesV2 struct {
Timestamp string `json:"timestamp"`
PrevRandao string `json:"prev_randao"`
SuggestedFeeRecipient string `json:"suggested_fee_recipient"`
Withdrawals []*Withdrawal `json:"withdrawals"`
}
type PayloadAttributesV3 ¶
type PayloadAttributesV3 struct {
Timestamp string `json:"timestamp"`
PrevRandao string `json:"prev_randao"`
SuggestedFeeRecipient string `json:"suggested_fee_recipient"`
Withdrawals []*Withdrawal `json:"withdrawals"`
ParentBeaconBlockRoot string `json:"parent_beacon_block_root"`
}
type PeersResponse ¶
type PeersResponse struct {
Peers []*Peer `json:"peers"`
}
type PendingAttestation ¶
type PendingAttestation struct {
AggregationBits string `json:"aggregation_bits"`
Data *AttestationData `json:"data"`
InclusionDelay string `json:"inclusion_delay"`
ProposerIndex string `json:"proposer_index"`
}
func PendingAttestationFromConsensus ¶
func PendingAttestationFromConsensus(a *eth.PendingAttestation) *PendingAttestation
type PendingConsolidation ¶
type PendingConsolidation struct {
SourceIndex string `json:"source_index"`
TargetIndex string `json:"target_index"`
}
func PendingConsolidationsFromConsensus ¶
func PendingConsolidationsFromConsensus(cs []*eth.PendingConsolidation) []*PendingConsolidation
type PendingDeposit ¶
type PendingDeposit struct {
Pubkey string `json:"pubkey"`
WithdrawalCredentials string `json:"withdrawal_credentials"`
Amount string `json:"amount"`
Signature string `json:"signature"`
Slot string `json:"slot"`
}
func PendingDepositsFromConsensus ¶
func PendingDepositsFromConsensus(ds []*eth.PendingDeposit) []*PendingDeposit
type PendingPartialWithdrawal ¶
type PendingPartialWithdrawal struct {
Index string `json:"validator_index"`
Amount string `json:"amount"`
WithdrawableEpoch string `json:"withdrawable_epoch"`
}
func PendingPartialWithdrawalsFromConsensus ¶
func PendingPartialWithdrawalsFromConsensus(ws []*eth.PendingPartialWithdrawal) []*PendingPartialWithdrawal
type ProduceBlockV3Response ¶
type ProduceBlockV3Response struct {
Version string `json:"version"`
ExecutionPayloadBlinded bool `json:"execution_payload_blinded"`
ExecutionPayloadValue string `json:"execution_payload_value"`
ConsensusBlockValue string `json:"consensus_block_value"`
Data json.RawMessage `json:"data"` // represents the block values based on the version
}
ProduceBlockV3Response is a wrapper json object for the returned block from the ProduceBlockV3 endpoint
type ProduceSyncCommitteeContributionResponse ¶
type ProduceSyncCommitteeContributionResponse struct {
Data *SyncCommitteeContribution `json:"data"`
}
type ProposerDuty ¶
type ProposerSlashing ¶
type ProposerSlashing struct {
SignedHeader1 *SignedBeaconBlockHeader `json:"signed_header_1"`
SignedHeader2 *SignedBeaconBlockHeader `json:"signed_header_2"`
}
func ProposerSlashingFromConsensus ¶
func ProposerSlashingFromConsensus(src *eth.ProposerSlashing) *ProposerSlashing
func ProposerSlashingsFromConsensus ¶
func ProposerSlashingsFromConsensus(src []*eth.ProposerSlashing) []*ProposerSlashing
func (*ProposerSlashing) ToConsensus ¶
func (s *ProposerSlashing) ToConsensus() (*eth.ProposerSlashing, error)
type PublishBlobsRequest ¶
type PublishBlobsRequest struct {
BlobSidecars *BlobSidecars `json:"blob_sidecars"`
BlockRoot string `json:"block_root"`
}
type Sidecar ¶
type Sidecar struct {
Index string `json:"index"`
Blob string `json:"blob"`
SignedBeaconBlockHeader *SignedBeaconBlockHeader `json:"signed_block_header"`
KzgCommitment string `json:"kzg_commitment"`
KzgProof string `json:"kzg_proof"`
CommitmentInclusionProof []string `json:"kzg_commitment_inclusion_proof"`
}
func (*Sidecar) ToConsensus ¶
func (sc *Sidecar) ToConsensus() (*eth.BlobSidecar, error)
type SidecarsResponse ¶
type SignedAggregateAttestationAndProof ¶
type SignedAggregateAttestationAndProof struct {
Message *AggregateAttestationAndProof `json:"message"`
Signature string `json:"signature"`
}
func (*SignedAggregateAttestationAndProof) ToConsensus ¶
func (s *SignedAggregateAttestationAndProof) ToConsensus() (*eth.SignedAggregateAttestationAndProof, error)
type SignedAggregateAttestationAndProofElectra ¶
type SignedAggregateAttestationAndProofElectra struct {
Message *AggregateAttestationAndProofElectra `json:"message"`
Signature string `json:"signature"`
}
func (*SignedAggregateAttestationAndProofElectra) ToConsensus ¶
func (s *SignedAggregateAttestationAndProofElectra) ToConsensus() (*eth.SignedAggregateAttestationAndProofElectra, error)
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct {
Message *BLSToExecutionChange `json:"message"`
Signature string `json:"signature"`
}
func SignedBLSChangeFromConsensus ¶
func SignedBLSChangeFromConsensus(ch *eth.SignedBLSToExecutionChange) *SignedBLSToExecutionChange
func SignedBLSChangesFromConsensus ¶
func SignedBLSChangesFromConsensus(src []*eth.SignedBLSToExecutionChange) []*SignedBLSToExecutionChange
func (*SignedBLSToExecutionChange) ToConsensus ¶
func (s *SignedBLSToExecutionChange) ToConsensus() (*eth.SignedBLSToExecutionChange, error)
type SignedBeaconBlock ¶
type SignedBeaconBlock struct {
Message *BeaconBlock `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockPhase0FromConsensus ¶
func SignedBeaconBlockPhase0FromConsensus(b *eth.SignedBeaconBlock) *SignedBeaconBlock
func (*SignedBeaconBlock) MessageRawJson ¶
func (s *SignedBeaconBlock) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlock) SigString ¶
func (s *SignedBeaconBlock) SigString() string
func (*SignedBeaconBlock) ToGeneric ¶
func (b *SignedBeaconBlock) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockAltair ¶
type SignedBeaconBlockAltair struct {
Message *BeaconBlockAltair `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockAltairFromConsensus ¶
func SignedBeaconBlockAltairFromConsensus(b *eth.SignedBeaconBlockAltair) *SignedBeaconBlockAltair
func (*SignedBeaconBlockAltair) MessageRawJson ¶
func (s *SignedBeaconBlockAltair) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlockAltair) SigString ¶
func (s *SignedBeaconBlockAltair) SigString() string
func (*SignedBeaconBlockAltair) ToGeneric ¶
func (b *SignedBeaconBlockAltair) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockBellatrix ¶
type SignedBeaconBlockBellatrix struct {
Message *BeaconBlockBellatrix `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockBellatrixFromConsensus ¶
func SignedBeaconBlockBellatrixFromConsensus(b *eth.SignedBeaconBlockBellatrix) (*SignedBeaconBlockBellatrix, error)
func (*SignedBeaconBlockBellatrix) MessageRawJson ¶
func (s *SignedBeaconBlockBellatrix) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlockBellatrix) SigString ¶
func (s *SignedBeaconBlockBellatrix) SigString() string
func (*SignedBeaconBlockBellatrix) ToGeneric ¶
func (b *SignedBeaconBlockBellatrix) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockCapella ¶
type SignedBeaconBlockCapella struct {
Message *BeaconBlockCapella `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockCapellaFromConsensus ¶
func SignedBeaconBlockCapellaFromConsensus(b *eth.SignedBeaconBlockCapella) (*SignedBeaconBlockCapella, error)
func (*SignedBeaconBlockCapella) MessageRawJson ¶
func (s *SignedBeaconBlockCapella) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlockCapella) SigString ¶
func (s *SignedBeaconBlockCapella) SigString() string
func (*SignedBeaconBlockCapella) ToGeneric ¶
func (b *SignedBeaconBlockCapella) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBeaconBlockContentsDeneb ¶
type SignedBeaconBlockContentsDeneb struct {
SignedBlock *SignedBeaconBlockDeneb `json:"signed_block"`
KzgProofs []string `json:"kzg_proofs"`
Blobs []string `json:"blobs"`
}
func SignedBeaconBlockContentsDenebFromConsensus ¶
func SignedBeaconBlockContentsDenebFromConsensus(b *eth.SignedBeaconBlockContentsDeneb) (*SignedBeaconBlockContentsDeneb, error)
func (*SignedBeaconBlockContentsDeneb) ToGeneric ¶
func (b *SignedBeaconBlockContentsDeneb) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
func (*SignedBeaconBlockContentsDeneb) ToUnsigned ¶
func (b *SignedBeaconBlockContentsDeneb) ToUnsigned() *BeaconBlockContentsDeneb
type SignedBeaconBlockContentsElectra ¶
type SignedBeaconBlockContentsElectra struct {
SignedBlock *SignedBeaconBlockElectra `json:"signed_block"`
KzgProofs []string `json:"kzg_proofs"`
Blobs []string `json:"blobs"`
}
func SignedBeaconBlockContentsElectraFromConsensus ¶
func SignedBeaconBlockContentsElectraFromConsensus(b *eth.SignedBeaconBlockContentsElectra) (*SignedBeaconBlockContentsElectra, error)
func (*SignedBeaconBlockContentsElectra) ToGeneric ¶
func (b *SignedBeaconBlockContentsElectra) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
func (*SignedBeaconBlockContentsElectra) ToUnsigned ¶
func (b *SignedBeaconBlockContentsElectra) ToUnsigned() *BeaconBlockContentsElectra
type SignedBeaconBlockContentsFulu ¶
type SignedBeaconBlockContentsFulu struct {
SignedBlock *SignedBeaconBlockFulu `json:"signed_block"`
KzgProofs []string `json:"kzg_proofs"`
Blobs []string `json:"blobs"`
}
func SignedBeaconBlockContentsFuluFromConsensus ¶
func SignedBeaconBlockContentsFuluFromConsensus(b *eth.SignedBeaconBlockContentsFulu) (*SignedBeaconBlockContentsFulu, error)
func (*SignedBeaconBlockContentsFulu) ToGeneric ¶
func (b *SignedBeaconBlockContentsFulu) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
func (*SignedBeaconBlockContentsFulu) ToUnsigned ¶
func (b *SignedBeaconBlockContentsFulu) ToUnsigned() *BeaconBlockContentsFulu
type SignedBeaconBlockDeneb ¶
type SignedBeaconBlockDeneb struct {
Message *BeaconBlockDeneb `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockDenebFromConsensus ¶
func SignedBeaconBlockDenebFromConsensus(b *eth.SignedBeaconBlockDeneb) (*SignedBeaconBlockDeneb, error)
func (*SignedBeaconBlockDeneb) MessageRawJson ¶
func (s *SignedBeaconBlockDeneb) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlockDeneb) SigString ¶
func (s *SignedBeaconBlockDeneb) SigString() string
func (*SignedBeaconBlockDeneb) ToConsensus ¶
func (b *SignedBeaconBlockDeneb) ToConsensus() (*eth.SignedBeaconBlockDeneb, error)
type SignedBeaconBlockElectra ¶
type SignedBeaconBlockElectra struct {
Message *BeaconBlockElectra `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockElectraFromConsensus ¶
func SignedBeaconBlockElectraFromConsensus(b *eth.SignedBeaconBlockElectra) (*SignedBeaconBlockElectra, error)
func (*SignedBeaconBlockElectra) MessageRawJson ¶
func (s *SignedBeaconBlockElectra) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlockElectra) SigString ¶
func (s *SignedBeaconBlockElectra) SigString() string
func (*SignedBeaconBlockElectra) ToConsensus ¶
func (b *SignedBeaconBlockElectra) ToConsensus() (*eth.SignedBeaconBlockElectra, error)
type SignedBeaconBlockFulu ¶
type SignedBeaconBlockFulu struct {
Message *BeaconBlockElectra `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockFuluFromConsensus ¶
func SignedBeaconBlockFuluFromConsensus(b *eth.SignedBeaconBlockFulu) (*SignedBeaconBlockFulu, error)
func (*SignedBeaconBlockFulu) MessageRawJson ¶
func (s *SignedBeaconBlockFulu) MessageRawJson() ([]byte, error)
func (*SignedBeaconBlockFulu) SigString ¶
func (s *SignedBeaconBlockFulu) SigString() string
func (*SignedBeaconBlockFulu) ToConsensus ¶
func (b *SignedBeaconBlockFulu) ToConsensus() (*eth.SignedBeaconBlockFulu, error)
type SignedBeaconBlockHeader ¶
type SignedBeaconBlockHeader struct {
Message *BeaconBlockHeader `json:"message"`
Signature string `json:"signature"`
}
func SignedBeaconBlockHeaderFromConsensus ¶
func SignedBeaconBlockHeaderFromConsensus(src *eth.SignedBeaconBlockHeader) *SignedBeaconBlockHeader
func (*SignedBeaconBlockHeader) ToConsensus ¶
func (h *SignedBeaconBlockHeader) ToConsensus() (*eth.SignedBeaconBlockHeader, error)
type SignedBeaconBlockHeaderContainer ¶
type SignedBeaconBlockHeaderContainer struct {
Header *SignedBeaconBlockHeader `json:"header"`
Root string `json:"root"`
Canonical bool `json:"canonical"`
}
type SignedBlindedBeaconBlockBellatrix ¶
type SignedBlindedBeaconBlockBellatrix struct {
Message *BlindedBeaconBlockBellatrix `json:"message"`
Signature string `json:"signature"`
}
func SignedBlindedBeaconBlockBellatrixFromConsensus ¶
func SignedBlindedBeaconBlockBellatrixFromConsensus(b *eth.SignedBlindedBeaconBlockBellatrix) (*SignedBlindedBeaconBlockBellatrix, error)
func (*SignedBlindedBeaconBlockBellatrix) MessageRawJson ¶
func (s *SignedBlindedBeaconBlockBellatrix) MessageRawJson() ([]byte, error)
func (*SignedBlindedBeaconBlockBellatrix) SigString ¶
func (s *SignedBlindedBeaconBlockBellatrix) SigString() string
func (*SignedBlindedBeaconBlockBellatrix) ToGeneric ¶
func (b *SignedBlindedBeaconBlockBellatrix) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlindedBeaconBlockCapella ¶
type SignedBlindedBeaconBlockCapella struct {
Message *BlindedBeaconBlockCapella `json:"message"`
Signature string `json:"signature"`
}
func SignedBlindedBeaconBlockCapellaFromConsensus ¶
func SignedBlindedBeaconBlockCapellaFromConsensus(b *eth.SignedBlindedBeaconBlockCapella) (*SignedBlindedBeaconBlockCapella, error)
func (*SignedBlindedBeaconBlockCapella) MessageRawJson ¶
func (s *SignedBlindedBeaconBlockCapella) MessageRawJson() ([]byte, error)
func (*SignedBlindedBeaconBlockCapella) SigString ¶
func (s *SignedBlindedBeaconBlockCapella) SigString() string
func (*SignedBlindedBeaconBlockCapella) ToGeneric ¶
func (b *SignedBlindedBeaconBlockCapella) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlindedBeaconBlockDeneb ¶
type SignedBlindedBeaconBlockDeneb struct {
Message *BlindedBeaconBlockDeneb `json:"message"`
Signature string `json:"signature"`
}
func SignedBlindedBeaconBlockDenebFromConsensus ¶
func SignedBlindedBeaconBlockDenebFromConsensus(b *eth.SignedBlindedBeaconBlockDeneb) (*SignedBlindedBeaconBlockDeneb, error)
func (*SignedBlindedBeaconBlockDeneb) MessageRawJson ¶
func (s *SignedBlindedBeaconBlockDeneb) MessageRawJson() ([]byte, error)
func (*SignedBlindedBeaconBlockDeneb) SigString ¶
func (s *SignedBlindedBeaconBlockDeneb) SigString() string
func (*SignedBlindedBeaconBlockDeneb) ToConsensus ¶
func (b *SignedBlindedBeaconBlockDeneb) ToConsensus() (*eth.SignedBlindedBeaconBlockDeneb, error)
func (*SignedBlindedBeaconBlockDeneb) ToGeneric ¶
func (b *SignedBlindedBeaconBlockDeneb) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlindedBeaconBlockElectra ¶
type SignedBlindedBeaconBlockElectra struct {
Message *BlindedBeaconBlockElectra `json:"message"`
Signature string `json:"signature"`
}
func SignedBlindedBeaconBlockElectraFromConsensus ¶
func SignedBlindedBeaconBlockElectraFromConsensus(b *eth.SignedBlindedBeaconBlockElectra) (*SignedBlindedBeaconBlockElectra, error)
func (*SignedBlindedBeaconBlockElectra) MessageRawJson ¶
func (s *SignedBlindedBeaconBlockElectra) MessageRawJson() ([]byte, error)
func (*SignedBlindedBeaconBlockElectra) SigString ¶
func (s *SignedBlindedBeaconBlockElectra) SigString() string
func (*SignedBlindedBeaconBlockElectra) ToConsensus ¶
func (b *SignedBlindedBeaconBlockElectra) ToConsensus() (*eth.SignedBlindedBeaconBlockElectra, error)
func (*SignedBlindedBeaconBlockElectra) ToGeneric ¶
func (b *SignedBlindedBeaconBlockElectra) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlindedBeaconBlockFulu ¶
type SignedBlindedBeaconBlockFulu struct {
Message *BlindedBeaconBlockFulu `json:"message"`
Signature string `json:"signature"`
}
func SignedBlindedBeaconBlockFuluFromConsensus ¶
func SignedBlindedBeaconBlockFuluFromConsensus(b *eth.SignedBlindedBeaconBlockFulu) (*SignedBlindedBeaconBlockFulu, error)
func (*SignedBlindedBeaconBlockFulu) MessageRawJson ¶
func (s *SignedBlindedBeaconBlockFulu) MessageRawJson() ([]byte, error)
func (*SignedBlindedBeaconBlockFulu) SigString ¶
func (s *SignedBlindedBeaconBlockFulu) SigString() string
func (*SignedBlindedBeaconBlockFulu) ToConsensus ¶
func (b *SignedBlindedBeaconBlockFulu) ToConsensus() (*eth.SignedBlindedBeaconBlockFulu, error)
func (*SignedBlindedBeaconBlockFulu) ToGeneric ¶
func (b *SignedBlindedBeaconBlockFulu) ToGeneric() (*eth.GenericSignedBeaconBlock, error)
type SignedBlock ¶
type SignedBlock struct {
Message json.RawMessage `json:"message"` // represents the block values based on the version
Signature string `json:"signature"`
}
type SignedContributionAndProof ¶
type SignedContributionAndProof struct {
Message *ContributionAndProof `json:"message"`
Signature string `json:"signature"`
}
func SignedContributionAndProofFromConsensus ¶
func SignedContributionAndProofFromConsensus(c *eth.SignedContributionAndProof) *SignedContributionAndProof
func (*SignedContributionAndProof) ToConsensus ¶
func (s *SignedContributionAndProof) ToConsensus() (*eth.SignedContributionAndProof, error)
type SignedMessageJsoner ¶
type SignedMessageJsoner interface {
MessageJsoner
SigString() string
}
SignedMessageJsoner embeds MessageJsoner and adds a method to also retrieve the Signature field as a string.
func SignedBeaconBlockMessageJsoner ¶
func SignedBeaconBlockMessageJsoner(block interfaces.ReadOnlySignedBeaconBlock) (SignedMessageJsoner, error)
type SignedValidatorRegistration ¶
type SignedValidatorRegistration struct {
Message *ValidatorRegistration `json:"message"`
Signature string `json:"signature"`
}
func SignedValidatorRegistrationFromConsensus ¶
func SignedValidatorRegistrationFromConsensus(vr *eth.SignedValidatorRegistrationV1) *SignedValidatorRegistration
func (*SignedValidatorRegistration) ToConsensus ¶
func (s *SignedValidatorRegistration) ToConsensus() (*eth.SignedValidatorRegistrationV1, error)
type SignedVoluntaryExit ¶
type SignedVoluntaryExit struct {
Message *VoluntaryExit `json:"message"`
Signature string `json:"signature"`
}
func SignedExitFromConsensus ¶
func SignedExitFromConsensus(e *eth.SignedVoluntaryExit) *SignedVoluntaryExit
func SignedExitsFromConsensus ¶
func SignedExitsFromConsensus(src []*eth.SignedVoluntaryExit) []*SignedVoluntaryExit
func (*SignedVoluntaryExit) ToConsensus ¶
func (e *SignedVoluntaryExit) ToConsensus() (*eth.SignedVoluntaryExit, error)
type SingleAttestation ¶
type SingleAttestation struct {
CommitteeIndex string `json:"committee_index"`
AttesterIndex string `json:"attester_index"`
Data *AttestationData `json:"data"`
Signature string `json:"signature"`
}
func SingleAttFromConsensus ¶
func SingleAttFromConsensus(a *eth.SingleAttestation) *SingleAttestation
func (*SingleAttestation) ToConsensus ¶
func (a *SingleAttestation) ToConsensus() (*eth.SingleAttestation, error)
type SubmitAggregateAndProofsRequest ¶
type SubmitAggregateAndProofsRequest struct {
Data []json.RawMessage `json:"data"`
}
type SubmitAttestationsRequest ¶
type SubmitAttestationsRequest struct {
Data json.RawMessage `json:"data"`
}
type SubmitBeaconCommitteeSubscriptionsRequest ¶
type SubmitBeaconCommitteeSubscriptionsRequest struct {
Data []*BeaconCommitteeSubscription `json:"data"`
}
type SubmitContributionAndProofsRequest ¶
type SubmitContributionAndProofsRequest struct {
Data []*SignedContributionAndProof `json:"data"`
}
type SubmitSyncCommitteeSignaturesRequest ¶
type SubmitSyncCommitteeSignaturesRequest struct {
Data []*SyncCommitteeMessage `json:"data"`
}
type SubmitSyncCommitteeSubscriptionsRequest ¶
type SubmitSyncCommitteeSubscriptionsRequest struct {
Data []*SyncCommitteeSubscription `json:"data"`
}
type SyncAggregate ¶
type SyncAggregate struct {
SyncCommitteeBits string `json:"sync_committee_bits"`
SyncCommitteeSignature string `json:"sync_committee_signature"`
}
func SyncAggregateFromConsensus ¶
func SyncAggregateFromConsensus(sa *eth.SyncAggregate) *SyncAggregate
type SyncCommittee ¶
type SyncCommittee struct {
Pubkeys []string `json:"pubkeys"`
AggregatePubkey string `json:"aggregate_pubkey"`
}
func SyncCommitteeFromConsensus ¶
func SyncCommitteeFromConsensus(sc *eth.SyncCommittee) *SyncCommittee
func (*SyncCommittee) ToConsensus ¶
func (sc *SyncCommittee) ToConsensus() (*eth.SyncCommittee, error)
type SyncCommitteeContribution ¶
type SyncCommitteeContribution struct {
Slot string `json:"slot"`
BeaconBlockRoot string `json:"beacon_block_root"`
SubcommitteeIndex string `json:"subcommittee_index"`
AggregationBits string `json:"aggregation_bits"`
Signature string `json:"signature"`
}
func SyncCommitteeContributionFromConsensus ¶
func SyncCommitteeContributionFromConsensus(c *eth.SyncCommitteeContribution) *SyncCommitteeContribution
func (*SyncCommitteeContribution) ToConsensus ¶
func (s *SyncCommitteeContribution) ToConsensus() (*eth.SyncCommitteeContribution, error)
type SyncCommitteeDuty ¶
type SyncCommitteeMessage ¶
type SyncCommitteeMessage struct {
Slot string `json:"slot"`
BeaconBlockRoot string `json:"beacon_block_root"`
ValidatorIndex string `json:"validator_index"`
Signature string `json:"signature"`
}
func (*SyncCommitteeMessage) ToConsensus ¶
func (m *SyncCommitteeMessage) ToConsensus() (*eth.SyncCommitteeMessage, error)
type SyncCommitteeReward ¶
type SyncCommitteeRewardsResponse ¶
type SyncCommitteeRewardsResponse struct {
Data []SyncCommitteeReward `json:"data"`
ExecutionOptimistic bool `json:"execution_optimistic"`
Finalized bool `json:"finalized"`
}
type SyncCommitteeSubscription ¶
type SyncCommitteeSubscription struct {
ValidatorIndex string `json:"validator_index"`
SyncCommitteeIndices []string `json:"sync_committee_indices"`
UntilEpoch string `json:"until_epoch"`
}
func (*SyncCommitteeSubscription) ToConsensus ¶
func (s *SyncCommitteeSubscription) ToConsensus() (*validator.SyncCommitteeSubscription, error)
type SyncCommitteeValidators ¶
type SyncDetails ¶
type SyncDetails struct {
HeadSlot string `json:"head_slot"`
SyncDistance string `json:"sync_distance"`
IsSyncing bool `json:"is_syncing"`
IsOptimistic bool `json:"is_optimistic"`
ElOffline bool `json:"el_offline"`
}
SyncDetails contains information about node sync status.
type SyncDetailsContainer ¶
type SyncDetailsContainer struct {
Data *SyncDetails `json:"data"`
}
SyncDetailsContainer is a wrapper for Data.
type SyncStatusResponse ¶
type SyncStatusResponse struct {
Data *SyncStatusResponseData `json:"data"`
}
type SyncStatusResponseData ¶
type TotalAttestationReward ¶
type UnaggregatedAttEventSource ¶
type UnaggregatedAttEventSource struct {
AggregationBits string `json:"aggregation_bits"`
Data *AttestationData `json:"data"`
Signature string `json:"signature"`
}
type Validator ¶
type Validator struct {
Pubkey string `json:"pubkey"`
WithdrawalCredentials string `json:"withdrawal_credentials"`
EffectiveBalance string `json:"effective_balance"`
Slashed bool `json:"slashed"`
ActivationEligibilityEpoch string `json:"activation_eligibility_epoch"`
ActivationEpoch string `json:"activation_epoch"`
ExitEpoch string `json:"exit_epoch"`
WithdrawableEpoch string `json:"withdrawable_epoch"`
}
func ValidatorFromConsensus ¶
type ValidatorBalance ¶
type ValidatorContainer ¶
type ValidatorCount ¶
type ValidatorIdentity ¶
type ValidatorParticipation ¶
type ValidatorParticipation struct {
GlobalParticipationRate string `json:"global_participation_rate" deprecated:"true"`
VotedEther string `json:"voted_ether" deprecated:"true"`
EligibleEther string `json:"eligible_ether" deprecated:"true"`
CurrentEpochActiveGwei string `json:"current_epoch_active_gwei"`
CurrentEpochAttestingGwei string `json:"current_epoch_attesting_gwei"`
CurrentEpochTargetAttestingGwei string `json:"current_epoch_target_attesting_gwei"`
PreviousEpochActiveGwei string `json:"previous_epoch_active_gwei"`
PreviousEpochAttestingGwei string `json:"previous_epoch_attesting_gwei"`
PreviousEpochTargetAttestingGwei string `json:"previous_epoch_target_attesting_gwei"`
PreviousEpochHeadAttestingGwei string `json:"previous_epoch_head_attesting_gwei"`
}
type ValidatorRegistration ¶
type ValidatorRegistration struct {
FeeRecipient string `json:"fee_recipient"`
GasLimit string `json:"gas_limit"`
Timestamp string `json:"timestamp"`
Pubkey string `json:"pubkey"`
}
func ValidatorRegistrationFromConsensus ¶
func ValidatorRegistrationFromConsensus(vr *eth.ValidatorRegistrationV1) *ValidatorRegistration
func (*ValidatorRegistration) ToConsensus ¶
func (s *ValidatorRegistration) ToConsensus() (*eth.ValidatorRegistrationV1, error)
type VoluntaryExit ¶
type VoluntaryExit struct {
Epoch string `json:"epoch"`
ValidatorIndex string `json:"validator_index"`
}
func ExitFromConsensus ¶
func ExitFromConsensus(e *eth.VoluntaryExit) *VoluntaryExit
func (*VoluntaryExit) ToConsensus ¶
func (e *VoluntaryExit) ToConsensus() (*eth.VoluntaryExit, error)
type WeakSubjectivityData ¶
type WeakSubjectivityData struct {
WsCheckpoint *Checkpoint `json:"ws_checkpoint"`
StateRoot string `json:"state_root"`
}
type Withdrawal ¶
type Withdrawal struct {
WithdrawalIndex string `json:"index"`
ValidatorIndex string `json:"validator_index"`
ExecutionAddress string `json:"address"`
Amount string `json:"amount"`
}
func WithdrawalFromConsensus ¶
func WithdrawalFromConsensus(w *enginev1.Withdrawal) *Withdrawal
func WithdrawalsFromConsensus ¶
func WithdrawalsFromConsensus(ws []*enginev1.Withdrawal) []*Withdrawal
type WithdrawalRequest ¶
type WithdrawalRequest struct {
SourceAddress string `json:"source_address"`
ValidatorPubkey string `json:"validator_pubkey"`
Amount string `json:"amount"`
}
func WithdrawalRequestFromConsensus ¶
func WithdrawalRequestFromConsensus(w *enginev1.WithdrawalRequest) *WithdrawalRequest
func WithdrawalRequestsFromConsensus ¶
func WithdrawalRequestsFromConsensus(ws []*enginev1.WithdrawalRequest) []*WithdrawalRequest
func (*WithdrawalRequest) ToConsensus ¶
func (w *WithdrawalRequest) ToConsensus() (*enginev1.WithdrawalRequest, error)
Source Files
¶
- block.go
- block_execution.go
- conversions.go
- conversions_blob.go
- conversions_block.go
- conversions_block_execution.go
- conversions_lightclient.go
- conversions_state.go
- endpoints_beacon.go
- endpoints_blob.go
- endpoints_builder.go
- endpoints_config.go
- endpoints_debug.go
- endpoints_events.go
- endpoints_lightclient.go
- endpoints_node.go
- endpoints_rewards.go
- endpoints_validator.go
- other.go
- state.go
Click to show internal directories.
Click to hide internal directories.