curl --request POST \
--url https://starknet-mainnet.core.chainstack.com/365cf697a3ad6d950b4c4a911e2e4f4d \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getTransactionByHash",
"params": [
"0x295ee040949bd23a4bba5d5fa0d9d776c3b1fc7cafd511d025e689e665d05b2"
]
}'
starknet_getTransactionByHash
curl --request POST \
--url https://starknet-mainnet.core.chainstack.com/365cf697a3ad6d950b4c4a911e2e4f4d \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getTransactionByHash",
"params": [
"0x295ee040949bd23a4bba5d5fa0d9d776c3b1fc7cafd511d025e689e665d05b2"
]
}'
hash
— the string of the transaction hash.transaction
— the details of the transaction, including its sender, receiver, amount, and status.starknet_getTransactionByHash
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_id_by_hash?transactionHash=0x295ee040949bd23a4bba5d5fa0d9d776c3b1fc7cafd511d025e689e665d05b2'
Successful response