Documentation
¶
Index ¶
- type Account
- func (ac *Account) Close()
- func (ac *Account) GetAddress() common.Address
- func (ac *Account) GetBalance(ctx context.Context) (*big.Int, error)
- func (ac *Account) GetNonce(ctx context.Context) (uint64, error)
- func (ac *Account) GetPrivateKey() *ecdsa.PrivateKey
- func (ac *Account) GetRollup() *rollup.Rollup
- func (ac *Account) GetTokensBalance(ctx context.Context, contractAddress common.Address, contractABI abi.ABI) (*big.Int, error)
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 NewRollupAccount ¶
NewRollupAccount creates a new blockchain account
func (*Account) GetAddress ¶
GetAddress returns the address derived from the private key
func (*Account) GetBalance ¶
GetBalance returns the balance of the account
func (*Account) GetPrivateKey ¶
func (ac *Account) GetPrivateKey() *ecdsa.PrivateKey
Click to show internal directories.
Click to hide internal directories.