Documentation
¶
Index ¶
- Variables
- type PureEngineClient
- func (c *PureEngineClient) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, ...) (updatedStateRoot []byte, maxBytes uint64, err error)
- func (c *PureEngineClient) GetTxs(ctx context.Context) ([][]byte, error)
- func (c *PureEngineClient) InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, ...) ([]byte, uint64, error)
- func (c *PureEngineClient) SetFinal(ctx context.Context, blockHeight uint64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilPayloadStatus indicates that PayloadID returned by EVM was nil ErrNilPayloadStatus = errors.New("nil payload status") // ErrInvalidPayloadStatus indicates that EVM returned status != VALID ErrInvalidPayloadStatus = errors.New("invalid payload status") )
Functions ¶
This section is empty.
Types ¶
type PureEngineClient ¶
type PureEngineClient struct {
// contains filtered or unexported fields
}
PureEngineClient represents a client that interacts with an Ethereum execution engine through the Engine API. It manages connections to both the engine and standard Ethereum APIs, and maintains state related to block processing.
func NewPureEngineExecutionClient ¶
func NewPureEngineExecutionClient( ethURL, engineURL string, jwtSecret string, genesisHash common.Hash, feeRecipient common.Address, ) (*PureEngineClient, error)
NewPureEngineExecutionClient creates a new instance of EngineAPIExecutionClient
func (*PureEngineClient) ExecuteTxs ¶
func (c *PureEngineClient) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte) (updatedStateRoot []byte, maxBytes uint64, err error)
ExecuteTxs executes the given transactions at the specified block height and timestamp
func (*PureEngineClient) GetTxs ¶
func (c *PureEngineClient) GetTxs(ctx context.Context) ([][]byte, error)
GetTxs retrieves transactions from the current execution payload
Click to show internal directories.
Click to hide internal directories.