pub struct JitoClientOnce { /* private fields */ }Implementations§
Source§impl JitoClientOnce
impl JitoClientOnce
pub fn entry(&self) -> Arc<Entry>
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 JitoClientOnce
impl Clone for JitoClientOnce
Source§fn clone(&self) -> JitoClientOnce
fn clone(&self) -> JitoClientOnce
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 JitoClientOnce
impl !RefUnwindSafe for JitoClientOnce
impl Send for JitoClientOnce
impl Sync for JitoClientOnce
impl Unpin for JitoClientOnce
impl !UnwindSafe for JitoClientOnce
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