clients

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstrumentedEthClient

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

func Dial

func Dial(providerName string, url string) (*InstrumentedEthClient, error)

func (*InstrumentedEthClient) EstimateGas added in v0.2.0

func (i *InstrumentedEthClient) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)

func (*InstrumentedEthClient) HeaderByNumber added in v0.2.0

func (i *InstrumentedEthClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

func (*InstrumentedEthClient) PendingNonceAt

func (i *InstrumentedEthClient) PendingNonceAt(ctx context.Context, address string) (uint64, error)

func (*InstrumentedEthClient) SendTransaction

func (i *InstrumentedEthClient) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*InstrumentedEthClient) SuggestGasTipCap added in v0.2.0

func (i *InstrumentedEthClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

func (*InstrumentedEthClient) TransactionByHash

func (i *InstrumentedEthClient) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)

func (*InstrumentedEthClient) TransactionReceipt

func (i *InstrumentedEthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

type InstrumentedSignerClient

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

func NewSignerClient

func NewSignerClient(providerName string, logger log.Logger, endpoint string, tlsConfig optls.CLIConfig) (*InstrumentedSignerClient, error)

func (*InstrumentedSignerClient) SignTransaction

func (i *InstrumentedSignerClient) SignTransaction(ctx context.Context, chainId *big.Int, from *common.Address, tx *types.Transaction) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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