curl --request POST \
--url https://starknet-mainnet.core.chainstack.com/365cf697a3ad6d950b4c4a911e2e4f4d \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getTransactionByBlockIdAndIndex",
"params": [
{
"block_number": 7015
},
19
]
}'
starknet_getTransactionByBlockIdAndIndex
curl --request POST \
--url https://starknet-mainnet.core.chainstack.com/365cf697a3ad6d950b4c4a911e2e4f4d \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getTransactionByBlockIdAndIndex",
"params": [
{
"block_number": 7015
},
19
]
}'
block_id
— the string of the block ID in which the transaction is included.index
— the integer of the index of the transaction within the block.transaction
— the details of the transaction, including its sender, receiver, amount, and status.starknet_getTransactionByBlockIdAndIndex
is to retrieve the details of a specific transaction. For example, a wallet may use this method to display the details of a user’s past transactions, or a client may use it to verify the status of a transaction.
curl 'https://alpha-mainnet.starknet.io/feeder_gateway/get_transaction_hash_by_id?transactionId=888888'
Successful response