You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build and attach executable instructions to Realms governance proposals. Supports 40+ instruction types — token transfers, burns, Jupiter swaps/DCA/limit orders, Kamino lending, Drift perp trading, validator staking, token streaming/locking, council member management, DAO config changes, treasury operations, and custom arbitrary instructions. Use when building executable proposals that perform on-chain actions through DAO governance. Triggers on "transfer tokens", "send from treasury", "swap from DAO", "Jupiter limit order", "DCA proposal", "Kamino deposit", "Drift trade", "stake to validator", "stream tokens", "burn tokens", "custom instruction", "governance instruction", "executable proposal".
Realms Proposal Execution
Attach on-chain instructions to governance proposals. When a proposal passes and is executed, these instructions run from the DAO treasury.
How It Works
Build instructions as TransactionInstruction objects
Serialize with serializeInstructionToBase64() from @realms-today/spl-governance
Pass to withInsertTransaction() during proposal creation
Each instruction is inserted as a separate proposal transaction
When executed, the governance authority (treasury) signs as the authority
Key Concept: Governance Authority
The treasury wallet (getNativeTreasuryAddress(governancePk)) acts as the signer/authority for all instructions. When building instructions, use the treasury address as the authority — NOT the proposer's wallet.