tx
Tx module allows you to sign or broadcast transactions
Available Commands
Sign transactions generated offline
Broadcast a signed transaction to the network
Generate multisig signatures for transactions generated offline
Query for a transaction by hash in a committed block
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.
uptickd tx sign [file] [flags]
Flags
Name, shorthand
Type
Required
Default
Description
Attach a signature to an existing signature.
Print only the generated signature, then exit
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.jsonAssume 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