Skip to main content
The previous examples of using tx new showed how to create transactions. However, these transactions were immediately ready to be signed and submitted to the network. To avoid this each of the subcommands has the --build-only argument, which as the name suggests only builds the transaction and prints the transaction envelope.

tx sign

Let’s return to the first example of creating bobs account:
would output something like:
You can inspect it with stellar lab! Where you can also sign and send the transaction. However, you can also sign the transaction with the tx sign command. To do this you can pipe the output of the tx new command to the tx sign command:
This should output something like:
You can again view it in lab and see that there is now a signature attached to the transaction envelope.
Or sign with lab! Though currently you must send it from lab and cannot return to the CLI (a work in progress!).

tx send

Finally, to submit the transaction to the network you can use the tx send command. This command will submit the transaction to the network.