rsk

Rsk (RSK)

Method: POST eth_getTransactionByBlockNumberAndIndex

dropdown
POST

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

QUANTITY - integer

Transaction index position.

Request

curl --location --request POST 'https://rsk.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["latest", "0x0"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0x45927593e1598fc382102e6971d8d1304b5c7ea9092ce1b2e409599cfc2d52c6",
        "blockNumber": "0x383bc7",
        "from": "0x97b614a72429f78c7da4bb3124dac0fe03cfbd25",
        "gas": "0x444b7",
        "gasPrice": "0x3e2396b",
        "hash": "0x63b2654baf44c76b7796639ae41d8f13a1879120498a98b20c84358d6cd581ad",
        "input": "0xb37a4831000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000128760f05c90000000000000000000000000000000000000000000000000013fe0ea2567127c470000000000000000000000000000000000000000000000000000000000000003000000000000000000000000542fda317318ebf1d3deaf76e0b632741a7e677d00000000000000000000000009c5faf7723b13434abdf1a65ab1b667bc02a902000000000000000000000000efc78fc7d48b64958315949279ba181c2114abbd",
        "nonce": "0x3",
        "r": "0x7a35dd5dbdc17026c57a72d27c58173696fa071d05b2d919c54188337a9516db",
        "s": "0x1f94ca49710f4256e7ec23ab556e90e5673cee80629ca07f8ed7d39ca8e3e45",
        "to": "0xa917bf723433d020a15629eba71f6c2a6b38e52d",
        "transactionIndex": "0x0",
        "v": "0x60",
        "value": "0x128760f05c9000"
    }
}