ots
ots_getTransactionBySenderAndNonce
Returns the transaction hash for a given sender address and nonce. Useful for finding a specific transaction without scanning blocks.
Returns the transaction hash for a given sender address and nonce. Useful for finding a specific transaction without scanning blocks.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Sender address. |
| 2 | number | Transaction nonce (as integer, not hex). |
Returns
| Type | Description |
|---|---|
string | Transaction hash, or null if not found. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"ots_getTransactionBySenderAndNonce","params":["0x22f2dcff5ad78c3eb6850b5cb951127b659522e6", 0],"id":1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xe92bfc194a46e254244a83d8f1d07475cc28c871c12f53c3f9257d3af18e91b5"
}
TRY IT
Notes
- The nonce parameter must be a plain integer (e.g.
0,42), not a hex string. - Returns
nullif no transaction exists for that sender/nonce combination. - Requires the OTS address appearance index.
ots_getApiLevel
Returns the current Otterscan API level supported by the node. This is used by Otterscan to determine which features are available.
ots_getBlockDetailsByHash
Returns extended block details by block hash, including transaction count and uncle count. Like ots_getBlockDetails but addressed by hash instead of number.
