TonHistoryOptions
Defined in: wallet-ton/src/history.ts:30
Options for createTonHistory: tonapi first, toncenter v3 as the fallback.
Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey?:string
Defined in: wallet-ton/src/history.ts:34
tonapi Bearer key. Keyless tonapi allows ~1 request/s.
fetch?
Section titled “fetch?”
optionalfetch?:HistoryFetch
Defined in: wallet-ton/src/history.ts:40
network?
Section titled “network?”
optionalnetwork?:"mainnet"|"testnet"
Defined in: wallet-ton/src/history.ts:39
rateLimit?
Section titled “rateLimit?”
optionalrateLimit?:number
Defined in: wallet-ton/src/history.ts:42
tonapi requests per second. Default 1 without a key, 10 with one.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: wallet-ton/src/history.ts:44
Per request, ms. Default 15 000.
tonapiUrl?
Section titled “tonapiUrl?”
optionaltonapiUrl?: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.
toncenterApiKey?
Section titled “toncenterApiKey?”
optionaltoncenterApiKey?:string
Defined in: wallet-ton/src/history.ts:38
toncenter X-API-Key.
toncenterUrl?
Section titled “toncenterUrl?”
optionaltoncenterUrl?: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.