Transactions
rawTxByNumberAndIndex
Getting Started
Smart Contracts
API Libaries
- JavaScript Libraries
- Postman
API Playground
- JSON-RPC Overview
- Addresses
- Blocks
- Transactions
- Gas and Fee
- Txpool
- Debug
- Net
- Miner
- Other
- Conversion
Transactions
rawTxByNumberAndIndex
Returns bytecode for a raw transaction given block number and transaction index.
POST
curl --request POST \
--url https://rpc.quai.network/cyprus1/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "quai_getRawTransactionByBlockNumberAndIndex",
"params": [
"0x12F",
"0x1"
],
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0x00f86c82232824843b9aca00847735940482a41094111a8a2ffb1729497e0cfbfc5fa2e2b405e13ba74f80c080a01c2ae1b000172a500f1a7e6e9265264d9ba9e9edd835411bf4233f3f2b05c7d9a01f9e48da332873ea7514b5ffa17febd543a7a9d0ef20651a4b14a394c0333837",
"id": 1
}
Body
application/json
Response
200 - application/json
Successful response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://rpc.quai.network/cyprus1/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "quai_getRawTransactionByBlockNumberAndIndex",
"params": [
"0x12F",
"0x1"
],
"id": 1
}'
{
"jsonrpc": "2.0",
"result": "0x00f86c82232824843b9aca00847735940482a41094111a8a2ffb1729497e0cfbfc5fa2e2b405e13ba74f80c080a01c2ae1b000172a500f1a7e6e9265264d9ba9e9edd835411bf4233f3f2b05c7d9a01f9e48da332873ea7514b5ffa17febd543a7a9d0ef20651a4b14a394c0333837",
"id": 1
}