Skip to main content

Interface: GatewayWritesOptions

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / GatewayWritesOptions

Interface: GatewayWritesOptions

Defined in: packages/gala-core-sdk/dist/index.d.ts:2490

How to reach and sign for the gateway.

Properties​

gatewayBaseUrl​

gatewayBaseUrl: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2496

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?​

optional httpRequestor?: HttpRequestor

Defined in: packages/gala-core-sdk/dist/index.d.ts:2508

The HTTP requestor; default the global fetch. Its own rejections reach the caller unchanged.


requestTimeoutMs?​

optional requestTimeoutMs?: number

Defined in: packages/gala-core-sdk/dist/index.d.ts:2510

Timeout of every write request in milliseconds (default 30 000); Infinity arms no timer.


signer​

signer: GalaChainSigner

Defined in: packages/gala-core-sdk/dist/index.d.ts:2498

Signs every write. The DTO it is handed is exactly what is signed; nothing is added to it.


tokenNameResolver?​

optional tokenNameResolver?: TokenNameResolver

Defined in: packages/gala-core-sdk/dist/index.d.ts:2514

Resolves tokenName inputs; only needed when a write names a token that way.


uniqueKeyPrefix?​

optional uniqueKeyPrefix?: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2516

Prefix of every minted uniqueKey (default galaswap-operation-); see UniqueKeyOptions.


walletAddress​

walletAddress: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2506

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?​

optional wire?: WireOptions

Defined in: packages/gala-core-sdk/dist/index.d.ts:2512

Headers of every write request (userAgent, headers); see WireOptions.