Squads V3 Docs
Search…
⌃K

TX Builder

Learn how to use arbitrary instructions within Squads.
In Squad V3 users can create custom transactions and populate them with the arbitrary instructions through the Transaction Builder to interact with any programs on Solana directly from a Squad.
To create a draft custom transaction:
  1. 1.
    Navigate to the “TX Builder” tab and click “Create transaction”.
TX Builder tab
2. Insert the name, click on “Create transaction” button and sign the transaction with your wallet.
Create a new transaction pop-up
3. After you confirm the transaction through your wallet, the draft transaction will appear inside the list.
Draft created
All custom transactions are first saved as a draft, which needs to be populated with the instructions data before the launch.
Transaction drafts can be populated with instructions to interact with:
  1. 1.
    Anchor programs (with IDL).
  2. 2.
    Solana programs (written in Rust).
  3. 3.
    Validators (using predefined templates).
To populate the custom transaction draft for programs written in Anchor:
  1. 1.
    Click on the transaction, click “Add instruction” and insert the Anchor Program ID. Click "Next".
Add new instruction pop-up
2. Select the instruction from the list and click "Next".
Select instruction pop-up
3. Populate the Accounts with the required data and click "Add Instruction" and sign a pop-up from your wallet.
Add new instruction data pop-up
4. Finally click on “Initiate Transaction” to launch a transaction inside your Squad.
Populated custom transaction draft
5. You will be carried over to the transaction which needs to be signed to reach the confirmation threshold. The custom transaction with arbitrary instructions will be launched upon transaction execution.
The custom transaction is ready for execution
To populate the custom transaction draft for programs written in Rust:
  1. 1.
    Click on the transaction, click “Add instruction”, click on the switcher "Solana program ID" and insert the ID. Click "Next".
Solana program ID pop-up
2. Insert the account info and then populate desired data options (Buffer or Raw). Then click "Add instruction".
Add new instruction data pop-up
3. After the transaction is populated click on the "Initiate Transaction" button to launch a transaction side your Squad. You will be carried over to the transaction which needs to be signed to reach the confirmation threshold. The custom transaction with arbitrary instructions will be launched upon transaction execution.
To interact with the validators and stake pools using predefined templates:
  1. 1.
    Click on "Add instruction".
  2. 2.
    Select from the list the template you want to use: Stake program, Vote program or Stake Pool program.
Predefined templates
Stake program template allows you to interact with the validators to deactivate or withdraw staked SOL.
Vote program template allows you to change the withdraw authority, withdraw rewards earned from staking and change commission of the validator.
Stake pool program template allows you to create a stake pool, set the manager, fees and funding authority of the stake pool.
3. Populate any of the templates with the required data and launch a transaction. Once the transaction meets confirmation threshold and is executed, the interaction with the validator or the stake pool will be made.