Skip to main contentModule sdk
Source - allocate_onchain
- Create an instruction to allocate tokens (on-chain allocation accounts)
- claim_merkle
- Create an instruction to claim tokens (merkle mode)
Uses merkle proof verification against campaign’s merkle root
- claim_offchain
- Create an instruction to claim tokens (off-chain mode)
Note: allocation account is required but can be empty/uninitialized for off-chain mode
- claim_onchain
- Create an instruction to claim tokens (on-chain mode)
- create_campaign
- Create an instruction to create a new campaign using an existing mint
- create_mint
- Create an instruction to create a new SPL token mint with metadata
- direct_transfer
- Create an instruction to transfer tokens directly to recipients in batches
- initialize
- Create an instruction to initialize the program
- mint_tokens
- Create an instruction to mint tokens to campaign treasury
Allows campaign owner to mint more tokens after campaign creation
- replenish
- Create an instruction to replenish campaign treasury from mint treasury
- update_config
- Create an instruction to update program config (admin-only)
- withdraw_fees
- Create an instruction to withdraw accumulated fees (admin-only)