Developer Reference

Developer Reference

This section provides early-stage technical reference information for developers who want to integrate or build on top of Purge.


Wallet Connection

Purge uses @solana/web3.js and supports:

window.solana.connect();

Currently supports:

  • Phantom

  • Solflare

Wallet detection is handled via standard provider injection.


Token Account Fetching

Token accounts are pulled using:

connection.getParsedTokenAccountsByOwner(walletPublicKey, {
  programId: TOKEN_PROGRAM_ID
});

This allows us to list balances, decimals, and mint addresses for SPL tokens.


Liquidity Check

We use the Jupiter Aggregator Quote API to determine if a token is swappable:

GET /v6/quote?inputMint=XYZ&outputMint=So111...&amount=...

Routing is optimized based on best price and liquidity depth.


Burn Transactions

Burns are executed by sending a transfer to a public, unspendable address:

SystemProgram.transfer({
  fromPubkey: userWallet,
  toPubkey: PURGE_BURN_WALLET,
  lamports: 0
});

The burn wallet has no associated private key and is publicly verifiable on-chain.


Purge AI (coming soon)

We are exploring exposing AI hooks or profile endpoints via a limited-access developer API for trusted wallets and platforms. More details to follow.


This section will be expanded as integration support and APIs become publicly available.

Last updated