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>
Sourcepub async fn action_graph(&self) -> Result<ActionGraph, SdkError>
pub async fn action_graph(&self) -> Result<ActionGraph, SdkError>
Return the live operation topology, including capability-gated nodes and the points where the agent owner’s signer acts outside Strata.
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 execution_challenge(
&self,
market: &str,
request: ExecutionChallengeRequest,
) -> Result<ExecutionChallengeResponse, SdkError>
pub async fn execution_challenge( &self, market: &str, request: ExecutionChallengeRequest, ) -> Result<ExecutionChallengeResponse, SdkError>
Request canonical authorization bytes for an external signer. This operation accepts public identity only; signing material stays external.
Sourcepub async fn execution_prepare(
&self,
market: &str,
request: ExecutionPrepareRequest,
) -> Result<ExecutionPrepareResponse, SdkError>
pub async fn execution_prepare( &self, market: &str, request: ExecutionPrepareRequest, ) -> Result<ExecutionPrepareResponse, SdkError>
Exchange an external authorization signature for a quote-bound, partially signed transaction.
Sourcepub async fn execution_submit(
&self,
market: &str,
request: ExecutionSubmitRequest,
) -> Result<ExecutionSubmitResponse, SdkError>
pub async fn execution_submit( &self, market: &str, request: ExecutionSubmitRequest, ) -> Result<ExecutionSubmitResponse, SdkError>
Submit an externally signed transaction. Reusing the same idempotency key cannot create a second execution.
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