tx
Tx module allows you to sign or broadcast transactions
Available Commands
Name | Description |
---|---|
sign | Sign transactions generated offline |
broadcast | Broadcast a signed transaction to the network |
multi-sign | Generate multisig signatures for transactions generated offline |
tx | Query for a transaction by hash in a committed block |
txs | Search for transactions that match the exact given events where results are paginated |
uptickd tx sign
Sign transactions in generated offline file. The file created with the --generate-only flag.
Flags
Name, shorthand | Type | Required | Default | Description |
---|---|---|---|---|
--append | bool | TRUE | TRUE | Attach a signature to an existing signature. |
--from | string | TRUE | Key name for signature | |
--offline | bool | TRUE | Offline mode. | |
--signature-only | bool | TRUE | Print only the generated signature, then exit | |
--multisig | string | TRUE | Address of the multisig account on behalf of which the transaction shall be signed |
Generate an offline tx
TIP
You can generate any type of txs offline by appending the flag
--generate-only
We use a transfer tx in the following examples:
Sign tx offline
uptickd tx broadcast
This command is used to broadcast an offline signed transaction to the network.Broadcast offline signed transaction
uptickd tx multisign
Sign a transaction by multiple accounts. The tx could be broadcasted only when the number of signatures meets the multisig-threshold.
Sign the multisig txQuery the multisig address
Sign the unsigned.json
Assume the multisig-threshold is 2, here we sign the unsigned.json
by 2 of the signersSign the tx by signer-1:
Sign the tx by signer-2:
Merge the signaturesMerge all the signatures into signed.json
Now you can broadcast the signed tx.
uptickd query tx
uptickd query txs
Last updated