pub struct BloxrouteHttpClient {
pub endpoint: String,
pub auth_header: String,
pub client: Client,
}Fields§
§endpoint: String§auth_header: String§client: ClientImplementations§
Source§impl BloxrouteHttpClient
impl BloxrouteHttpClient
pub fn new(endpoint: String, auth_header: String) -> BloxrouteHttpClient
pub async fn get_raydium_quotes( &self, token_in: String, token_out: String, amount_in: f64, slippage: f64, ) -> Result<RaydiumQuote, Box<dyn Error + Send + Sync>>
pub async fn get_raydium_pools( &self, ) -> Result<Vec<RaydiumPool>, Box<dyn Error + Send + Sync>>
pub async fn get_raydium_pool_reserves( &self, pairs: Vec<String>, ) -> Result<Vec<RaydiumPool>, Box<dyn Error + Send + Sync>>
pub async fn create_raydium_swap_transaction( &self, payload: CreateSwapTransactionPayload, ) -> Result<CreateSwapTransactionResponse, Box<dyn Error + Send + Sync>>
pub async fn create_raydium_route_swap( &self, payload: CreateRouteSwapPayload, ) -> Result<CreateRouteSwapResponse, Box<dyn Error + Send + Sync>>
pub async fn get_account_balance( &self, owner_address: String, ) -> Result<Vec<BloxrouteGetAccountBalance>, Box<dyn Error + Send + Sync>>
pub async fn get_rate_limit( &self, ) -> Result<BloxrouteGetRateLimitResponse, Box<dyn Error + Send + Sync>>
pub async fn get_recent_priority_fee( &self, project: String, percentile: Option<f64>, ) -> Result<BloxrouteGetStreamPriorityFee, Box<dyn Error + Send + Sync>>
pub async fn get_transaction_status( &self, signature: String, ) -> Result<BloxrouteGetTransactionStatusResponse, Box<dyn Error + Send + Sync>>
pub async fn submit_signed_tx( &self, payload: TraderV2SubmitSignedTransactionPayload, ) -> Result<TraderV2SubmitSignedTransactionResponse, Box<dyn Error + Send + Sync>>
pub async fn submit_signed_tx_batch( &self, payload: TraderV2SubmitSignedTransactionBatchPayload, ) -> Result<TraderV2SubmitSignedTransactionBatchResponse, Box<dyn Error + Send + Sync>>
Trait Implementations§
Source§impl Clone for BloxrouteHttpClient
impl Clone for BloxrouteHttpClient
Source§fn clone(&self) -> BloxrouteHttpClient
fn clone(&self) -> BloxrouteHttpClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BloxrouteHttpClient
impl !RefUnwindSafe for BloxrouteHttpClient
impl Send for BloxrouteHttpClient
impl Sync for BloxrouteHttpClient
impl Unpin for BloxrouteHttpClient
impl !UnwindSafe for BloxrouteHttpClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more