Skip to main content

transaction

Usage: pmc transaction [OPTIONS] COMMAND [ARGS]...

Manage transactions

╭─ Options ───────────────────────────────────────────────────────────────────╮
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────╮
│ view View a saved transaction │
│ sign Sign a saved transaction with your key(s) │
│ send Send a transaction │
╰─────────────────────────────────────────────────────────────────────────────╯

The transaction command (pmc transaction) consists of sub-commands to interact with transactions. For example, send transactions, sign transactions, and view transaction details.

transaction send

Usage: pmc transaction send [OPTIONS] FILE

Send a transaction

╭─ Configuration Properties ──────────────────────────────────────────────────╮
│ -cfg, --config=CONFIG Alternate path for client configuration file │
│ -s, --settings=SETTINGS Alternate path for project settings file │
│ --lookup-brid Ignore any 'brid' property in configuration file, │
│ always perform lookup │
│ --lookup-nodes / --no-lookup-nodes │
│ Lookup system cluster signer nodes for sending │
│ transactions to (default: yes) │
│ --network=TEXT Target network to make requests to (if chromia.yml│
│ is configured) │
│ --secret=PATH Path to secret file (pubkey/privkey) │
│ --key-id=KEY_ID Key ID of the keypair to use │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ -sig, --signature=PATH signature file │
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Arguments ─────────────────────────────────────────────────────────────────╮
│ FILE transaction file, or - for STDIN │
╰─────────────────────────────────────────────────────────────────────────────╯

The send command (pmc transaction send) sends a transaction to the network.

transaction sign

Usage: pmc transaction sign [OPTIONS] FILE

Sign a saved transaction with your key(s)

╭─ Configuration Properties ──────────────────────────────────────────────────╮
│ -cfg, --config=CONFIG Alternate path for client configuration file │
│ -s, --settings=SETTINGS Alternate path for project settings file │
│ --lookup-brid Ignore any 'brid' property in configuration file, │
│ always perform lookup │
│ --lookup-nodes / --no-lookup-nodes │
│ Lookup system cluster signer nodes for sending │
│ transactions to (default: yes) │
│ --network=TEXT Target network to make requests to (if chromia.yml│
│ is configured) │
│ --secret=PATH Path to secret file (pubkey/privkey) │
│ --key-id=KEY_ID Key ID of the keypair to use │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --target=PATH Path where transaction file should be saved (default: │
│ /opt/chromaway/postchain) │
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Arguments ─────────────────────────────────────────────────────────────────╮
│ FILE transaction file, or - for STDIN │
╰─────────────────────────────────────────────────────────────────────────────╯

The sign command (pmc transaction sign) signs a transaction with your private key.

transaction view

Usage: pmc transaction view [OPTIONS] FILE

View a saved transaction

╭─ Options ───────────────────────────────────────────────────────────────────╮
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Arguments ─────────────────────────────────────────────────────────────────╮
│ FILE transaction file, or - for STDIN │
╰─────────────────────────────────────────────────────────────────────────────╯

The view command (pmc transaction view) displays details about a specific transaction.