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 order_challenge(
&self,
market_id: &str,
request: PlatformOrderChallengeRequest,
) -> Result<PlatformOrderChallengeResponse, SdkError>
pub async fn order_challenge( &self, market_id: &str, request: PlatformOrderChallengeRequest, ) -> Result<PlatformOrderChallengeResponse, SdkError>
Request exact authorization bytes for one product-level resting-order operation. Private key material never enters this client or Strata.
Sourcepub async fn order_prepare(
&self,
market_id: &str,
request: PlatformOrderPrepareRequest,
) -> Result<PlatformOrderPrepareResponse, SdkError>
pub async fn order_prepare( &self, market_id: &str, request: PlatformOrderPrepareRequest, ) -> Result<PlatformOrderPrepareResponse, SdkError>
Exchange a detached external authorization signature for a backend- partially-signed v0 transaction.
Sourcepub async fn order_submit(
&self,
market_id: &str,
request: PlatformOrderSubmitRequest,
) -> Result<PlatformOrderSubmitResponse, SdkError>
pub async fn order_submit( &self, market_id: &str, request: PlatformOrderSubmitRequest, ) -> Result<PlatformOrderSubmitResponse, SdkError>
Submit an externally signed order-control transaction. The same control ID and idempotency key return the same receipt.
Sourcepub async fn order_status(
&self,
market_id: &str,
request: PlatformOrderStatusRequest,
) -> Result<PlatformOrderStatusResponse, SdkError>
pub async fn order_status( &self, market_id: &str, request: PlatformOrderStatusRequest, ) -> Result<PlatformOrderStatusResponse, SdkError>
Recover the durable result for a prior submission. The same opaque control ID and idempotency key are required, so status polling never broadens authority beyond the original external submission.
Sourcepub async fn execute_order<S, V>(
&self,
market_id: &str,
operation: &OrderExecuteOperation,
signer: &S,
verifier: &V,
idempotency_key: Option<&str>,
) -> Result<PlatformOrderSubmitResponse, SdkError>
pub async fn execute_order<S, V>( &self, market_id: &str, operation: &OrderExecuteOperation, signer: &S, verifier: &V, idempotency_key: Option<&str>, ) -> Result<PlatformOrderSubmitResponse, SdkError>
Execute one resting-order operation while all private keys and signing policy remain in the caller’s signer adapter. Authorization bytes are parsed before message signing, and the mandatory verifier runs before the transaction signature is requested.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more