TronConfig
Defined in: wallet-tron/src/types.ts:11
Options for a Tron wallet manager or account: full-node endpoints, network, fee limits and the pre-sign checks.
Properties
Section titled “Properties”allowBurn?
Section titled “allowBurn?”
optionalallowBurn?:boolean
Defined in: wallet-tron/src/types.ts:29
Allow TRX / TRC-20 transfers to the zero address (default false — refused as a burn).
allowOfflineTestnetSigning?
Section titled “allowOfflineTestnetSigning?”
optionalallowOfflineTestnetSigning?:boolean
Defined in: wallet-tron/src/types.ts:47
Sign for a non-mainnet network without a provider (default false — refused). A Tron transaction is bound to its network only by its reference block, and the key is the same on every network: offline, the wallet cannot tell a mainnet reference block from a testnet one, so a “testnet” signature could move mainnet funds.
allowPermissionChanges?
Section titled “allowPermissionChanges?”
optionalallowPermissionChanges?:boolean
Defined in: wallet-tron/src/types.ts:34
Sign an AccountPermissionUpdateContract (default false — refused): it changes which keys
control the account, so one signature can hand the account to someone else.
allowUndecodedContracts?
Section titled “allowUndecodedContracts?”
optionalallowUndecodedContracts?:boolean
Defined in: wallet-tron/src/types.ts:40
Sign contract types the wallet has no decoder for (default false — refused, except
VoteWitnessContract): nothing can be shown about them, and some move TRX or tokens
(ParticipateAssetIssue, Exchange*, MarketSellAsset, CreateSmartContract with a call value).
headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: wallet-tron/src/types.ts:17
Optional headers for every request (e.g. TRON-PRO-API-KEY).
network?
Section titled “network?”
optionalnetwork?:string
Defined in: wallet-tron/src/types.ts:25
CAIP-2 suffix; default mainnet genesis “0x2b6653dc”.
provider?
Section titled “provider?”
optionalprovider?:TronProvider|TronProvider[]
Defined in: wallet-tron/src/types.ts:13
Full-node url(s) / transport(s). A list fails over in order. Omit for an offline (sign-only) wallet.
retries?
Section titled “retries?”
optionalretries?:number
Defined in: wallet-tron/src/types.ts:15
Extra attempts across the provider list after the first failure (default 3).
simulate?
Section titled “simulate?”
optionalsimulate?:boolean
Defined in: wallet-tron/src/types.ts:27
Run simulateTransaction before signing in sendTransaction / transfer (default true).
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: wallet-tron/src/types.ts:19
Per-request timeout for url providers, in ms (default 15 000): a node that never answers fails over.
transactionMaxFee?
Section titled “transactionMaxFee?”
optionaltransactionMaxFee?:number|bigint
Defined in: wallet-tron/src/types.ts:23
Max fee (sun) for sendTransaction / signTransaction.
transferMaxFee?
Section titled “transferMaxFee?”
optionaltransferMaxFee?:number|bigint
Defined in: wallet-tron/src/types.ts:21
Max fee (sun) for transfer.