Skip to main content

Function: buildDryRunWrapper

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

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​

ParameterType
signerGalaChainSigner
callerPublicKeystring
methodstring
dtoRecord<string, unknown>
uniqueKeyPrefix?string

Returns​

Promise<Record<string, unknown>>