index/interfaces/GalaChainSigner.md
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>>
Signs a DTO for a named GalaChain contract method.
Type Parameters
| Type Parameter |
|---|
T extends Record<string, unknown> |
Parameters
| Parameter | Type |
|---|---|
methodName | string |
dto | T |
Returns
Promise<SignedDto<T>>
Example
const signed = await signer.signObject('RequestTrade', { token0: 'GALA', token1: 'GUSDC' });
sign object method name signed dto