Documentation ¶
Index ¶
- Variables
- type Client
- func (client *Client) CreateAccount(account string) (keeper.Account, 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(minConf 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) Ping() error
- func (client *Client) SendFrom(account, address string, amount float64) (string, error)
- func (client *Client) SendToAddress(address string, amount float64) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_ACCOUNT = "duckduck"
default account for reserved usage, which represent account belongs to enterpise default
View Source
var DEFAULT_CONFIRMATION = 6
default confirmation
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateAccount ¶
Create Account Returns customized account info
func (*Client) GetAccountInfo ¶
GetAccountInfo
func (*Client) GetAddress ¶
GetAddress - default address
func (*Client) GetAddressesByAccount ¶
GetAddressesByAccount
func (*Client) GetNewAddress ¶
TODO GetNewAddress does map to `getnewaddress` rpc call now rpcclient doesn't have such golang wrapper func.
func (*Client) ListAccountsMinConf ¶
ListAccountsMinConf
func (*Client) ListUnspentMin ¶
func (client *Client) ListUnspentMin(minConf int) ([]btcjson.ListUnspentResult, error)
ListUnspentMin
Click to show internal directories.
Click to hide internal directories.