Skip to main content

ots_getTransactionError RPC Method

Returns the raw revert reason of the given transaction

Updated on
Nov 2, 2023

ots_getTransactionError RPC Method

Parameters

txhash
string
REQUIRED
The transaction hash

Returns

result
string
The hexadecimal-formatted error blob or simply a 0x if the transaction was sucessfully executed
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"ots_getTransactionError","params":["0xcd7c73176e48f01bc7c3f563f674302a3421834e4bc29c2c182125dded44b377"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free