βοΈCollecting the signature
Once the data is properly generated, the user has to sign it. We'll then have to determine its r,s and v to dispatch the transaction later.
Last updated
Once the data is properly generated, the user has to sign it. We'll then have to determine its r,s and v to dispatch the transaction later.
Last updated
// sign the message
let signature
try {
signature = signTypedData({
privateKey: Buffer.from(key, 'hex'),
data: await messageData.typedData