Docs

getAddData

Prepares the data required for signing an Add message according to EIP-712.

Example

const message: AddMessage = {
owner: "0xYourAddress",
keyType: 1,
key: "0xYourPublicKey",
metadataType: 1,
metadata: "0xYourMetadata",
nonce: BigInt("YourNonce"),
deadline: BigInt("YourDeadline"),
};
const data = getAddData(message);

Parameters

Returns

The data object structured according to EIP-712, ready for signing.