Skip to content
docs

TonHistoryOptions

Defined in: wallet-ton/src/history.ts:30

Options for createTonHistory: tonapi first, toncenter v3 as the fallback.

optional apiKey?: string

Defined in: wallet-ton/src/history.ts:34

tonapi Bearer key. Keyless tonapi allows ~1 request/s.


optional fetch?: HistoryFetch

Defined in: wallet-ton/src/history.ts:40


optional network?: "mainnet" | "testnet"

Defined in: wallet-ton/src/history.ts:39


optional rateLimit?: number

Defined in: wallet-ton/src/history.ts:42

tonapi requests per second. Default 1 without a key, 10 with one.


optional timeoutMs?: number

Defined in: wallet-ton/src/history.ts:44

Per request, ms. Default 15 000.


optional tonapiUrl?: string | null

Defined in: wallet-ton/src/history.ts:32

tonapi root. Default https://tonapi.io (https://testnet.tonapi.io on testnet). null disables tonapi.


optional toncenterApiKey?: string

Defined in: wallet-ton/src/history.ts:38

toncenter X-API-Key.


optional toncenterUrl?: string | null

Defined in: wallet-ton/src/history.ts:36

toncenter root for the v3 fallback. Default https://toncenter.com (https://testnet.toncenter.com). null disables it.