Skip to main content

Interface: TypedDataSigner

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / TypedDataSigner

Interface: TypedDataSigner

Defined in: packages/launchpad-sdk/dist/signing/types.d.ts:15

Signer capability used by the bundler launchpad write transport.

Extended by​

Methods​

signTypedData()​

signTypedData(method, dto): Promise<SignedTypedDataBody>

Defined in: packages/launchpad-sdk/dist/signing/types.d.ts:23

Sign a launchpad DTO using the method name as the EIP-712 primary type.

Parameters​

method​

string

dto​

Record<string, unknown>

Returns​

Promise<SignedTypedDataBody>

Example​

const body = await signer.signTypedData('BuyWithNative', { amount: '1' });
console.log(body.signature);