Skip to main content

Type Alias: PositionRead

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / PositionRead

Type Alias: PositionRead

PositionRead = { data: Position; kind: "found"; } | { kind: "not_found"; } | { error: GSwapSDKError; kind: "unknown"; }

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

The outcome of Positions.readPosition. Only not_found is chain-confirmed absence (the backend answers HTTP 404 only when the chain itself found no such position); unknown is "no evidence either way" — a transport failure, a gateway timeout, any other error status or an answer that is not a position — and must never be read as a removal.