Node reference
Build instructions
Create reusable Solana instructions
Explore Solana automation and workflows.
Build instructions creates an instruction value from ordered instruction rows. Building instructions does not need a wallet signature or an RPC request.
Try it step by step
- Start with the empty instruction list.
- Add instructions, choose each instruction from its dropdown, and fill its fields.
- Drag rows into execution order. Reference the output directly in Build transaction or append it to a list stored in State.
What to expect
One value of type instruction, containing every built row and its source node. Variable and State preserve this type; appending it adds one value to the list.
Things to check
- SOL transfers use whole lamports; token transfers and burns use whole token base units. Keep large amounts as decimal strings.
- Checked token transfers use token account addresses. Create associated account derives its address from the wallet, mint and token program.
- An instruction value can contain any supported combination of rows. Its type does not depend on the number or kind of rows.
- Use Custom instruction for program-specific account keys and encoded bytes. Keep account keys in the order expected by the program; instruction rows execute in their displayed order.
Keep learning
Network setup: This node uses solana. See connections for RPC setup and Test mode for network selection.
Parameters
| Setting | Default | What it does |
|---|---|---|
| Instructions | [] | Add instructions and arrange their execution order. Set the transaction compute budget and priority fee in Build transaction. |
| On failure | stop | Choose whether a failed execution stops the workflow or only ends this path. |
| Retry attempts | 0 | How many additional attempts to make after the first failure. |
| Node name | (empty) | Custom display name. References and connections keep their existing identifiers. |
System: transfer SOL
Instruction type: transferSol.
| Field | What it does |
|---|---|
Sender (source) | System wallet sending SOL. This wallet must sign. Default: {{global.main_wallet}}. |
Recipient (destination) | Address receiving the SOL. |
Lamports (amount) | Whole lamports: 1 SOL = 1,000,000,000 lamports. Use a string for large amounts. |
Token: transfer checked
Instruction type: transferChecked.
| Field | What it does |
|---|---|
Token program (tokenProgram) | Must match the program that owns this mint and token account. Choices: SPL Token, Token-2022. Default: SPL Token. |
Source token account (source) | Token account sending the tokens, not the owner wallet. |
Mint (mint) | Mint address of the token. |
Destination token account (destination) | Existing token account for this mint. Add Create associated token account first if needed. Tokens requiring extra accounts, such as transfer hooks, need a Custom instruction. |
Authority (authority) | Owner or delegate whose signature authorizes this instruction. Default: {{global.main_wallet}}. |
Raw amount (amount) | Whole base units, without decimal scaling. Use a string for large amounts. |
Decimals (decimals) | Actual mint decimals, checked by the token program. |
Token: create ATA (idempotent)
Instruction type: createAssociatedTokenIdempotent.
| Field | What it does |
|---|---|
Token program (tokenProgram) | Must match the program that owns this mint and token account. Choices: SPL Token, Token-2022. Default: SPL Token. |
Rent payer (payer) | System wallet funding the account rent. This wallet must sign. Default: {{global.main_wallet}}. |
Token account owner (owner) | Wallet or PDA that will own the account. Its signature is not required. Default: {{global.main_wallet}}. |
Mint (mint) | Existing mint. The associated token account (ATA) is derived from the owner, mint, and token program. Succeeds if the matching account already exists. |
Token: burn
Instruction type: burn.
| Field | What it does |
|---|---|
Token program (tokenProgram) | Must match the program that owns this mint and token account. Choices: SPL Token, Token-2022. Default: SPL Token. |
Token account (account) | Token account address, not the wallet or mint address. |
Mint (mint) | Mint address of the token. |
Authority (authority) | Owner or delegate whose signature authorizes this instruction. Default: {{global.main_wallet}}. |
Raw amount (amount) | Whole base units, without decimal scaling. Use a string for large amounts. |
Token: burn checked
Instruction type: burnChecked.
| Field | What it does |
|---|---|
Token program (tokenProgram) | Must match the program that owns this mint and token account. Choices: SPL Token, Token-2022. Default: SPL Token. |
Token account (account) | Token account address, not the wallet or mint address. |
Mint (mint) | Mint address of the token. |
Authority (authority) | Owner or delegate whose signature authorizes this instruction. Default: {{global.main_wallet}}. |
Raw amount (amount) | Whole base units, without decimal scaling. Use a string for large amounts. |
Decimals (decimals) | Actual mint decimals, checked by the token program. |
Token: close account
Instruction type: closeAccount.
| Field | What it does |
|---|---|
Token program (tokenProgram) | Must match the program that owns this mint and token account. Choices: SPL Token, Token-2022. Default: SPL Token. |
Token account (account) | Token account address, not the wallet or mint address. |
Rent destination (destination) | Wallet receiving the closed account’s lamports. Default: {{global.main_wallet}}. |
Close authority (authority) | Explicit close authority, or the token account owner when none is set. Default: {{global.main_wallet}}. |
Custom instruction
Instruction type: custom.
| Field | What it does |
|---|---|
Program address (programAddress) | Executable program that receives this instruction. |
Account keys (accounts) | Accounts in the exact order expected by the program. Duplicates are allowed; signer and writable permissions are combined across the transaction. Default: []. |
Address (accounts[].address) | Account address expected at this position. |
Signer (accounts[].isSigner) | This account must sign the transaction. |
Writable (accounts[].isWritable) | The program may modify this account. |
Data encoding (dataEncoding) | Encoding of the instruction bytes below. Changing this selection does not convert the data. Choices: Base64, Hex. Default: Base64. |
Data (data) | Program-specific bytes, including any instruction discriminator. Use padded Base64 or even-length hex without 0x; empty means no data. |
On failure: Choices: Stop workflow (stop), Continue (continue). Available under More options.
Retry attempts: Available under More options. Limits: minimum 0.
Node name: Double-brace expressions are not resolved in this field.
Inputs
| Port | Value |
|---|---|
in | any |
Outputs
| Port | Value | Description |
|---|---|---|
out | instruction | An instruction value containing all the built rows. Its type and source are preserved through Variable, append and State. |
out fields
| Field | Type | Description |
|---|---|---|
instructions | array | Built instruction details. |
source.name | string | Originating node name. |