Rust SDK
Solana integration sdk for WOOFi Swap. ProgramId on mainnet: WooFiGFK9x5FBYdvMg3pJBpAkPA8EEYiLcopwrxJvDG
SDK git repo: https://github.com/woonetwork/woofi-lz-sdk
Rust SDK Overview:
sdk/src/lib.rs have functions to compose woofi swap instructions
client/src/main.rs have the demo usage of these instrucionts
Rust SDK Usage:
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
Notice
above cmd will use
If you want change your own RPC URL or Payer Key, please use following cmd:
Last updated