skynetcap / solanaj

Solana RPC client written in Java
MIT License
66 stars 34 forks source link

Instruction for swap on Orca #30

Closed raul1ro closed 5 days ago

raul1ro commented 6 months ago

I want to build the instruction for swapping on DEX Orca. I don't understand how to build data for SystemProgram.createTransactionInstruction. If someone can help me with this, or has any useful link. Thank you.

skynetcap commented 6 months ago

See https://github.com/skynetcap/solanaj-programs for client implementations of other on-chain programs, and use as a template.