blockchain

package
v0.0.0-...-f222379 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GasLimit         = 21000
	TransferGasLimit = 100000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

func GenerateAccount

func GenerateAccount() (*Account, error)

func ReadAccount

func ReadAccount(key string) (*Account, error)

func (Account) PrivateHex

func (acc Account) PrivateHex() string

func (Account) PublicHex

func (acc Account) PublicHex() string

type Client

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

func NewClient

func NewClient(url string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Wait

func (c *Client) Wait(ctx context.Context, tx string) error

func (*Client) WithdrawNative

func (c *Client) WithdrawNative(ctx context.Context, from *Account, to *Account) (string, error)

func (*Client) WithdrawToken

func (c *Client) WithdrawToken(ctx context.Context, from *Account, to *Account, tokenAddress string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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