Skip to main content

DelegatedWalletsClient

Struct DelegatedWalletsClient 

Source
pub struct DelegatedWalletsClient { /* private fields */ }
Expand description

Delegated client for wallets operations. Signed operations are split into init/complete pairs so the challenge can be signed on the user side.

Implementations§

Source§

impl DelegatedWalletsClient

Source

pub fn new(client: Client) -> Self

Source

pub async fn abort_transaction_init( &self, wallet_id: String, transaction_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for abortTransaction: returns the challenge to sign. Pass the signed assertion to abort_transaction_complete with the same arguments.

Source

pub async fn abort_transaction_complete( &self, wallet_id: String, transaction_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<AbortTransactionResponse, Error>

Finishes delegated signing for abortTransaction: submits the signed challenge and issues the request.

Source

pub async fn abort_transfer_init( &self, wallet_id: String, transfer_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for abortTransfer: returns the challenge to sign. Pass the signed assertion to abort_transfer_complete with the same arguments.

Source

pub async fn abort_transfer_complete( &self, wallet_id: String, transfer_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<AbortTransferResponse, Error>

Finishes delegated signing for abortTransfer: submits the signed challenge and issues the request.

Source

pub async fn activate_wallet_init( &self, wallet_id: String, body: ActivateWalletRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for activateWallet: returns the challenge to sign. Pass the signed assertion to activate_wallet_complete with the same arguments.

Source

pub async fn activate_wallet_complete( &self, wallet_id: String, body: ActivateWalletRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<ActivateWalletResponse, Error>

Finishes delegated signing for activateWallet: submits the signed challenge and issues the request.

Source

pub async fn list_transactions( &self, wallet_id: String, query: Option<ListTransactionsQuery>, ) -> Result<ListTransactionsResponse, Error>

Retrieves a list of transactions requests for the specified wallet.

Source

pub async fn sign_and_broadcast_transaction_init( &self, wallet_id: String, body: SignAndBroadcastTransactionRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for signAndBroadcastTransaction: returns the challenge to sign. Pass the signed assertion to sign_and_broadcast_transaction_complete with the same arguments.

Source

pub async fn sign_and_broadcast_transaction_complete( &self, wallet_id: String, body: SignAndBroadcastTransactionRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<SignAndBroadcastTransactionResponse, Error>

Finishes delegated signing for signAndBroadcastTransaction: submits the signed challenge and issues the request.

Source

pub async fn cancel_transaction_init( &self, wallet_id: String, transaction_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for cancelTransaction: returns the challenge to sign. Pass the signed assertion to cancel_transaction_complete with the same arguments.

Source

pub async fn cancel_transaction_complete( &self, wallet_id: String, transaction_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<CancelTransactionResponse, Error>

Finishes delegated signing for cancelTransaction: submits the signed challenge and issues the request.

Source

pub async fn cancel_transfer_init( &self, wallet_id: String, transfer_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for cancelTransfer: returns the challenge to sign. Pass the signed assertion to cancel_transfer_complete with the same arguments.

Source

pub async fn cancel_transfer_complete( &self, wallet_id: String, transfer_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<CancelTransferResponse, Error>

Finishes delegated signing for cancelTransfer: submits the signed challenge and issues the request.

Source

pub async fn proxy_arequest_to_the_canton_ledger_api( &self, wallet_id: String, body: ProxyARequestToTheCantonLedgerApiRequest, ) -> Result<Value, Error>

Proxies a request to the Canton Ledger API associated with this wallet, using the validator’s OAuth2 credentials. Restricted to a curated allow-list of read-style resources. Used to satisfy the Canton WalletConnect canton_ledgerApi method.

Source

pub async fn speed_up_transaction_init( &self, wallet_id: String, transaction_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for speedUpTransaction: returns the challenge to sign. Pass the signed assertion to speed_up_transaction_complete with the same arguments.

Source

pub async fn speed_up_transaction_complete( &self, wallet_id: String, transaction_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<SpeedUpTransactionResponse, Error>

Finishes delegated signing for speedUpTransaction: submits the signed challenge and issues the request.

Source

pub async fn speed_up_transfer_init( &self, wallet_id: String, transfer_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for speedUpTransfer: returns the challenge to sign. Pass the signed assertion to speed_up_transfer_complete with the same arguments.

Source

pub async fn speed_up_transfer_complete( &self, wallet_id: String, transfer_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<SpeedUpTransferResponse, Error>

Finishes delegated signing for speedUpTransfer: submits the signed challenge and issues the request.

Source

pub async fn list_wallets( &self, query: Option<ListWalletsQuery>, ) -> Result<ListWalletsResponse, Error>

Retrieves the list of Wallets in your organization. You can filter the results by owner (either by owner id or owner username). Pagination is supported via limit and paginationToken parameters.

Source

pub async fn create_wallet_init( &self, body: CreateWalletRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for createWallet: returns the challenge to sign. Pass the signed assertion to create_wallet_complete with the same arguments.

Source

pub async fn create_wallet_complete( &self, body: CreateWalletRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<CreateWalletResponse, Error>

Finishes delegated signing for createWallet: submits the signed challenge and issues the request.

Source

pub async fn get_transaction( &self, wallet_id: String, transaction_id: String, ) -> Result<GetTransactionResponse, Error>

Retrieve information about a specific transaction.

Source

pub async fn get_transfer( &self, wallet_id: String, transfer_id: String, ) -> Result<GetTransferResponse, Error>

Retrieves a Wallet Transfer Request by its ID.

Source

pub async fn get_wallet( &self, wallet_id: String, ) -> Result<GetWalletResponse, Error>

Retrieves a Wallet information by its ID.

Source

pub async fn update_wallet_init( &self, wallet_id: String, body: UpdateWalletRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for updateWallet: returns the challenge to sign. Pass the signed assertion to update_wallet_complete with the same arguments.

Source

pub async fn update_wallet_complete( &self, wallet_id: String, body: UpdateWalletRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<UpdateWalletResponse, Error>

Finishes delegated signing for updateWallet: submits the signed challenge and issues the request.

Source

pub async fn get_wallet_assets( &self, wallet_id: String, query: Option<GetWalletAssetsQuery>, ) -> Result<GetWalletAssetsResponse, Error>

Retrieves a list of assets owned by the specified wallet. Return values vary by chain as shown below.

Source

pub async fn get_wallet_history( &self, wallet_id: String, query: Option<GetWalletHistoryQuery>, ) -> Result<GetWalletHistoryResponse, Error>

Retrieves a list of historical on chain activities for the specified wallet.

The list reflects the indexed on-chain activity: it includes confirmed transactions only.

Source

pub async fn get_wallet_nfts( &self, wallet_id: String, ) -> Result<GetWalletNftsResponse, Error>

Retrieves a list of NFTs owned by the specified Wallet.

Source

pub async fn import_wallet_init( &self, body: ImportWalletRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for importWallet: returns the challenge to sign. Pass the signed assertion to import_wallet_complete with the same arguments.

Source

pub async fn import_wallet_complete( &self, body: ImportWalletRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<ImportWalletResponse, Error>

Finishes delegated signing for importWallet: submits the signed challenge and issues the request.

Source

pub async fn list_transfers( &self, wallet_id: String, query: Option<ListTransfersQuery>, ) -> Result<ListTransfersResponse, Error>

Retrieves a list of transfer requests for the specified wallet.

Source

pub async fn transfer_asset_init( &self, wallet_id: String, body: TransferAssetRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for transferAsset: returns the challenge to sign. Pass the signed assertion to transfer_asset_complete with the same arguments.

Source

pub async fn transfer_asset_complete( &self, wallet_id: String, body: TransferAssetRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<TransferAssetResponse, Error>

Finishes delegated signing for transferAsset: submits the signed challenge and issues the request.

Source

pub async fn tag_wallet_init( &self, wallet_id: String, body: TagWalletRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for tagWallet: returns the challenge to sign. Pass the signed assertion to tag_wallet_complete with the same arguments.

Source

pub async fn tag_wallet_complete( &self, wallet_id: String, body: TagWalletRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<TagWalletResponse, Error>

Finishes delegated signing for tagWallet: submits the signed challenge and issues the request.

Source

pub async fn untag_wallet_init( &self, wallet_id: String, body: UntagWalletRequest, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for untagWallet: returns the challenge to sign. Pass the signed assertion to untag_wallet_complete with the same arguments.

Source

pub async fn untag_wallet_complete( &self, wallet_id: String, body: UntagWalletRequest, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<UntagWalletResponse, Error>

Finishes delegated signing for untagWallet: submits the signed challenge and issues the request.

Source

pub async fn get_offer( &self, wallet_id: String, offer_id: String, ) -> Result<GetOfferResponse, Error>

Retrieve information about a specific offer received on your wallet.

Source

pub async fn list_offers( &self, wallet_id: String, query: Option<ListOffersQuery>, ) -> Result<ListOffersResponse, Error>

List all offers received on a specific wallet.

Source

pub async fn accept_offer_init( &self, wallet_id: String, offer_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for acceptOffer: returns the challenge to sign. Pass the signed assertion to accept_offer_complete with the same arguments.

Source

pub async fn accept_offer_complete( &self, wallet_id: String, offer_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<AcceptOfferResponse, Error>

Finishes delegated signing for acceptOffer: submits the signed challenge and issues the request.

Source

pub async fn reject_offer_init( &self, wallet_id: String, offer_id: String, ) -> Result<UserActionChallenge, Error>

Starts delegated signing for rejectOffer: returns the challenge to sign. Pass the signed assertion to reject_offer_complete with the same arguments.

Source

pub async fn reject_offer_complete( &self, wallet_id: String, offer_id: String, challenge_identifier: String, assertion: CredentialAssertion, ) -> Result<RejectOfferResponse, Error>

Finishes delegated signing for rejectOffer: submits the signed challenge and issues the request.

Source

pub async fn list_org_wallet_history( &self, query: Option<ListOrgWalletHistoryQuery>, ) -> Result<Value, Error>

Retrieve the transaction history across all wallets within a specified timeframe. The time range is unbounded, but the CSV export is capped at 100,000 rows.

Trait Implementations§

Source§

impl Clone for DelegatedWalletsClient

Source§

fn clone(&self) -> DelegatedWalletsClient

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more