Before you can create events and issue tickets, you need to be registered as an integrator with TIX Protocol. Contact the TIX Protocol team to get registered.
Once registered, you'll receive:
Your Integrator Identity (public key)
Your Integrator Authority keypair
Your Treasury ATA address (for USDC)
Fund Your Treasury
Your integrator treasury must have USDC to pay protocol fees. Transfer USDC to your treasury ATA before issuing tickets.
import { getAssociatedTokenAddress, transfer } from "@solana/spl-token";
// Transfer USDC to your treasury
await transfer(
connection,
fundingKeypair,
sourceUsdcAta,
treasuryAta,
fundingKeypair,
1_000_000_000 // $1000 in minor units
);