Install
From your project directory:Create a client
You need a Solana connection (and, for sending transactions, a wallet/provider). Read-only client (fetch accounts, token info, build unsigned transactions):Common usage
Get token info
Fetch price, market cap, reserves, and whether the token has graduated:Buy tokens
Build a buy transaction (exact SOL in). The SDK returns a base64-encoded transaction for your wallet to sign and send:poolIndex and poolCreator if needed.
Sell tokens
Launch a token
Build a launch_token transaction. You need a mint keypair, metadata (name, symbol, URI), and creator pubkey:Claim mercy
If you held the loser token in a resolved duel, you can claim winner tokens from the mercy vault. Build the transaction with the SDK, then sign and send with your wallet:Claim creator rewards
As a token creator, claim accumulated SOL from your creator vault:Fetch bonding curve and duels
Helpers and PDAs
The SDK exports PDA helpers and quote helpers so you can derive addresses and compute prices without sending transactions:@apyxfun/sdk.