Skip to main content
The SDK provides transaction builders for all trading operations. You build instructions, add them to a transaction, and sign with your wallet.

Prerequisites

Before trading, ensure you have:
  1. An initialized SDK instance
  2. A connected wallet
  3. A USDC token account with sufficient balance

Buying Shares

Purchase shares of a specific outcome:

Selling Shares

Sell shares back to the pool:
You cannot sell more shares than you own. Fetch your position first to check balances.

Redeeming Winnings

After a market resolves, redeem winning shares:

Compute Units

Complex bonding curve calculations require additional compute units. The SDK handles this automatically:

Error Handling


Complete Trading Flow


Next Steps

Positions

Track and manage user positions.

Disputes

Participate in dispute resolution.