Optional ReadonlyblockFor submitblock and submitheader: the hash of the header the hex starts
with, when it holds one. For submitauxblock: the hash submitted.
ReadonlymethodThe JSON-RPC method name.
ReadonlyparamsThe positional parameters, as they will be sent.
ReadonlyparseValidates the raw result (numbers as JsonNumber) and converts it,
synchronously. It may throw anything on a malformed result: the client
reports whatever it throws as RpcResponseError (reason: 'validation'),
with the thrown value as cause. That is the entry's own error in a batch,
and, for a call with side effects, the cause of an
RpcUnknownOutcomeError, since the node has acted by then.
Optional ReadonlytxidFor sendrawtransaction: the txid computed from the hex, when it parses.
Optional ReadonlytxidsFor submitpackage: one txid per transaction, in package order, computed
from its hex, or null where the hex does not parse here (the node is the
judge of that, as for sendrawtransaction, so it is sent all the same).
Optional ReadonlywaitFor a long poll (waitfornewblock, waitforblockheight, waitforblock):
how long the node holds the request before it answers, in milliseconds.
The client's deadline must be at least this plus LONG_POLL_MARGIN_MS.
One JSON-RPC call: the method, its positional parameters, and the parser that validates and converts its result. Build one with a function from requests; pass it to
QbitRpcClient.batch, or let a typed client method build and send it.