Rust SDK
Last updated
Was this helpful?
Last updated
Was this helpful?
Solana integration SDK for WOOFi Swap. ProgramId on mainnet: WooFiGFK9x5FBYdvMg3pJBpAkPA8EEYiLcopwrxJvDG
SDK git repo:
sdk/src/lib.rs have functions to compose woofi swap instructions
client/src/main.rs have the demo usage of these instrucionts
Build:
To test, simply run:
above try-query is query price for 1 SOL above swap will swap 0.1 USDC to SOL After swap, it will print out transaction signature and program return log
Above cmd will use
If you want change your own RPC URL or Payer Key, please use the following cmd: