2

Where can I find the list of all possible sendrawtransaction RPC error codes & messages?

Such as this: {"code":-22,"message":"TX decode failed. Make sure the tx has at least one input."}

1 Answer 1

2

The code for the _rawtransaction RPCs is in /src/rpc/rawtransaction.cpp including your example of the "TX decode failed" error message.

If you do a Ctrl-F or git grep in that file for JSONRPCError you'll see some of the other error messages but that may not be an exhaustive list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.