Documentation
¶
Overview ¶
package client provides API for communication with an Ethereum blockchain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines necessary attributes for establishing communication with an Ethereum blockchain and for performing functions required by the Nym system.
func (*Client) GetTransactionStatus ¶
used to get status of transaction, pending, accepted, rejected, etc
func (*Client) QueryERC20Balance ¶
func (c *Client) QueryERC20Balance(ctx context.Context, address common.Address, pending bool) (*big.Int, error)
pending is used to decide whether to query pending balance
func (*Client) TransferERC20Tokens ¶
func (c *Client) TransferERC20Tokens(ctx context.Context, amount int64, targetAddress common.Address, tokenDecimals ...int, ) error
TODO: rewrite to use token instance similarly to Balance query? TransferERC20Tokens sends specified amount of ERC20 tokens to given account.
Click to show internal directories.
Click to hide internal directories.