Transactions
txByBlockAndIndex
Returns transaction data given a block number and the transaction index.
POST
Body
application/json
Available options:
2.0
Example:
"2.0"
The name of the method to be invoked.
Available options:
quai_getTransactionByBlockNumberAndIndex
Example:
"quai_getTransactionByBlockNumberAndIndex"
The block number and transaction index.
Example:
["0x4651", "0x0"]
A unique identifier for the request.
Example:
1
Response
200 - application/json
Successful response
Example:
"2.0"
The Quai EVM transaction data.
Example:
{
"blockHash": "0xc39d41b6a94a3dba16c251dfcdd3e0a2269233dbc7de8f1577fad7fe06ea9cf0",
"blockNumber": "0x4651",
"from": "0x0033D6534AcA0B8a344aA5597133c15DFe787F97",
"gas": "0xdd8b",
"gasPrice": "0x3b9aca00",
"input": "0x",
"nonce": "0x1",
"hash": "0x0006005f22c4c34e57855d9f73ac7356c4f3f6ce56f3d17cd2885bfb8175bc81",
"to": "0x005f644097F8f0E9f996Dca4F4F23aBB6C1Cc8b3",
"transactionIndex": "0x0",
"value": "0x2386f26fc10000",
"type": "0x0",
"accessList": [],
"chainId": "0x3a98",
"v": "0x0",
"r": "0xab70567e26a678164a5afab547c9f09b36f58c4500a56364f9983b5ce6514a8f",
"s": "0x6e0577296ddc4541d287af215e346c8f2932b18313dfcd9d7cbed413807bf35f"
}
Example:
1
Example:
"2.0"
The Quai EVM transaction data.
Example:
{
"blockHash": "0xc39d41b6a94a3dba16c251dfcdd3e0a2269233dbc7de8f1577fad7fe06ea9cf0",
"blockNumber": "0x4651",
"from": "0x0033D6534AcA0B8a344aA5597133c15DFe787F97",
"gas": "0xdd8b",
"gasPrice": "0x3b9aca00",
"input": "0x",
"nonce": "0x1",
"hash": "0x0006005f22c4c34e57855d9f73ac7356c4f3f6ce56f3d17cd2885bfb8175bc81",
"to": "0x005f644097F8f0E9f996Dca4F4F23aBB6C1Cc8b3",
"transactionIndex": "0x0",
"value": "0x2386f26fc10000",
"type": "0x0",
"accessList": [],
"chainId": "0x3a98",
"v": "0x0",
"r": "0xab70567e26a678164a5afab547c9f09b36f58c4500a56364f9983b5ce6514a8f",
"s": "0x6e0577296ddc4541d287af215e346c8f2932b18313dfcd9d7cbed413807bf35f"
}
Example:
1
Example:
"2.0"
The Qi UTXO transaction data.
Example:
{
"blockHash": "0xdc89732771f41975ed3c7e59736a5809a9a168070521d2c1abe3d3f89381ea58",
"blockNumber": "0x15E",
"hash": "0x658265bea1e6c7e1ec0f8d0de737b8d95649532c82f4972a5216516cd70e0d76",
"transactionIndex": "0x2",
"type": "0x2",
"chainId": "0x3a98",
"inputs": [
{
"previousOutPoint": {
"txHash": "0x7f65cccf216ed02cb9ca383b0350f3061e56f25c35d60653ae8eabc4b9cede94",
"index": "0x0"
},
"pubKey": "0x04f5580d95c1134445a7a155f3e20e1512be10e4e678f14d364332b8a8aa87447a814dba304a92a7c75498cae2278557ac0ff6cddf637beb3ec36be0701715c4a7"
}
],
"outputs": [
{
"denomination": "0xe",
"address": "0x00b266e500cd36810df90fdad969695219515925",
"lock": "0x0"
}
],
"utxoSignature": "0x83e10e133b2910b1e73c2fe2494ed8b14a6d2a31c87345577730e613a93e6719d156d8ec5c324c248ca75847a3c9462ce1674eb9eb1fdfc6fea689cba6198c16"
}
Example:
1
Example:
"2.0"
The Etx transaction data.
Example:
{
"blockHash": "0x95296c99a4c5bb79876296be7b1a1506b55596e257867746dc6e22c96025e602",
"blockNumber": "0x18e",
"from": "0x0003e45Aa16163f2663015B6695894D918866D19",
"gas": "0x5208",
"hash": "0x8751004e41a6520343b2e3b3c7181bfaa9f8e63f4c0e3ee595db96c14ab55a51",
"input": "0x01",
"to": "0x0003e45Aa16163f2663015B6695894D918866D19",
"transactionIndex": "0x1a",
"value": "0xf4240",
"type": "0x1",
"accessList": [],
"originatingTxHash": "0x0000875718a41b7d95bfac9848cbbec32b64a3debaf1d76efa8bb4bbecf6f063",
"etxIndex": "0x4",
"etxType": "0x1"
}
Example:
1
Was this page helpful?