Skip to main content

Module client

Module client 

Source

Structs§

ApiClient
BlockchainInfo
Blockchain information from Elements node
ElementsRpc
Elements RPC client for blockchain operations
LiveTokenStrategy
Live token strategy that wraps the existing TokenManager for full token management
MockTokenStrategy
Mock token strategy for isolated testing without persistence
NetworkInfo
Network information from Elements node
RetryClient
HTTP client with sophisticated retry logic and exponential backoff
RetryConfig
Configuration for retry behavior in API requests
TokenManager
Core token manager with proactive refresh and secure storage

Enums§

AmpError
Enhanced error enum for distribution operations and ElementsRpc
Error
TokenEnvironment
Token environment detection for automatic strategy selection
TokenError
Detailed error types for token management operations

Traits§

TokenStrategy
Token management strategy trait for different token handling approaches

Functions§

create_auto_token_strategy
Creates a token strategy based on automatic environment detection
create_live_token_strategy
Creates a live token strategy with default configuration
create_mock_token_strategy
Creates a mock token strategy with the specified token
create_token_strategy_for_environment
Creates a token strategy for the specified environment