Skip to content
docs

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.

optional allowBurn?: boolean

Defined in: wallet-tron/src/types.ts:29

Allow TRX / TRC-20 transfers to the zero address (default false — refused as a burn).


optional allowOfflineTestnetSigning?: 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.


optional allowPermissionChanges?: 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.


optional allowUndecodedContracts?: 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).


optional headers?: Record<string, string>

Defined in: wallet-tron/src/types.ts:17

Optional headers for every request (e.g. TRON-PRO-API-KEY).


optional network?: string

Defined in: wallet-tron/src/types.ts:25

CAIP-2 suffix; default mainnet genesis “0x2b6653dc”.


optional provider?: 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.


optional retries?: number

Defined in: wallet-tron/src/types.ts:15

Extra attempts across the provider list after the first failure (default 3).


optional simulate?: boolean

Defined in: wallet-tron/src/types.ts:27

Run simulateTransaction before signing in sendTransaction / transfer (default true).


optional timeoutMs?: 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.


optional transactionMaxFee?: number | bigint

Defined in: wallet-tron/src/types.ts:23

Max fee (sun) for sendTransaction / signTransaction.


optional transferMaxFee?: number | bigint

Defined in: wallet-tron/src/types.ts:21

Max fee (sun) for transfer.