Interface: WireOptions
GalaChain core SDK 1.0.0-rc.8 / index / WireOptions
Interface: WireOptions
Defined in: packages/gala-core-sdk/dist/index.d.ts:1808
How the SDK writes a read request on the wire. The defaults suit a server-side caller; an app that already issues the same requests from its own HTTP stack (a web app, the Gala Wallet) sets these so the SDK's requests are indistinguishable from the ones it replaces.
One object, carried by ChainGateway, so every service built on a gateway (symbols, pools, positions, quoting) shares it without per-service plumbing.
Properties
headers?
optionalheaders?:Record<string,string>
Defined in: packages/gala-core-sdk/dist/index.d.ts:1832
Extra request headers for every read, sent after (and so able to replace) the defaults above;
for example axios' Accept: application/json, text/plain, */*, so a request is the same as
the one an app's own HTTP stack used to send.
queryEncoding?
optionalqueryEncoding?:"standard"|"readable"
Defined in: packages/gala-core-sdk/dist/index.d.ts:1820
Query-string encoding of GET parameters.
'standard'(default):URLSearchParams(application/x-www-form-urlencoded), where$and|become%24and%7C.'readable': keeps$ | : ,and the RFC 3986 sub-delimiters! ' ( ) *unescaped, so a composite key such asGALA$Unit$none$noneorclient|abcreads as written. Everything that would change a query's meaning (& = # % +, space, non-ASCII, controls) is still percent-encoded (a space is+), so the server decodes exactly the value that was passed. This is the text a hand-writtenformatUrlhelper produces for every value it can represent.
userAgent?
optionaluserAgent?:string|false
Defined in: packages/gala-core-sdk/dist/index.d.ts:1826
The User-Agent request header. Defaults to GalaChain-SDK/<version>; false omits it
(browsers forbid setting it, and an app whose own requests carry none can match them).
Content-Type is only ever sent with a request body, never on a GET.