cast-receipt - Get the transaction receipt for a transaction.
cast receipt
[options] tx_hash [field]
Get the transaction receipt for a transaction.
If field is specified, then only the given field of the receipt is displayed.
--async
--cast-async
Do not wait for the transaction receipt if it does not exist yet.
Environment: CAST_ASYNC
-c
confirmations
--confirmations
confirmations
Wait a number of confirmations before exiting. Default: 1
.
{{#include ../common/rpc-url-option.md}}
{{#include ../common/display-options.md}}
{{#include common-options.md}}
-
Get a transaction receipt:
cast receipt $TX_HASH
-
Get the block number the transaction was included in:
cast receipt $TX_HASH blockNumber