JSONRPCTransactionError

Build a JSON-RPC error object for a transaction error.

Synopsis

Declared in <rpc/util.h>

UniValue
JSONRPCTransactionError(
    node::TransactionError terr,
    std::string const& err_string = "");

Return Value

A JSON-RPC error object.

Parameters

NameDescription
terrThe transaction error to report.
err_stringOptional additional error text.