Configuration
Configuration options and settings for @tetherto/wdk-wallet-ton-gasless
Wallet Configuration
import WalletManagerTonGasless from '@tetherto/wdk-wallet-ton-gasless'
const config = {
// Required parameters
tonClient: {
url: 'https://toncenter.com/api/v3',
secretKey: 'your-api-key' // Optional
},
gasFreeProvider: 'https://your-gasfree-provider.com',
gasFreeApiKey: 'your-gasfree-api-key',
gasFreeApiSecret: 'your-gasfree-api-secret',
serviceProvider: 'EQ...', // Service provider's TON address
verifyingContract: 'EQ...', // Verifying contract address
chainId: '1', // TON chain ID
// Optional parameters
transferMaxFee: 10000000 // Maximum fee in token base units
}
const wallet = new WalletManagerTonGasless(seedPhrase, config)
