curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "ots_getTransactionError",
"params": [
"0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381"
],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "execution reverted: insufficient balance"
}
Retrieve detailed error information for a failed transaction on Hyperliquid EVM. Get specific revert reasons and execution failures.
curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "ots_getTransactionError",
"params": [
"0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381"
],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "execution reverted: insufficient balance"
}
ots_getTransactionError
JSON-RPC method retrieves the raw revert reason for failed transactions on the Hyperliquid EVM blockchain. This Otterscan-specific method provides detailed error messages from smart contract failures, helping developers debug transaction issues.
result
— hex-encoded error message from the revert reason, or null
if not availablecurl -X POST https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "ots_getTransactionError",
"params": ["0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001e496e73756666696369656e742062616c616e636520666f72207472616e736665720000000000000000000000000000000000000000000000000000000000"
}
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
0x08c379a0...
— Standard revert with string messageots_getTransactionError
method is essential for:
Successful response with transaction error details
The response is of type object
.