Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.09 KB

cast-receipt.md

File metadata and controls

52 lines (32 loc) · 1.09 KB

cast receipt

NAME

cast-receipt - Get the transaction receipt for a transaction.

SYNOPSIS

cast receipt [options] tx_hash [field]

DESCRIPTION

Get the transaction receipt for a transaction.

If field is specified, then only the given field of the receipt is displayed.

OPTIONS

Receipt Options

--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.

RPC Options

{{#include ../common/rpc-url-option.md}}

{{#include ../common/display-options.md}}

{{#include common-options.md}}

EXAMPLES

  1. Get a transaction receipt:

    cast receipt $TX_HASH
  2. Get the block number the transaction was included in:

    cast receipt $TX_HASH blockNumber

SEE ALSO

cast, cast call, cast send, cast publish