Example code for the eth_getTransactionByBlockHashAndIndex json-rpc method. Сomplete guide on how to use eth_getTransactionByBlockHashAndIndex json-rpc in GetBlock.io Web3 documentation.
Parameters
DATA - string
Hash of a block.
QUANTITY - integer
Transaction index position.
Request
wscat -c wss://rsk.getblock.io/YOUR-API-KEY/mainnet/ # wait for connection and send the request body {"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a","0x0"],"id":"getblock.io"}