Trust Engine submit-transaction
Submit a signed transaction to the networkThe submit-transaction command allows you to submit a signed transaction to the Solana network. This is typically used when a previous command (like register) returns a transaction that requires client-side signing before submission. To use it, run the following command from your terminal
Options
| Option | Description |
|---|---|
-t, --transaction <data> | Signed transaction in base64 format |
--json | Output the result as JSON |
Example
Submit a signed transaction:When to Use
This command is typically used in a two-step process:- Step 1: Run a command like
registerthat requires client-side signing - Step 2: Sign the returned transaction with your wallet
- Step 3: Submit the signed transaction using this command
register returns:
- Copy the base64 transaction
- Sign it with your wallet software
- Submit the signed transaction using this command
