account

package
v0.0.0-...-726cabc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

func NewAccount

func NewAccount() *Account

func NewAccountFromPrivateKey

func NewAccountFromPrivateKey(privateKey *ecdsa.PrivateKey) *Account

func NewAccountFromPrivateKeyHex

func NewAccountFromPrivateKeyHex(privateKey string) (acc *Account, err error)

func NewAccountFromSigner

func NewAccountFromSigner(signer *Signer) *Account

func NewAccountWithAddress

func NewAccountWithAddress(address common.Address) *Account

func (Account) Address

func (a Account) Address() (addr common.Address)

func (Account) CallOpts

func (a Account) CallOpts() *bind.CallOpts

func (Account) CallOptsContext

func (a Account) CallOptsContext(ctx context.Context) *bind.CallOpts

func (Account) MarshalJSON

func (a Account) MarshalJSON() ([]byte, error)

func (*Account) SetAddress

func (a *Account) SetAddress(addr common.Address)

func (*Account) SetSigner

func (a *Account) SetSigner(signer *Signer)

func (*Account) SetSignerFromPrivateKey

func (a *Account) SetSignerFromPrivateKey(privateKey string) (err error)

func (*Account) Signer

func (a *Account) Signer() *Signer

func (*Account) TransactOpts

func (a *Account) TransactOpts(chainID *big.Int) (*bind.TransactOpts, error)

func (*Account) TransactOptsContext

func (a *Account) TransactOptsContext(ctx context.Context, chainID *big.Int) (*bind.TransactOpts, error)

func (*Account) UnmarshalJSON

func (a *Account) UnmarshalJSON(data []byte) error

type Signer

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

func NewSigner

func NewSigner() *Signer

func NewSignerFromPrivateKey

func NewSignerFromPrivateKey(privateKey *ecdsa.PrivateKey) *Signer

func NewSignerFromPrivateKeyHex

func NewSignerFromPrivateKeyHex(privateKey string) (*Signer, error)

func (Signer) MarshalJSON

func (s Signer) MarshalJSON() ([]byte, error)

func (*Signer) UnmarshalJSON

func (s *Signer) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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