Skip to main content

Interface: GalaChainSigner

GalaChain core SDK 1.0.0-rc.8


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

Interface: GalaChainSigner

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

A signer for complete GalaChain write bodies.

Implementations return the DTO fields together with the signature that belongs in the gateway request body. Signer identity is recovered from that signature; implementations do not add signer hints, typed-data metadata, or a domain.

Methods​

signObject()​

signObject<T>(methodName, dto): Promise<SignedDto<T>>

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

Signs a DTO for a named GalaChain contract method.

Type Parameters​

T​

T extends Record<string, unknown>

Parameters​

methodName​

string

dto​

T

Returns​

Promise<SignedDto<T>>

Example​

const signed = await signer.signObject('RequestTrade', { token0: 'GALA', token1: 'GUSDC' });