// GetMiningInfoAsync 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 GetMiningInfo for the blocking version and more details. func (c *Client) GetMiningInfoAsync() FutureGetMiningInfoResult { id := c.NextID() cmd, err := btcjson.NewGetMiningInfoCmd(id) if err != nil { return newFutureError(err) } return c.sendCmd(cmd) }
// makeGetMiningInfo generates the cmd structure for getmininginfo commands. func makeGetMiningInfo(args []interface{}) (btcjson.Cmd, error) { return btcjson.NewGetMiningInfoCmd("btcctl") }