index/interfaces/GatewayWritesOptions.md
How to reach and sign for the gateway.
Properties
| Property | Type | Description |
|---|---|---|
gatewayBaseUrl | string | The GalaChain gateway base URL; every write POSTs to <gatewayBaseUrl>/api/asset/token-contract/<Method>. '' sends the bare path, for an httpRequestor that resolves paths against its own base (an HTTP client with a base URL). |
httpRequestor? | HttpRequestor | The HTTP requestor; default the global fetch. Its own rejections reach the caller unchanged. |
requestTimeoutMs? | number | Timeout of every write request in milliseconds (default 30 000); Infinity arms no timer. |
signer | GalaChainSigner | Signs every write. The DTO it is handed is exactly what is signed; nothing is added to it. |
tokenNameResolver? | TokenNameResolver | Resolves tokenName inputs; only needed when a write names a token that way. |
uniqueKeyPrefix? | string | Prefix of every minted uniqueKey (default galaswap-operation-); see UniqueKeyOptions. |
walletAddress | string | The identity the writes are made AS: the sender of a transfer, the owner of what is burned, locked or unlocked, and the default lock authority, in the forms of TransferGalaInput.to (an Ethereum account is always sent as eth|<checksummed>). It must be the account the signer's key acts as; the chain refuses a write whose sender is not its signer. |
wire? | WireOptions | Headers of every write request (userAgent, headers); see WireOptions. |
gateway base url http requestor request timeout ms gala chain signer token name resolver unique key prefix options wallet address wire user agent