Orca
Orca is the easiest place to trade cryptocurrency on the Solana blockchain. For a detailed description refer to the official Orca documentation and Orca Developer Portal.Perform a Swap
- Create an IDex istance, providing a default account and and the RPC client istance:
- Create an IDex istance:
- Find the whirlpool:
- Get a swap quote for 1 USDC:
- Create the swap transaction:
- Sign and send the swap transaction: