Solana Instructions & Signatures
Helper components for constructing program instructions and assembling signature pairs for use with BUILD_SOLANA_TRANSACTION and SIGN_SOLANA_TRANSACTION.
BUILD_SOLANA_INSTRUCTION​
BUILD_SOLANA_INSTRUCTION ComponentBuilds a Solana transaction instruction from a program ID, account metas, and hex-encoded data. The output instruction can be passed into BUILD_SOLANA_TRANSACTION's instructions array.
Config​
None.
Inputs​
| Field | Type | Description |
|---|---|---|
programId | string (base58) | Program to invoke |
keys | AccountMeta[] | null | Account metas required by the instruction |
data | string | null (hex) | Hex-encoded instruction data. null if no data |
Outputs​
| Field | Type | Description |
|---|---|---|
instruction | Instruction | Instruction object for BUILD_SOLANA_TRANSACTION |
AccountMeta type​
{
pubkey: string; // base58
isSigner: boolean;
isWritable: boolean;
}
BUILD_SOLANA_ACCOUNT_META_ITEM​
BUILD_SOLANA_ACCOUNT_META_ITEM ComponentWraps a public key, isSigner, and isWritable into an AccountMeta object for use in program instructions.
Config​
None.
Inputs​
| Field | Type | Description |
|---|---|---|
pubkey | string (base58) | Account public key |
isSigner | boolean | Whether this account must sign the transaction |
isWritable | boolean | Whether this account will be written to |
Outputs​
| Field | Type | Description |
|---|---|---|
item | AccountMeta | AccountMeta object |
BUILD_SOLANA_SIGNATURE_PAIR_ITEM​
BUILD_SOLANA_SIGNATURE_PAIR_ITEM ComponentWraps a public key and signature into a SignaturePair object for use with SIGN_SOLANA_TRANSACTION.
Config​
None.
Inputs​
| Field | Type | Description |
|---|---|---|
publicKey | string (base58) | Signer public key |
signature | string (hex) | Ed25519 signature — 64 bytes (128 hex chars). Optional 0x prefix |
Outputs​
| Field | Type | Description |
|---|---|---|
item | SignaturePair | Signature pair to pass into SIGN_SOLANA_TRANSACTION's signatures array |