getexecutionblock

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

README

get_execution_block Task

get_execution_block Task Documentation

Description

The get_execution_block task is designed to retrieve the most recent block on the chain. This information can be crucial for various purposes, such as tracking chain progress, verifying transactions, or inspecting the block.

Outputs

  • header: The result of the eth_getBlockByNumber call, returning the block headers.

Defaults

Default settings for the get_execution_block task:

  - name: get_execution_block
    id: "get_head_block"
    title: "Check head block and block hash from EL RPC"
    timeout: 5m

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskName       = "get_execution_block"
	TaskDescriptor = &types.TaskDescriptor{
		Name:        TaskName,
		Description: "Gets the latest execution block.",
		Config:      DefaultConfig(),
		NewTask:     NewTask,
	}
)

Functions

func NewTask

func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)

Types

type Config

type Config struct{}

func DefaultConfig

func DefaultConfig() Config

func (*Config) Validate

func (c *Config) Validate() error

type Task

type Task struct {
	// contains filtered or unexported fields
}

func (*Task) Config

func (t *Task) Config() interface{}

func (*Task) Execute

func (t *Task) Execute(_ context.Context) error

func (*Task) LoadConfig

func (t *Task) LoadConfig() error

func (*Task) Timeout

func (t *Task) Timeout() time.Duration

Jump to

Keyboard shortcuts

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