Devnet

Docs · Reference

Program reference

Instructions, accounts, events and errors of the Holdfast program, generated from the IDL shipped in @holdfast/sdk.

Address

C1c2ggJWMy2Ta4ogc297mGWk7Fj617dAxQr91BJKpTSW on devnet. Anchor IDL: packages/sdk/src/idl/moshsol.json.

Instructions

InstructionArgsSignerWritable accounts
create_launchargs: CreateLaunchArgscreator, mintcreator, platform, fee_recipient, launch, mint, curve_tokens, vault_tokens
depositamount: u64, proof: Vec<[u8; 32]>ownerowner, launch, backer
cancel_launch—creatorlaunch
refund—ownerowner, launch, backer
launch—crankerlaunch, curve_tokens, vault_tokens
buysol_in: u64, min_tokens_out: u64tradertrader, launch, curve_tokens, trader_tokens
selltokens_in: u64, min_sol_out: u64tradertrader, launch, curve_tokens, trader_tokens
agent_buysol_in: u64, min_tokens_out: u64agentlaunch, curve_tokens, vault_tokens
agent_selltokens_in: u64, min_sol_out: u64agentlaunch, curve_tokens, vault_tokens
claim_backer_fees—ownerowner, launch, backer
claim_creator_fees—creatorcreator, launch
sweep_platform_fees—nonelaunch, fee_recipient
initialize_platformfee_recipient: pubkey, agent_authority: pubkey, params: PlatformParamsadminadmin, platform
update_platformparams: PlatformParamsadminplatform
set_fee_recipientfee_recipient: pubkeyadminplatform
set_agent_authorityagent_authority: pubkeyadminplatform
propose_adminnew_admin: pubkeyadminplatform
accept_admin—new_adminplatform

Accounts

Backer

FieldType
launchpubkey
ownerpubkey
depositedu64
fees_claimedu64
bumpu8

Launch

FieldType
indexu64
creatorpubkey
mintpubkey
statusLaunchStatus
bumpu8
curve_bumpu8
vault_bumpu8
created_ati64
launched_ati64
termsLaunchTerms
raise_minu64
raise_maxu64
max_per_walletu64
raise_deadlinei64
raisedu64
refundedu64
backer_countu32
whitelist_root[u8; 32]
bundle_supply_bpsu16
reserve_bpsu16
virtual_solu64
real_solu64
token_reserveu64
vault_solu64
vault_tokensu64
bundle_solu64
bundle_tokensu64
vault_cost_solu64
acc_fee_per_shareu128
backer_fees_accruedu64
backer_fees_claimedu64
creator_fees_unclaimedu64
creator_fees_claimedu64
platform_fees_unclaimedu64
window_starti64
window_buy_capu64
window_sol_spentu64
window_sell_capu64
window_tokens_soldu64
ema_priceu128
last_trade_tsi64
agent_buysu32
agent_sellsu32
agent_sol_spentu64
agent_sol_receivedu64
agent_tokens_soldu64
buyback_solu64
volume_solu64
trade_countu64

Platform

FieldType
adminpubkey
pending_adminpubkey
fee_recipientpubkey
agent_authoritypubkey
paramsPlatformParams
launch_countu64
bumpu8

Events

EventFields
BackerFeesClaimedlaunch, backer, amount, timestamp
CreatorFeesClaimedlaunch, creator, amount, timestamp
Depositedlaunch, backer, amount, total_deposited, raised, timestamp
LaunchCancelledlaunch, timestamp
LaunchCreatedlaunch, mint, creator, index, name, symbol, uri, raise_min, raise_max, raise_deadline, bundle_supply_bps, reserve_bps, whitelisted, timestamp
Launchedlaunch, mint, raised, launch_fee, bundle_sol, bundle_tokens, vault_sol, price_q64, timestamp
PlatformFeesSweptlaunch, amount, timestamp
Refundedlaunch, backer, amount, timestamp
Tradelaunch, mint, trader, is_buy, is_agent, sol_amount, token_amount, fee, price_q64, ema_q64, real_sol, token_reserve, vault_sol, vault_tokens, timestamp

Errors

CodeNameMessage
6000UnauthorizedSigner is not authorized for this action
6001InvalidParamParameter out of allowed bounds
6002InvalidMetadataName, symbol or URI too long or empty
6003PausedPlatform is paused
6004AgentsPausedAgents are paused
6005NotRaisingLaunch is not raising
6006NotLiveLaunch is not live
6007NotRefundingLaunch is not refunding
6008RaiseClosedRaise deadline has passed
6009RaiseStillOpenRaise is still open
6010RaiseFullRaise is full
6011WalletCapReachedWallet deposit cap reached
6012MinimumNotReachedRaise minimum not reached
6013MinimumReachedRaise minimum was reached; refunds unavailable
6014NotWhitelistedWallet is not on the whitelist
6015ZeroAmountAmount must be greater than zero
6016SlippageOutput below minimum (slippage)
6017InsufficientLiquidityInsufficient curve liquidity
6018MathOverflowArithmetic overflow
6019AgentWindowLimitAgent window limit exceeded
6020AgentPriceImpactAgent trade exceeds max price impact
6021AgentBuyNotDipAgents may only buy below the EMA band
6022AgentSellNotRallyAgents may only sell above the EMA band
6023InsufficientVaultInsufficient vault balance
6024NothingToClaimNothing to claim
6025AlreadyRefundedAlready refunded
6026NoPendingAdminNo pending admin or signer mismatch
6027AgentAboveCostBasisAgents may only buy below the vault's average cost, or buy back with sell proceeds below the average sell price
6028AgentBelowCostBasisAgents may only sell above the vault's average cost plus band
6029NotUpgradeAuthorityOnly the program upgrade authority can initialize the platform
Indexer synced· slot 505,237,401· lag 6Agent online· tick 15,519Devnet
Risks© 2026 Holdfast