Skip to main content

Tooling

Relayer API Solana utils contains scripts to build authority-signed base64 transactions for the relayer (fee-payer signature left empty).

Scripts

scripts/mintSecuritiesBase64.ts

Creates the destination ATA when missing, derives the SecurityAssociatedAccount PDA, builds a mintSecurities transaction, and prints txBase64.

scripts/transferWithHookBase64.ts

Validates balances, optionally creates the recipient ATA, bumps compute budget, builds a transfer-with-hook transaction, and prints txBase64.

scripts/setAddressPermissionBase64.ts

Ensures the wallet ATA exists, derives/initializes holder and holder-group PDAs, updates the wallet’s transfer group/frozen state, and prints txBase64.

Usage

  • Install dependencies with pnpm install (or npm/yarn).
  • Shared env vars: RPC_URL (defaults to devnet), PAYER_ADDRESS/RELAYER_FEE_PAYER, AUTHORITY_PRIVATE_KEY_B64, TOKEN_MINT, and script-specific values (DESTINATION_WALLET, TO_WALLET, WALLET_ADDRESS, GROUP_ID, FROZEN, AMOUNT_RAW, etc.).
  • Outputs are base64 transactions signed by the authority; pass them to the relayer to append the fee-payer signature and broadcast.