clientwrappers

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: LGPL-3.0, MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainClient

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

func NewChainClient

func NewChainClient(client client.Client) *ChainClient

func (*ChainClient) NonceAt

func (c *ChainClient) NonceAt(ctx context.Context, address common.Address, blockNumber *big.Int) (uint64, error)

func (*ChainClient) PendingNonceAt

func (c *ChainClient) PendingNonceAt(ctx context.Context, address common.Address) (uint64, error)

func (*ChainClient) SendTransaction

func (c *ChainClient) SendTransaction(ctx context.Context, _ *types.Transaction, attempt *types.Attempt) error

type DualBroadcastClient

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

func NewDualBroadcastClient

func NewDualBroadcastClient(c client.Client, keystore keys.MessageSigner, customURL *url.URL) *DualBroadcastClient

func (*DualBroadcastClient) NonceAt

func (d *DualBroadcastClient) NonceAt(ctx context.Context, address common.Address, blockNumber *big.Int) (uint64, error)

func (*DualBroadcastClient) PendingNonceAt

func (d *DualBroadcastClient) PendingNonceAt(ctx context.Context, address common.Address) (uint64, error)

func (*DualBroadcastClient) SendTransaction

func (d *DualBroadcastClient) SendTransaction(ctx context.Context, tx *types.Transaction, attempt *types.Attempt) error

type GethClient

type GethClient struct {
	*ethclient.Client
}

func NewGethClient

func NewGethClient(client *ethclient.Client) *GethClient

func (*GethClient) BatchCallContext

func (g *GethClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

func (*GethClient) CallContext

func (g *GethClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

func (*GethClient) CallContract

func (g *GethClient) CallContract(ctx context.Context, message ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

func (*GethClient) HeadByNumber

func (g *GethClient) HeadByNumber(ctx context.Context, number *big.Int) (*evmtypes.Head, error)

func (*GethClient) SendTransaction

func (g *GethClient) SendTransaction(ctx context.Context, _ *types.Transaction, attempt *types.Attempt) error

Jump to

Keyboard shortcuts

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