Skip to content
docs

ThorchainProviderConfig

Defined in: protocol-swap2-thorchain/src/provider.ts:330

Explicit constructor configuration; no deployment environment is read.

optional affiliate?: string

Defined in: protocol-swap2-thorchain/src/provider.ts:332


optional affiliateBps?: string

Defined in: protocol-swap2-thorchain/src/provider.ts:333


optional allowInsecureNodeUrl?: boolean

Defined in: protocol-swap2-thorchain/src/provider.ts:349

Allow http: node URLs (local development only): the vault and router a swap pays come from them.


optional clientId?: string

Defined in: protocol-swap2-thorchain/src/provider.ts:351

Optional gateway identification; defaults to a neutral module name.


optional confirmNodeUrl?: string | string[]

Defined in: protocol-swap2-thorchain/src/provider.ts:345

Nodes that confirm the source vault and router a quote names (scan 2026-10-27 modules, F15): another host must report the same before a quote is used and again right before broadcast; a disagreeing or silent second source refuses. Default: the other nodeUrl hosts, else the default public nodes. Name a node of another operator.


optional enabled?: boolean

Defined in: protocol-swap2-thorchain/src/provider.ts:331


optional nodeUrl?: string | string[]

Defined in: protocol-swap2-thorchain/src/provider.ts:339

THORNode base URL(s), tried in order; a comma-separated string is accepted for env-style configuration. Defaults to the documented public hosts. Quote + inbound snapshot always come from the same host.


optional tronSource?: boolean

Defined in: protocol-swap2-thorchain/src/provider.ts:358

Opt-in Tron SOURCE execution: a native TRX send / TRC-20 transfer to the inbound vault carrying the swap memo in raw_data.data. Ships dark: the bound account MUST attach the memo on-chain (raw_data.data); a memo-less send is unsettleable.


optional trustedRouters?: Readonly<Record<string, readonly string[]>>

Defined in: protocol-swap2-thorchain/src/provider.ts:347

Routers to trust besides THORCHAIN_ROUTERS, per CAIP-2 chain (a router migration before a release).