LLM Notice: This documentation site supports content negotiation for AI agents. Request any page with Accept: text/markdown or Accept: text/plain header to receive Markdown instead of HTML. Alternatively, append ?format=md to any URL. All markdown files are available at /md/ prefix paths. For all content in one file, visit /llms-full.txt
Skip to main content

Get a Transaction

The Flow CLI provides a command to fetch a transaction that was previously submitted to an Access API.


_10
flow transactions get <tx_id>

Example use


_42
> flow transactions get 40bc4b100c1930c61381c22e0f4c10a7f5827975ee25715527c1061b8d71e5aa --network mainnet
_42
_42
Status ✅ SEALED
_42
ID 40bc4b100c1930c61381c22e0f4c10a7f5827975ee25715527c1061b8d71e5aa
_42
Payer 18eb4ee6b3c026d2
_42
Authorizers [18eb4ee6b3c026d2]
_42
_42
Proposal Key:
_42
Address 18eb4ee6b3c026d2
_42
Index 11
_42
Sequence 17930
_42
_42
Payload Signature 0: 18eb4ee6b3c026d2
_42
Payload Signature 1: 18eb4ee6b3c026d2
_42
Envelope Signature 0: 18eb4ee6b3c026d2
_42
Signatures (minimized, use --include signatures)
_42
_42
Events:
_42
Index 0
_42
Type A.1654653399040a61.FlowToken.TokensWithdrawn
_42
Tx ID 40bc4b100c1930c61381c22e0f4c10a7f5827975ee25715527c1061b8d71e5aa
_42
Values
_42
- amount (UFix64): 0.00100000
_42
- from ({}?): 18eb4ee6b3c026d2
_42
_42
Index 1
_42
Type A.1654653399040a61.FlowToken.TokensDeposited
_42
Tx ID 40bc4b100c1930c61381c22e0f4c10a7f5827975ee25715527c1061b8d71e5aa
_42
Values
_42
- amount (UFix64): 0.00100000
_42
- to ({}?): 5068e27f275c546c
_42
_42
Index 2
_42
Type A.18eb4ee6b3c026d2.PrivateReceiverForwarder.PrivateDeposit
_42
Tx ID 40bc4b100c1930c61381c22e0f4c10a7f5827975ee25715527c1061b8d71e5aa
_42
Values
_42
- amount (UFix64): 0.00100000
_42
- to ({}?): 5068e27f275c546c
_42
_42
Code (hidden, use --include code)
_42
_42
Payload (hidden, use --include payload)

Arguments

Transaction ID

  • Name: <tx_id>
  • Valid Input: transaction ID.

The first argument is the ID (hash) of the transaction.

Flags

Include fields

  • Flag: --include
  • Valid inputs: code, payload, signatures

Specify fields to include in the result output. Applies only to the text output.

Wait for seal

  • Flag: --sealed
  • Default: false

Indicate whether to wait for the transaction to be sealed before itdisplays the result.

Exclude fields

  • Flag: --exclude
  • Valid inputs: events

Specify fields to exclude from the result output. Applies only to the text output.

Host

  • Flag: --host
  • Valid inputs: an IP address or hostname.
  • Default: 127.0.0.1:3569 (Flow Emulator)

Specify the hostname of the Access API that will be used to execute the command. This flag overrides any host defined by the --network flag.

Network key

  • Flag: --network-key
  • Valid inputs: A valid network public key of the host in hex string format

Specify the network public key of the Access API that will be used to create a secure GRPC client when you execute the command.

Network

  • Flag: --network
  • Short Flag: -n
  • Valid inputs: the name of a network defined in the configuration (flow.json)
  • Default: emulator

Specify which network you want the command to use for execution.

Filter

  • Flag: --filter
  • Short Flag: -x
  • Valid inputs: a case-sensitive name of the result property.

Specify any property name from the result you want to return as the only value.

Output

  • Flag: --output
  • Short Flag: -o
  • Valid inputs: json, inline

Specify the format of the command results.

Save

  • Flag: --save
  • Short Flag: -s
  • Valid inputs: a path in the current filesystem.

Specify the filename where you want to save the result.

Log

  • Flag: --log
  • Short Flag: -l
  • Valid inputs: none, error, debug
  • Default: info

Specify the log level. Control how much output you want to see during command execution.

Configuration

  • Flag: --config-path
  • Short Flag: -f
  • Valid inputs: a path in the current filesystem.
  • Default: flow.json

Specify the path to the flow.json configuration file. You can use the -f flag multiple times to merge several configuration files.

Version check

  • Flag: --skip-version-check
  • Default: false

Skip version check during start up to speed up process for slow connections.