pub struct StrataClient { /* private fields */ }Implementations§
Source§impl StrataClient
impl StrataClient
pub fn production() -> Result<Self, SdkError>
pub fn new(base_url: impl AsRef<str>) -> Result<Self, SdkError>
pub fn with_timeout( base_url: impl AsRef<str>, timeout: Duration, ) -> Result<Self, SdkError>
pub async fn capabilities(&self) -> Result<CapabilityCatalog, SdkError>
pub async fn markets(&self) -> Result<MarketsResponse, SdkError>
Sourcepub async fn quote(
&self,
request: QuoteRequest,
) -> Result<QuoteResponse, SdkError>
pub async fn quote( &self, request: QuoteRequest, ) -> Result<QuoteResponse, SdkError>
Request a short-lived Sonar quote by human market label or market ID.
Sourcepub async fn execute_quote<S, V>(
&self,
quote: &QuoteResponse,
owner_wallet: &str,
account_sequence: u64,
signer: &S,
verifier: &V,
idempotency_key: Option<&str>,
) -> Result<ExecutionSubmitResponse, SdkError>
pub async fn execute_quote<S, V>( &self, quote: &QuoteResponse, owner_wallet: &str, account_sequence: u64, signer: &S, verifier: &V, idempotency_key: Option<&str>, ) -> Result<ExecutionSubmitResponse, SdkError>
Execute one short-lived Sonar quote without giving the SDK custody of a session private key. The transaction verifier always runs before the session adapter is allowed to sign.
Trait Implementations§
Source§impl Clone for StrataClient
impl Clone for StrataClient
Source§fn clone(&self) -> StrataClient
fn clone(&self) -> StrataClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for StrataClient
impl !UnwindSafe for StrataClient
impl Freeze for StrataClient
impl Send for StrataClient
impl Sync for StrataClient
impl Unpin for StrataClient
impl UnsafeUnpin for StrataClient
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