chain

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has0xPrefix

func Has0xPrefix(str string) bool

func IsValidAddress

func IsValidAddress(address string, checksummed bool) bool

Types

type TxBuild

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

func (*TxBuild) Sender

func (b *TxBuild) Sender() common.Address

func (*TxBuild) Transfer

func (b *TxBuild) Transfer(ctx context.Context, to string, value *big.Int) (bytes.HexBytes, error)

type TxBuilder

type TxBuilder interface {
	Sender() common.Address
	Transfer(ctx context.Context, to string, value *big.Int) (bytes.HexBytes, error)
}

func NewTxBuilder

func NewTxBuilder(provider string, privateKey *ed25519.PrivateKey) (TxBuilder, error)

Jump to

Keyboard shortcuts

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