1.2.2 • Published 19 days ago
@sophon-labs/account-core v1.2.2
@sophon-labs/account-core
Core functionality for the Sophon Account SDK, providing essential wallet and configuration utilities.
Features
- Wallet client creation and management
- Network configuration (mainnet and testnet)
- Type definitions for wallet interfaces
- Ethereum and ZKsync wallet support
Installation
npm install @sophon-labs/account-core
# or
yarn add @sophon-labs/account-core
Usage
import {
SophonWallet,
SophonTestnetWallet,
WalletConfig,
WalletTestnetConfig,
} from "@sophon-labs/account-core";
// Use mainnet wallet
const wallet = SophonWallet;
// Use testnet wallet
const testnetWallet = SophonTestnetWallet;
// Access configuration
const config = WalletConfig;
const testnetConfig = WalletTestnetConfig;
API Reference
Wallet Clients
SophonWallet
: Mainnet wallet clientSophonTestnetWallet
: Testnet wallet client
Configuration
WalletConfig
: Mainnet configurationWalletTestnetConfig
: Testnet configuration
Type Guards
isEthereumWallet
: Type guard for Ethereum walletsisZKsyncConnector
: Type guard for ZKsync connectors
Dependencies
- @dynamic-labs/ethereum
- @dynamic-labs/ethereum-aa
- @dynamic-labs/ethereum-aa-zksync
- @dynamic-labs/global-wallet-client
1.2.2
19 days ago
1.2.1
26 days ago
1.2.0
26 days ago
1.1.24
26 days ago
1.1.23
27 days ago
1.1.22
27 days ago
1.1.21
27 days ago
1.1.20
27 days ago
1.1.19
27 days ago
1.1.18
27 days ago
1.1.17
27 days ago
1.1.16
30 days ago
1.1.15
30 days ago
2.0.0
30 days ago
1.1.14
30 days ago
1.1.13
1 month ago
1.1.12
1 month ago
1.1.11
2 months ago
1.1.10
2 months ago
1.1.9
2 months ago
1.1.8
2 months ago
1.1.7
2 months ago
1.1.6
2 months ago
1.1.5
2 months ago
1.1.4
2 months ago
1.1.3
2 months ago
1.1.2
2 months ago
1.1.1
2 months ago
1.1.0
2 months ago