Skip to main content
POST

Parameters

string
default:"1"
required
Unique identifier for a blockchain network.
number
default:1
required
Request identifier used to match responses.
string
default:"2.0"
required
JSON-RPC version.
string
default:"ots_getTransactionError"
required
JSON-RPC method name.
object
required
The parameters for the method ots_getTransactionError: [txHash].Positional parameters for ots_getTransactionError:
  • params[]: 32 Bytes - Hash of the transaction.

Returns

string
string containing the hexadecimal-formatted error blob or simply a “0x” if the transaction was successfully executed. It returns “0x” if it failed with no revert reason or out of gas, so make sure to analyze this return value together with the transaction success/fail result. Example: “0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000135472616e73616374696f6e20746f6f206f6c6400000000000000000000000000”.