Documentation ¶
Index ¶
- Variables
- type Client
- func (client *Client) CreateAccount(account string) (keeper.Account, error)
- func (client *Client) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (client *Client) GetAccountInfo(account string, minConf int) (keeper.Account, error)
- func (client *Client) GetAddress(account string) (string, error)
- func (client *Client) GetAddressesByAccount(account string) ([]string, error)
- func (client *Client) GetBlockCount() (int64, error)
- func (client *Client) GetNewAddress(account string) (string, error)
- func (client *Client) ListAccountsMinConf(conf int) (map[string]float64, error)
- func (client *Client) ListUnspentMin(minConf int) ([]btcjson.ListUnspentResult, error)
- func (client *Client) Move(from, to string, amount float64) (bool, error)
- func (client *Client) NetworkID(ctx context.Context) (*big.Int, error)
- func (client *Client) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (client *Client) Ping() error
- func (client *Client) SendFrom(account, hexToAddress string, amount float64) (string, error)
- func (client *Client) SendToAddress(address string, amount float64) (string, error)
- func (client *Client) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (client *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateAccount ¶
Create Account
func (*Client) EstimateGas ¶
EstimateGas tries to estimate the gas needed to execute a specific transaction based on the current pending state of the backend blockchain. There is no guarantee that this is the true gas limit requirement as other transactions may be added or removed by miners, but it should provide a basis for setting a reasonable default.
func (*Client) GetAccountInfo ¶
GetAccountInfo
func (*Client) GetAddress ¶
GetAddress - default address
func (*Client) GetAddressesByAccount ¶
GetAddressesByAccount
func (*Client) ListAccountsMinConf ¶
ListAccountsMinConf
func (*Client) ListUnspentMin ¶
func (client *Client) ListUnspentMin(minConf int) ([]btcjson.ListUnspentResult, error)
ListUnspentMin
func (*Client) NetworkID ¶
NetworkID returns the network ID (also known as the chain ID) for this chain.
func (*Client) PendingNonceAt ¶
PendingNonceAt returns the account nonce of the given account in the pending state. This is the nonce that should be used for the next transaction.
func (*Client) SendToAddress ¶
SendToAddress
func (*Client) SendTransaction ¶
SendTransaction injects a signed transaction into the pending pool for execution.
If the transaction was a contract creation use the TransactionReceipt method to get the contract address after the transaction has been mined.