Skip to main content

index/interfaces/GatewayWritesOptions.md

How to reach and sign for the gateway.

Properties​

PropertyTypeDescription
gatewayBaseUrlstringThe 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?HttpRequestorThe HTTP requestor; default the global fetch. Its own rejections reach the caller unchanged.
requestTimeoutMs?numberTimeout of every write request in milliseconds (default 30 000); Infinity arms no timer.
signerGalaChainSignerSigns every write. The DTO it is handed is exactly what is signed; nothing is added to it.
tokenNameResolver?TokenNameResolverResolves tokenName inputs; only needed when a write names a token that way.
uniqueKeyPrefix?stringPrefix of every minted uniqueKey (default galaswap-operation-); see UniqueKeyOptions.
walletAddressstringThe 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?WireOptionsHeaders of every write request (userAgent, headers); see WireOptions.