Creates an instance of BaseService.
The SDK configuration options
Options for request retry behavior
Creates a new Viem wallet client configured for a specific chain
The wallet creation parameters
Optional
privateKey?: AddressOptional
secretWords?: stringA configured Viem wallet client with public actions enabled
const wallet = commerce.wallets.createWallet({
secretWords: 'word1 word2 ... word12',
chainId: 1 // Ethereum mainnet
});
// The wallet is ready to use with other services
const address = wallet.account.address;
Service for managing Web3 wallets within the SDK Provides functionality for creating and configuring wallet clients