Skip to main content

starknet_getTransactionReceipt RPC Method

Returns the transaction receipt by the transaction hash.

Updated on
Mar 18, 2024

starknet_getTransactionReceipt RPC Method

Parameters

transaction_hash
string
REQUIRED
The hash of the requested transaction

Returns

result
object
The result object which contains one of the following object:
TXN_RECEIPT
object
The transaction reciept object which contains one of the following objects:
INVOKE_TXN_RECEIPT
object
The invoke transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'INVOKE'
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
L1_HANDLER_TXN_RECEIPT
object
The L1 handler transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'L1_HANDLER'
message_hash
string
The message hash as it appears on the L1 core contract
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
DECLARE_TXN_RECEIPT
object
The declare transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'DECLARE'
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
DEPLOY_TXN_RECEIPT
object
The deploy transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'DEPLOY'
contract_address
string
The address of the deployed contract
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
DEPLOY_ACCOUNT_TXN_RECEIPT
object
The deploy account transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'DEPLOY_ACCOUNT'
contract_address
string
The address of the deployed contract
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
PENDING_TXN_RECEIPT
object
The pending transaction reciept object which contains one of the following objects:
PENDING_INVOKE_TXN_RECEIPT
object
The pending invoke transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'INVOKE'
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
The number of Pedersen builtin instances
poseidon_builtin_applications
integer
The number of Poseidon builtin instances
ec_op_builtin_applications
integer
The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
The number of ECDSA builtin instances
bitwise_builtin_applications
integer
The number of BITWISE builtin instances
keccak_builtin_applications
integer
The number of KECCAK builtin instances
segment_arena_builtin
integer
The number of accesses to the segment arena
PENDING_L1_HANDLER_TXN_RECEIPT
object
The pending L1 handler transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'L1_HANDLER'
message_hash
string
The message hash as it appears on the L1 core contract
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
PENDING_DECLARE_TXN_RECEIPT
object
The pending declare transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'DECLARE'
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT
object
The pending deploy account transaction receipt object which contains one of the following object:
type
string
The type. The values it can take includes 'DEPLOY_ACCOUNT'
contract_address
string
The address of the deployed contract
transaction_hash
string
The hash identifying the transaction
actual_fee
string
The fee that was charged by the sequencer
amount
string
The amount paid
unit
string
The units in which the fee is given
execution_status
string
The execution status. Possible values includes - 'SUCCEEDED' or 'REVERTED'
finality_status
string
The finality status of the tx. Possible values includes - 'ACCEPTED_ON_L2' or 'ACCEPTED_ON_L1'
messages_sent
array
The Messages sent
from_address
string
The address of the L2 contract sending the message
to_address
string
The target L1 address the message is sent to
payload
string
The payload of the message
revert_reason
string
(Optional) The revert reason for the failed execution
events
array
The events emitted as part of this transaction
from_address
string
The address of the L2 contract sending the message
keys
array
The keys associated with the event
data
array
The data associated with the event
execution_resources
string
The resources consumed by the transaction
data_availability
object
The data-availability resources of this transaction, which contains the following fields:
l1_gas
integer
The gas consumed by this transaction's data
l1_data_gas
integer
The data gas consumed by this transaction's data, 0 if it uses gas for DA
steps
integer
The number of Cairo steps used
memory_holes
integer
(Optional) The number of unused memory cells (each cell is roughly equivalent to a step)
range_check_builtin_applications
integer
(Optional) The number of RANGE_CHECK builtin instances
pedersen_builtin_applications
integer
(Optional) The number of Pedersen builtin instances
poseidon_builtin_applications
integer
(Optional) The number of Poseidon builtin instances
ec_op_builtin_applications
integer
(Optional) The number of EC_OP builtin instances
ecdsa_builtin_applications
integer
(Optional) The number of ECDSA builtin instances
bitwise_builtin_applications
integer
(Optional) The number of BITWISE builtin instances
keccak_builtin_applications
integer
(Optional) The number of KECCAK builtin instances
segment_arena_builtin
integer
(Optional) The number of accesses to the segment arena
Request
1
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/' \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"id": 1,
6
"jsonrpc": "2.0",
7
"method": "starknet_getTransactionReceipt",
8
"params": [
9
"0x778bed983dc662706c623db1b339e2674ebb35da917897738a1a6360186df25"
10
]
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free