bloxroute-sdk

Crates.iobloxroute-sdk
lib.rsbloxroute-sdk
version1.0.3
sourcesrc
created_at2024-08-11 11:39:30.372093
updated_at2024-08-13 23:11:05.090992
descriptionBloxroute SDK that allows developers to interact with the bloXroute Cloud API and Gateway.
homepage
repositoryhttps://github.com/hjawhar/bloxroute-sdk-rs
max_upload_size
id1333235
size215,009
Hassan Jawhar (hjawhar)

documentation

README

bloXroute Rust SDK

Crates.io Documentation

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
  • 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

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!

Commit count: 0

cargo fmt