Documentation ¶
Overview ¶
Package rpc project rpc.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockCount ¶
GetBlockCount returns the current block height
Types ¶
type Client ¶
type Client interface { ListUnspentMinMaxAddresses( minConf, maxConf int, addrs []btcutil.Address, ) ([]btcjson.ListUnspentResult, error) ImportAddressRescan(address string, account string, rescan bool) error SendRawTransaction(tx *wire.MsgTx, allowHighFees bool) (*chainhash.Hash, error) SendToAddress(address btcutil.Address, amount btcutil.Amount) (*chainhash.Hash, error) Generate(numBlocks uint32) ([]*chainhash.Hash, error) GetBlockCount() (int64, error) RawRequest(method string, params []json.RawMessage) (json.RawMessage, error) }
Client is an interface that provides access to certain methods of type rpcclient.Client
func NewTestRPCClient ¶
NewTestRPCClient creates a RPC client for testing
Click to show internal directories.
Click to hide internal directories.