Parameters
chainId
string
default:"starknet-sepolia"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"starknet_getTransactionByBlockIdAndIndex"
required
JSON-RPC method name.
Parameters for starknet_getTransactionByBlockIdAndIndex: [block_id].Parameters for starknet_getTransactionByBlockIdAndIndex:params.block_id: BlockID object containing hash and number.params.index: Index of the transaction within the specified block.
Returns
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=starknet-sepolia \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getTransactionByBlockIdAndIndex",
"params": {
"block_id": {
"block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4"
},
"index": 1
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "INVOKE",
"transaction_hash": "0x5fb5b63f0226ef426c81168d0235269398b63aa145ca6a3c47294caa691cfdc",
"max_fee": "0x1ff973cafa7fff",
"version": "0x0",
"signature": [
"0x5a1c0af2b96c461a9753e383107e2bba1849cdf6029ffaa2b97533ada03789f",
"0x7261a61b45dcfe48d85fb6a687ed6a888816ba601871679dd32dcb99652de84"
],
"nonce": "0x0",
"contract_address": "0x7c57808b9cea7130c44aab2f8ca6147b04408943b48c6d8c3c83eb8cfdd8c0b",
"entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad",
"__truncated": true
}
}