Configuration options for full wallet initialization.
This config provides full wallet capabilities including sending transactions, settling VTXOs, and all readonly operations.
// URL-based configurationconst wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), arkServerUrl: 'https://ark.example.com', esploraUrl: 'https://mempool.space/api'});// Provider-based configuration (e.g., for Expo/React Native)const wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), arkProvider: new ExpoArkProvider('https://ark.example.com'), indexerProvider: new ExpoIndexerProvider('https://ark.example.com'), onchainProvider: new EsploraProvider('https://mempool.space/api')});// With renewal configurationconst wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), arkServerUrl: 'https://ark.example.com', renewalConfig: { enabled: true, thresholdMs: 86400000, // 24 hours }}); Copy
// URL-based configurationconst wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), arkServerUrl: 'https://ark.example.com', esploraUrl: 'https://mempool.space/api'});// Provider-based configuration (e.g., for Expo/React Native)const wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), arkProvider: new ExpoArkProvider('https://ark.example.com'), indexerProvider: new ExpoIndexerProvider('https://ark.example.com'), onchainProvider: new EsploraProvider('https://mempool.space/api')});// With renewal configurationconst wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), arkServerUrl: 'https://ark.example.com', renewalConfig: { enabled: true, thresholdMs: 86400000, // 24 hours }});
Optional
Configuration options for full wallet initialization.
This config provides full wallet capabilities including sending transactions, settling VTXOs, and all readonly operations.
Example