pub struct JitoClient { /* private fields */ }Expand description
Jito client for sending transactions and bundles.
Implementations§
Source§impl JitoClient
impl JitoClient
pub async fn alloc(&self) -> JitoClientOnce
pub fn try_alloc(&self) -> Option<JitoClientOnce>
Sourcepub async fn raw_send_api(
&self,
api_url: impl AsRef<str>,
body: &Value,
) -> Result<Response>
pub async fn raw_send_api( &self, api_url: impl AsRef<str>, body: &Value, ) -> Result<Response>
Sends a raw request, use base_url + api_url.
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.
Sourcepub async fn send_transaction_str(
&self,
tx: impl AsRef<str>,
) -> Result<Response>
pub async fn send_transaction_str( &self, tx: impl AsRef<str>, ) -> Result<Response>
Sends a single transaction with pre-serialized data and returns the HTTP response.
Sourcepub async fn send_transaction_bid_str(
&self,
tx: impl AsRef<str>,
) -> Result<String>
pub async fn send_transaction_bid_str( &self, tx: impl AsRef<str>, ) -> Result<String>
Sends a transaction with pre-serialized data and returns the bundle ID from the response headers.
Sourcepub async fn send_transaction_no_bundle_only_str(
&self,
tx: impl AsRef<str>,
) -> Result<Response>
pub async fn send_transaction_no_bundle_only_str( &self, tx: impl AsRef<str>, ) -> Result<Response>
Sends a transaction with pre-serialized data without bundleOnly flag.
Sourcepub async fn send_bundle_str<T: IntoIterator<Item = impl AsRef<str>>>(
&self,
tx: T,
) -> Result<Response>
pub async fn send_bundle_str<T: IntoIterator<Item = impl AsRef<str>>>( &self, tx: T, ) -> Result<Response>
Sends multiple pre-serialized transactions as a bundle.
Sourcepub async fn send_bundle_bid_str<T: IntoIterator<Item = impl AsRef<str>>>(
&self,
tx: T,
) -> Result<String>
pub async fn send_bundle_bid_str<T: IntoIterator<Item = impl AsRef<str>>>( &self, tx: T, ) -> Result<String>
Sends a bundle with pre-serialized data 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more