pub struct JitoClient { /* private fields */ }Expand description
Jito client for sending transactions and bundles.
Implementations§
Source§impl JitoClient
impl JitoClient
Sourcepub async fn send_transaction(&self, tx: impl Serialize) -> Result<Response>
pub async fn send_transaction(&self, tx: impl Serialize) -> Result<Response>
Sends a single transaction and returns the HTTP response.
Sourcepub async fn send_transaction_bid(&self, tx: impl Serialize) -> Result<String>
pub async fn send_transaction_bid(&self, tx: impl Serialize) -> Result<String>
Sends a transaction and returns the bundle ID from the response headers.
Sourcepub async fn send_transaction_no_bundle_only(
&self,
tx: impl Serialize,
) -> Result<Response>
pub async fn send_transaction_no_bundle_only( &self, tx: impl Serialize, ) -> Result<Response>
Sends a transaction without bundleOnly flag.
Sourcepub async fn send_bundle<T: IntoIterator<Item = impl Serialize>>(
&self,
tx: T,
) -> Result<Response>
pub async fn send_bundle<T: IntoIterator<Item = impl Serialize>>( &self, tx: T, ) -> Result<Response>
Sends multiple transactions as a bundle.
Sourcepub async fn send_bundle_bid<T: IntoIterator<Item = impl Serialize>>(
&self,
tx: T,
) -> Result<String>
pub async fn send_bundle_bid<T: IntoIterator<Item = impl Serialize>>( &self, tx: T, ) -> Result<String>
Sends a bundle and returns its bundle ID from the JSON response.
Trait Implementations§
Source§impl Clone for JitoClient
impl Clone for JitoClient
Source§fn clone(&self) -> JitoClient
fn clone(&self) -> JitoClient
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 JitoClient
impl RefUnwindSafe for JitoClient
impl Send for JitoClient
impl Sync for JitoClient
impl Unpin for JitoClient
impl UnwindSafe for JitoClient
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