eth_getTransactionByBlockNumberAndIndex
Returns the information about a transaction requested by the block number and index of which it was mined.
- CURL
curl --request POST \
     --url https://evm.confluxrpc.com \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [null,null],
  "method": "eth_getTransactionByBlockNumberAndIndex"
}'
Params
blocknumber required
Block Number or Tags
oneOf
- U64
- BlockHash
- BlockNumber
- string
type : string
Pattern : 
^0x([1-9a-f][0-9a-f]{0,15}|0)$type : object
- blockHash string requiredtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- requireCanonical booleantype : boolean
type : object
- blockNumber string requiredtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
type : string
Possible values : 
- earliest
- latest
- pending
index required
Schema
type : number
Result
Transaction
type : object
- accessList accessListtype : array- items[x]AccessListItemtype : object- address addresstype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- storageKeys storageKeystype : array- items[x]H256type : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
 
 
 
- blockHash blockHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- blockNumber blockNumbertype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- chainId chainIdtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- creates createstype : stringPattern :- ^0x[0-9,a-f,A-F]{40}$
- from fromtype : stringPattern :- ^0x[0-9,a-f,A-F]{40}$
- gas gastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- gasPrice gasPricetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- hash hashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- input inputtype : stringPattern :- ^0x[0-9a-f]*$
- maxFeePerGas maxFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- maxPriorityFeePerGas maxPriorityFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- nonce noncetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- publicKey publicKeytype : stringPattern :- ^0x[0-9,a-f,A-F]{128}$
- r rtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- raw rawtype : stringPattern :- ^0x[0-9a-f]*$
- s stype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- standardV standardVtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- status statustype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- to totype : stringPattern :- ^0x[0-9,a-f,A-F]{40}$
- transactionIndex transactionIndextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- transactionType transactionTypetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- v vtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- value valuetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- yParity yParitytype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$