Skip to main content

Function: buildEIP712Payload()

GalaChain core SDK 1.0.0-rc.8


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

Function: buildEIP712Payload()

buildEIP712Payload(methodName, dto): object

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

Completes a DTO's fields for EIP-712 signing (a no-op for methods with no known gap, e.g. RequestTrade) and derives its types. Exported separately from the signing call itself so tests can assert on the exact payload without needing a live provider.

Parameters​

methodName​

string

dto​

Record<string, unknown>

Returns​

object

completedDto​

completedDto: Record<string, unknown>

types​

types: EIP712Types