Configuration
Configuration options and settings for @tetherto/wdk-wallet-ton
Wallet Configuration
import WalletManagerTon from '@tetherto/wdk-wallet-ton'
const config = {
tonClient: {
url: 'https://toncenter.com/api/v3',
secretKey: 'your-api-key' // Optional
},
transferMaxFee: 10000000 // Optional: maximum fee in nanotons for transfer operations
}
const wallet = new WalletManagerTon(seedPhrase, config) // config is optionalAccount Configuration
import { WalletAccountTon } from '@tetherto/wdk-wallet-ton'
const accountConfig = {
tonClient: {
url: 'https://toncenter.com/api/v3',
secretKey: 'your-api-key' // Optional
},
transferMaxFee: 10000000 // Optional: maximum fee in nanotons for transfer operations
}
const account = new WalletAccountTon(seedPhrase, "0'/0/0", accountConfig) // config is optional
