Configuration
Configuration options and settings for @tetherto/wdk-wallet-ton-gasless
Wallet Configuration
import WalletManagerTonGasless from '@tetherto/wdk-wallet-ton-gasless'
const config = {
// Required: TON Center API client
tonClient: {
url: 'https://toncenter.com/api/v3',
secretKey: 'your-api-key' // Optional, for higher rate limits
},
// Required: TON API client (used for gasless transaction relay)
tonApiClient: {
url: 'https://tonapi.io/v2',
secretKey: 'your-tonapi-key' // Optional but recommended
},
// Required: Paymaster token used to pay gas fees
paymasterToken: {
address: 'EQ...' // Paymaster Jetton master contract address
},
// Optional: Maximum fee for transfer operations (in paymaster token base units)
transferMaxFee: 10000000
}
const wallet = new WalletManagerTonGasless(seedPhrase, config) // config is required
