4 stable releases
1.0.3 | Aug 13, 2024 |
---|---|
1.0.1 | Aug 11, 2024 |
#45 in #api-gateway
49KB
1K
SLoC
bloXroute Rust SDK
Prerequisites
Before using the bloXroute Rust SDK, make sure you have the following prerequisites:
- bloXroute credentials: you need to sign up for an account and the "Authorization" header from the Account Portal.
- Rust programming language: you should have Rust installed on your system. The bloXroute Rust SDK is compatible with Rust versions 1.80 and above.
Supported services
- EVM
- Streams
- newTxs
- pendingTxs
- newBlocks
- bdnBlocks
- transactionStatus
- txReceipts
- Streams
- Solana
- Trader API v2
- General
- Get Account Balance
- Get Rate Limit
- Get Transaction Status
- Get Recent Priority Fee
- Stream Priority Fee
- Stream Bundle Tip
- Submit Signed Transaction
- Submit Signed Transaction Batch
- Openbook
- Get Markets
- Get Orderbooks
- Get Depth
- Get Tickers
- Get Open Orders
- Get Unsettled
- Create Order Transaction
- Create Replace Transaction
- Create Cancel Order Transaction
- Create Settle Transaction
- Stream Orderbooks
- Stream Tickers
- Jupiter
- Get Quotes
- Create Swap Transaction
- Create Swap with Instructions
- Create Route Swap
- Raydium
- Get Quotes
- Get Pools
- Get Pool Reserves
- Create Swap Transaction
- Create Route Swap
- Stream Pool Reserves
- Stream Swaps
- Stream New Raydium Pools
- Zeta Markets
- Stream Zeta Transactions
- Create Zero Cross Margin Account
- General
- Trader API v2
Implementation:
Example using Tokio can be found: here
You can run EVM examples using the following command:
endpoint=wss://germany.eth.blxrbdn.com/ws auth_header=YOUR_AUTH_HEADER cargo run --example evm
You can run Solana examples using the following command:
endpoint=wss://uk.solana.dex.blxrbdn.com/ws auth_header=YOUR_AUTH_HEADER cargo run --example solana
endpoint=https://uk.solana.dex.blxrbdn.com auth_header=YOUR_AUTH_HEADER cargo run --example solana
Note
The SDK is still experimental and in progress - some breaking changes might occur while still in development!
Dependencies
~7–20MB
~301K SLoC