Configuration
Configuration options and settings for @tetherto/wdk-wallet-tron
Wallet Configuration
import WalletManagerTron from '@tetherto/wdk-wallet-tron'
const config = {
provider: 'https://api.trongrid.io', // Tron RPC endpoint
transferMaxFee: 10000000 // Maximum fee in sun (optional)
}
const wallet = new WalletManagerTron(seedPhrase, config)Account Configuration
import { WalletAccountTron } from '@tetherto/wdk-wallet-tron'
const accountConfig = {
provider: 'https://api.trongrid.io',
transferMaxFee: 10000000 // Maximum fee in sun (optional)
}
const account = new WalletAccountTron(seedPhrase, "0'/0/0", accountConfig)
