Appearance
Wallet SDK — API Reference
Complete API reference for ASI Chain Wallet SDK services, domains, and utilities.
Source code: github.com/asi-alliance/asi-chain-wallet-sdk
Services
| Module | Description |
|---|---|
| WalletsService | Wallet creation and address derivation |
| CryptoService | Password-based AES-GCM encryption/decryption |
| MnemonicService | BIP-39 mnemonic generation and validation |
| KeyDerivationService | BIP-32/BIP-44 hierarchical key derivation |
| KeysManager | secp256k1 key generation and management |
| SignerService | Deploy signing without exposing raw key bytes |
| AssetsService | Token transfers and balance queries |
| DeployResubmitter | Deploy retry and resubmission logic |
Domains
| Module | Description |
|---|---|
| Wallet | Encrypted wallet with scoped signing capability |
| Vault | Multi-wallet encrypted browser storage |
| BlockchainGateway | Singleton gateway for node communication |
| EncryptedRecord | Encrypted data wrapper for seed storage |
| Asset | Token model |
| BrowserStorage | localStorage adapter with key isolation |
Error Handling
| Module | Description |
|---|---|
| Error Types | Deploy error classification, recoverable/fatal error enums, and DeploymentErrorHandler |
Utilities
| Module | Description |
|---|---|
| Codec | Base16, Base58, and Base64 encoding helpers |
| Functions | Atomic amount conversion utilities |
| Validators | Address checksum and account name validation |
| Constants | Library-wide constants (ASI_DECIMALS, ASI_BASE_UNIT, GasFee, etc.) |
| Polyfills | Browser Buffer polyfill setup |