jup-swap-api-client 简介 jup-swap-api-client 是一款 Rust 客户端库,旨在简化 Jupiter Swap 服务的集成。
jup-swap-api-client 简介 jup-swap-api-client 是一款 Rust 客户端库,旨在简化 Jupiter Swap 服务的集成。
The jup-swap-api-client is a Rust client library designed to simplify the integration of the Jupiter Swap API, enabling seamless swaps on the Solana blockchain.
To use the jup-swap-api-client crate in your Rust project, follow these simple steps:
Add the crate to your Cargo.toml:
```toml
[dependencies]
jupiter-swap-api-client = { git = "https://github.com/jup-ag/jupiter-swap-api-client.git", package = "jupiter-swap-api-client"}
```
Here's a simplified example of how to use the jup-swap-api-client in your Rust application:
…
For the full example, please refer to the examples directory in this repository.
You can set custom URLs via environment variables for any self-hosted Jupiter APIs. Like the V6 Swap API or the paid hosted APIs. Here are the ENV vars:
API_BASE_URL=https://hosted.api
You can also check out some of the paid hosted APIs.
暂无开放 Issues,或尚未同步最近议题。