Skip to main content

index/interfaces/GatewayReadsOptions.md

How to reach the gateway for reads. Reads are unsigned: no signer is involved.

Properties​

PropertyTypeDescription
gatewayBaseUrlstringThe GalaChain gateway base URL; every read POSTs to <gatewayBaseUrl>/api/<channel>/<contract>/<Method> (token-contract, or public-key-contract for GetPublicKey). '' sends the bare path, for an httpRequestor that resolves paths against its own base (an HTTP client with a base URL). The public gateways do not route the public-key-contract; a connect-api's .../galachain proxy base does.
httpRequestor?HttpRequestorThe HTTP requestor; default the global fetch. Its own rejections reach the caller unchanged.
requestTimeoutMs?numberTimeout of every read request in milliseconds (default 30 000); Infinity arms no timer.
wire?WireOptionsHeaders of every read request (userAgent, headers); see WireOptions.