Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions api/nodeidentityopts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright © 2026 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package api

// NodeIdentityOpts are the options for obtaining the node's network identity.
type NodeIdentityOpts struct {
Common CommonOpts
}
40 changes: 40 additions & 0 deletions api/submitexecutionpayloadbidopts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright © 2026 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package api

import (
"github.com/ethpandaops/go-eth2-client/spec"
"github.com/ethpandaops/go-eth2-client/spec/all"
)

// SubmitExecutionPayloadBidOpts are the options for submitting execution
// payload bids.
type SubmitExecutionPayloadBidOpts struct {
Common CommonOpts

// SignedExecutionPayloadBid is the signed bid to publish. Its Version
// selects the wire schema and the consensus version header.
SignedExecutionPayloadBid *spec.VersionedSignedExecutionPayloadBid
}

// SubmitAgnosticExecutionPayloadBidOpts are the options for submitting
// execution payload bids supplied as a fork-agnostic
// *all.SignedExecutionPayloadBid.
type SubmitAgnosticExecutionPayloadBidOpts struct {
Common CommonOpts

// SignedExecutionPayloadBid is the signed bid to publish. Its Version
// selects the wire schema and the consensus version header.
SignedExecutionPayloadBid *all.SignedExecutionPayloadBid
}
69 changes: 69 additions & 0 deletions api/submitexecutionpayloadenvelopeopts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// Copyright © 2026 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package api

import (
apiv2 "github.com/ethpandaops/go-eth2-client/api/v2"
"github.com/ethpandaops/go-eth2-client/spec"
"github.com/ethpandaops/go-eth2-client/spec/all"
"github.com/ethpandaops/go-eth2-client/spec/deneb"
)

// SubmitExecutionPayloadEnvelopeOpts are the options for submitting execution
// payload envelopes. The submission always uses the stateless request form
// (SignedExecutionPayloadEnvelopeContents): the signed envelope plus the
// blobs and KZG cell proofs the beacon node needs to build data column
// sidecars. The stateful/blinded form only works when the beacon node cached
// the full envelope from its own block production, so it is not offered here.
type SubmitExecutionPayloadEnvelopeOpts struct {
Common CommonOpts

// SignedExecutionPayloadEnvelope is the signed envelope to publish.
// Its Version selects the wire schema and the consensus version header.
SignedExecutionPayloadEnvelope *spec.VersionedSignedExecutionPayloadEnvelope

// KZGProofs are the cell KZG proofs for the blobs committed to by the
// envelope's payload.
KZGProofs []deneb.KZGProof

// Blobs are the blobs committed to by the envelope's payload.
Blobs []deneb.Blob

// BroadcastValidation is the validation required of the consensus node
// before broadcasting the envelope.
BroadcastValidation *apiv2.BroadcastValidation
}

// SubmitAgnosticExecutionPayloadEnvelopeOpts are the options for submitting
// execution payload envelopes supplied as a fork-agnostic
// *all.SignedExecutionPayloadEnvelope. See
// SubmitExecutionPayloadEnvelopeOpts for the request form semantics.
type SubmitAgnosticExecutionPayloadEnvelopeOpts struct {
Common CommonOpts

// SignedExecutionPayloadEnvelope is the signed envelope to publish.
// Its Version selects the wire schema and the consensus version header.
SignedExecutionPayloadEnvelope *all.SignedExecutionPayloadEnvelope

// KZGProofs are the cell KZG proofs for the blobs committed to by the
// envelope's payload.
KZGProofs []deneb.KZGProof

// Blobs are the blobs committed to by the envelope's payload.
Blobs []deneb.Blob

// BroadcastValidation is the validation required of the consensus node
// before broadcasting the envelope.
BroadcastValidation *apiv2.BroadcastValidation
}
Loading
Loading