This repository contains practical program examples and implementations designed to help developers work with the Cross Program Invocation (CPI) for Jupiter programs.
Written in Rust.
Build the cpi-swap-client folder.
cd cpi-swap-client
cargo buildYou can either:
- Run
cpi-swap-clientwith yourBS58_KEYPAIR. - Run
cpi-swap-clientwith yourKEYPAIR.
- With your
BS58_KEYPAIR
BS58_KEYPAIR=your_bs58_keypair cargo run- With your
KEYPAIR
KEYPAIR=your_keypair cargo runRPC_URL=https://api.apr.dev BS58_KEYPAIR=your_bs58_keypair cargo run