// GetNetTotalsAsync returns an instance of a type that can be used to get the // result of the RPC at some future time by invoking the Receive function on the // returned instance. // // See GetNetTotals for the blocking version and more details. func (c *Client) GetNetTotalsAsync() FutureGetNetTotalsResult { id := c.NextID() cmd, err := btcjson.NewGetNetTotalsCmd(id) if err != nil { return newFutureError(err) } return c.sendCmd(cmd) }
// makeGetNetTotals generates the cmd structure for getnettotals commands. func makeGetNetTotals(args []interface{}) (btcjson.Cmd, error) { return btcjson.NewGetNetTotalsCmd("btcctl") }