Skip to main content

Function: buildDryRunWrapper()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / buildDryRunWrapper

Function: buildDryRunWrapper()

buildDryRunWrapper(signer, callerPublicKey, method, dto, uniqueKeyPrefix?): Promise<Record<string, unknown>>

Defined in: packages/gswap-sdk/dist/index.d.ts:1203

Signs the DryRun WRAPPER the gateway accepts for every contract: { callerPublicKey, method, dto: <inner DTO object>, uniqueKey, signature }. The inner DTO travels unsigned and as an object; no signerPublicKey is sent because the signature already recovers it (the gateway rejects it as REDUNDANT_SIGNER_PUBLIC_KEY). The wrapper carries its own uniqueKey, distinct from the DTO's.

Parameters​

signer​

GalaChainSigner

callerPublicKey​

string

method​

string

dto​

Record<string, unknown>

uniqueKeyPrefix?​

string

Returns​

Promise<Record<string, unknown>>