curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "ots_getTransactionBySenderAndNonce",
"params": [
"0x5555555555555555555555555555555555555555",
0
],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381",
"nonce": "0x0",
"from": "0x5555555555555555555555555555555555555555"
}
}
Find a transaction by sender address and nonce on Hyperliquid EVM. Useful for tracking specific account transactions.
curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "ots_getTransactionBySenderAndNonce",
"params": [
"0x5555555555555555555555555555555555555555",
0
],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381",
"nonce": "0x0",
"from": "0x5555555555555555555555555555555555555555"
}
}
ots_getTransactionBySenderAndNonce
JSON-RPC method retrieves a transaction hash by specifying the sender address and nonce on the Hyperliquid EVM blockchain. This Otterscan-specific method helps locate transactions when you know the sender and nonce but not the transaction hash.
result
— the transaction hash (32-byte hex string), or null
if not foundcurl -X POST https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "ots_getTransactionBySenderAndNonce",
"params": ["0x5555555555555555555555555555555555555555", 0],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381"
}
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
// Find transactions with nonces 0 through 5
for (let nonce = 0; nonce <= 5; nonce++) {
const params = ["0x5555555555555555555555555555555555555555", nonce];
// Make RPC call with params
}
ots_getTransactionBySenderAndNonce
method is essential for:
Successful response with transaction data
The response is of type object
.