curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getTransactionError",
"params": [
"0x9e63085271890a141297039b3b711913699f1ee4db1acb667ad7ce304772036b"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000..."
}
Given a transaction hash, returns its raw revert reason.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getTransactionError",
"params": [
"0x9e63085271890a141297039b3b711913699f1ee4db1acb667ad7ce304772036b"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000..."
}
ots_getTransactionError:params[]: 32 Bytes - Hash of the transaction.“0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000135472616e73616374696f6e20746f6f206f6c6400000000000000000000000000”.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getTransactionError",
"params": [
"0x9e63085271890a141297039b3b711913699f1ee4db1acb667ad7ce304772036b"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000..."
}
Was this page helpful?