Skip to main content

Interface: TokenResolver

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / TokenResolver

Interface: TokenResolver

Defined in: packages/gswap-sdk/dist/index.d.ts:2430

What the services need from a token resolver: how a token reference becomes a trading symbol, and whether requests carry the caller's references untouched. Symbols is the registry resolver (one GET /v2/trade/symbols, cached); CanonicalSymbols is the offline one.

Properties​

passthrough?​

readonly optional passthrough?: boolean

Defined in: packages/gswap-sdk/dist/index.d.ts:2437

True when reads send the caller's token references verbatim (a symbol, or a composite key as the caller wrote it) and let the backend resolve and orient the pair — no registry request and no client-side ordering or tick flip.

Methods​

resolve()​

resolve(ref): Promise<TradingSymbol>

Defined in: packages/gswap-sdk/dist/index.d.ts:2431

Parameters​

ref​

TokenRef

Returns​

Promise<TradingSymbol>