POST
/
evm
eth_getRawTransactionByBlockNumberAndIndex
curl --request POST \
  --url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getRawTransactionByBlockNumberAndIndex",
  "params": [
    "latest",
    "0x0"
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf86c0185037e11d6008252089433c3321b162edac1fdbb53af2962b2940c07e334880de0b6b3a76400008026a01234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefa0abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}
Returns the raw transaction data by block number and transaction index. Use this method to retrieve the RLP-encoded raw transaction from a specific position within a block identified by its number.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • blockNumber (string, required) — Block number in hex format, or one of the special tags: “earliest”, “latest”, “pending”, or “finalized”
  • transactionIndex (string, required) — The index position of the transaction in the block (hex string)

Returns

Returns the raw transaction data as a hex-encoded string, or null if the block or transaction is not found. The raw transaction data is RLP-encoded and includes all transaction fields in their original binary format.
Transaction indices start from 0x0. Use hex format for the index parameter. Block number can be a hex string (e.g., “0x64”) or special tags like “latest” for the most recent block.

Use cases

  • Latest block analysis — Extract raw transactions from the newest blocks
  • Historical data processing — Process transactions from specific block heights
  • Streaming transaction data — Monitor new transactions as blocks are mined
  • Data pipeline integration — Feed raw transaction data to processing systems
  • Backup and recovery — Create transaction backups in original format
  • Performance testing — Replay transactions for load testing

Body

application/json

Response

200 - application/json

Successful response with raw transaction data

The response is of type object.