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: 1000000000 // Optional: Maximum fee in nanotons (1 TON)
}
const wallet = new WalletManagerTon(seedPhrase, config)Account Configuration
import { WalletAccountTon } from '@tetherto/wdk-wallet-ton'
const accountConfig = {
tonClient: {
url: 'https://toncenter.com/api/v3',
secretKey: 'your-api-key' // Optional
},
transferMaxFee: 1000000000 // Optional: Maximum fee in nanotons
}
const account = new WalletAccountTon(seedPhrase, "0'/0/0", accountConfig)
