Skip to main content

DeveloperWalletsClient

Struct DeveloperWalletsClient 

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

Async HTTP client for the Circle W3S Developer-Controlled Wallets API.

Implementations§

Source§

impl DeveloperWalletsClient

Source

pub fn new(api_key: impl Into<String>) -> Self

Creates a new client using the Circle production base URL.

Source

pub fn with_base_url( api_key: impl Into<String>, base_url: impl Into<String>, ) -> Self

Creates a new client with a custom base URL (useful for Prism mock servers).

Source

pub async fn create_wallet_set( &self, req: &CreateWalletSetRequest, ) -> Result<WalletSetResponse, Error>

Create a new developer-controlled wallet set.

Source

pub async fn get_wallet_set(&self, id: &str) -> Result<WalletSetResponse, Error>

Get a wallet set by its UUID.

Source

pub async fn update_wallet_set( &self, id: &str, req: &UpdateWalletSetRequest, ) -> Result<WalletSetResponse, Error>

Update the name of a wallet set.

Source

pub async fn list_wallet_sets( &self, params: &ListWalletSetsParams, ) -> Result<WalletSets, Error>

List all wallet sets belonging to the entity.

Source

pub async fn create_wallets( &self, req: &CreateWalletsRequest, ) -> Result<Wallets, Error>

Create one or more developer-controlled wallets.

Source

pub async fn list_wallets( &self, params: &ListWalletsParams, ) -> Result<Wallets, Error>

List wallets matching the given filters.

Source

pub async fn get_wallet(&self, id: &str) -> Result<WalletResponse, Error>

Get a wallet by its UUID.

Source

pub async fn update_wallet( &self, id: &str, req: &UpdateWalletRequest, ) -> Result<WalletResponse, Error>

Update the name or reference ID of a wallet.

Source

pub async fn list_wallet_balances( &self, params: &ListWalletBalancesParams, ) -> Result<WalletsWithBalances, Error>

List developer wallets with their token balances.

Source

pub async fn list_wallet_token_balances( &self, wallet_id: &str, params: &WalletNftsParams, ) -> Result<Balances, Error>

Retrieve token balances for a single wallet by its UUID.

Source

pub async fn list_wallet_nfts( &self, wallet_id: &str, params: &ListWalletNftsParams, ) -> Result<Nfts, Error>

Retrieve NFTs held by a wallet by its UUID.

Source

pub async fn sign_message( &self, req: &SignMessageRequest, ) -> Result<SignatureResponse, Error>

Sign a plain or hex-encoded message.

Source

pub async fn sign_typed_data( &self, req: &SignTypedDataRequest, ) -> Result<SignatureResponse, Error>

Sign an EIP-712 typed data payload.

Source

pub async fn sign_transaction( &self, req: &SignTransactionRequest, ) -> Result<SignTransactionResponse, Error>

Sign a raw transaction.

Source

pub async fn list_transactions( &self, params: &ListTransactionsParams, ) -> Result<Transactions, Error>

List transactions matching the given filters.

Source

pub async fn get_transaction( &self, id: &str, ) -> Result<TransactionResponse, Error>

Get a transaction by its UUID.

Source

pub async fn create_transfer_transaction( &self, req: &CreateTransferTxRequest, ) -> Result<TransactionResponse, Error>

Create a developer-controlled transfer transaction.

Source

pub async fn get_fee_parameters( &self, req: &CreateTransferTxRequest, ) -> Result<EstimateFeeResponse, Error>

Get fee parameters for a transfer.

Source

pub async fn create_contract_execution_transaction( &self, req: &CreateContractExecutionTxRequest, ) -> Result<TransactionResponse, Error>

Create a developer-controlled contract execution transaction.

Source

pub async fn cancel_transaction( &self, id: &str, req: &CancelTxRequest, ) -> Result<TransactionResponse, Error>

Cancel a stuck or queued transaction.

Source

pub async fn accelerate_transaction( &self, id: &str, req: &AccelerateTxRequest, ) -> Result<TransactionResponse, Error>

Accelerate a stuck transaction by resubmitting with higher fees.

Source

pub async fn get_token(&self, id: &str) -> Result<TokenResponse, Error>

Get a token by its UUID.

Source

pub async fn estimate_transfer_fee( &self, req: &EstimateTransferFeeRequest, ) -> Result<EstimateFeeResponse, Error>

Estimate fees for a transfer transaction.

Source

pub async fn validate_address( &self, req: &ValidateAddressRequest, ) -> Result<ValidateAddressResponse, Error>

Validate a blockchain address.

Trait Implementations§

Source§

impl Debug for DeveloperWalletsClient

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.