# bloXroute Rust SDK [![Crates.io](https://img.shields.io/crates/v/bloxroute-sdk)](https://crates.io/crates/bloxroute-sdk) [![Documentation](https://docs.rs/bloxroute-sdk/badge.svg)](https://docs.rs/bloxroute-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][account] and the ["Authorization"][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. [account]: https://portal.bloxroute.com/register [authorization]: https://docs.bloXroute.com/apis/authorization-headers ## Supported services - EVM - Streams - [X] newTxs - [X] pendingTxs - [X] newBlocks - [X] bdnBlocks - [ ] transactionStatus - [ ] txReceipts - Solana - Trader API v2 - General - [X] Get Account Balance - [X] Get Rate Limit - [X] Get Transaction Status - [X] Get Recent Priority Fee - [X] Stream Priority Fee - [X] Stream Bundle Tip - [X] Submit Signed Transaction - [X] Submit Signed Transaction Batch - Openbook - [X] Get Markets - [X] Get Orderbooks - [X] 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 - [X] Get Quotes - [X] Get Pools - [X] Get Pool Reserves - [X] Create Swap Transaction - [X] Create Route Swap - [X] Stream Pool Reserves - [X] Stream Swaps - [X] Stream New Raydium Pools - Zeta Markets - [ ] Stream Zeta Transactions - [ ] Create Zero Cross Margin Account ## 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 ``` ## NoteThe SDK is still experimental and in progress - some breaking changes might occur while still in development!