eth_getTransactionByBlockHashAndIndex
Returns the information about a transaction requested by the block hash 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_getTransactionByBlockHashAndIndex"
}'
Params
blockhash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$
index required
Schema
type : number
Result
Transaction
type : object
accessList accessList
type : arrayitems[x]
AccessListItemtype : objectaddress address
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
storageKeys storageKeys
type : arrayitems[x]
H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
blockNumber blockNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
chainId chainId
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
creates creates
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
from from
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
gas gas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasPrice gasPrice
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
hash hash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
input input
type : stringPattern :^0x[0-9a-f]*$
maxFeePerGas maxFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
maxPriorityFeePerGas maxPriorityFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
nonce nonce
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
publicKey publicKey
type : stringPattern :^0x[0-9,a-f,A-F]{128}$
r r
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
raw raw
type : stringPattern :^0x[0-9a-f]*$
s s
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
standardV standardV
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
status status
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
to to
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
transactionIndex transactionIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
transactionType transactionType
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
v v
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
value value
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
yParity yParity
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$