starknet_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

🚧

NOTE: starknet_getTransactionReceipt is not available for pending transactions.

Parameters

Object NameRequiredTypeDetail
TRANSACTION HASHStringHash of a transaction.
"params": [
    "0x16d735cd571db7b3aaea7da0c550ec16d19d29b45ec2c4ec7216c7123e5565"
]

Result

A transaction receipt object.

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
    "jsonrpc": "2.0",
    "method": "starknet_getTransactionReceipt",
    "params": [
        "0x16d735cd571db7b3aaea7da0c550ec16d19d29b45ec2c4ec7216c7123e5565"
    ],
    "id": 1
}'

Return

{
    "jsonrpc": "2.0",
    "result": {
        "txn_hash": "0x16d735cd571db7b3aaea7da0c550ec16d19d29b45ec2c4ec7216c7123e5565",
        "actual_fee": "0x41f9a62b52076",
        "status": "ACCEPTED_ON_L2",
        "status_data": "",
        "messages_sent": [],
        "events": [
            {
                "from_address": "0x46bfa580e4fa55a38eaa7f51a3469f86b336eed59a6136a07b7adcd095b0eb2",
                "keys": [
                    "0x2563683c757f3abe19c4b7237e2285d8993417ddffe0b54a19eb212ea574b08"
                ],
                "data": [
                    "0x27fb5a7be4707e2b1fe653e7296ad30114596fafdd3fbc3f9b92a0551ff18ec",
                    "0x0",
                    "0x72ddb44a311d0a632af4981bfd31dc49b9e69fde596a13efbbbb86287f08f92",
                    "0x3",
                    "0x746861486f6d6579",
                    "0x54501000000000000000000000000",
                    "0x4c697661ef",
                    "0x53901000000000000000000000000",
                    "0x4465656e204275726269676f",
                    "0x54801000000000000000000000000",
                    "0x3",
                    "0x1",
                    "0x0",
                    "0x1",
                    "0x0",
                    "0x1",
                    "0x0"
                ]
            },
            ...
            {
                "from_address": "0x18c71bcf1ecd11ca3d05962795012c7ab478db766425ab88886f2f663e1d533",
                "keys": [
                    "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1"
                ],
                "data": [
                    "0x16d735cd571db7b3aaea7da0c550ec16d19d29b45ec2c4ec7216c7123e5565",
                    "0x0"
                ]
            }
        ]
    },
    "id": 1
}
Language
Click Try It! to start a request and see the response here!