Skip to main content

Function: fixpointPrefixFor()

GalaChain core SDK 1.0.0-rc.8


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

Function: fixpointPrefixFor()

fixpointPrefixFor(dto): string

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

The @gala-chain/connect-style prefix the gSwap web app puts in the body of an EIP-712 write: the EIP-191 header whose number counts the prefix string ITSELF plus the body (the UTF-8 length of getPayloadToSign({ ...dto, prefix })), found by fixpoint because adding the prefix changes the length (a body of 99 bytes settles on 101).

It is NOT a personal-sign prefix (a personal-sign write with this value recovers a phantom signer; use personalSignPrefixFor). Under EIP-712 the field is an untyped extra that the typed-data hash ignores and the backend recomputes, so it only exists to keep the submitted body byte-identical to what the gSwap web app has always sent.

Parameters​

dto​

Record<string, unknown>

Returns​

string