Daemon-rpc doc: Add correct output description for /sendrawtransaction
Created by: cryptoshrimpi
URL: https://getmonero.org/knowledge-base/developer-guides/daemon-rpc#sendrawtransaction
The output of /sendrawtransaction
is described as:
Outputs:
- status - string; General RPC error code. "OK" means everything looks good.
In Monero v0.10.1.0 the actual output for an invalid tx_as_hex
input value such as 'abc'
is
{ double_spend: false,
fee_too_low: false,
invalid_input: false,
invalid_output: false,
low_mixin: false,
not_rct: false,
not_relayed: false,
overspend: false,
reason: '',
status: 'Failed',
too_big: false }
This leads to the following type pattern:
double_spend: boolean;
fee_too_low: boolean;
invalid_input: boolean;
invalid_output: boolean;
low_mixin: boolean;
not_rct: boolean;
not_relayed: boolean;
overspend: boolean;
reason: string;
status: string;
too_big: boolean;