Build a JSON-RPC error object for a transaction error.
Declared in <rpc/util.h>
UniValue
JSONRPCTransactionError(
node::TransactionError terr,
std::string const& err_string = "");
A JSON-RPC error object.
| Name | Description |
|---|---|
| terr | The transaction error to report. |
| err_string | Optional additional error text. |