signTypedDataVersioned
Performs Off Chain Versioned Signing Of An Arbitrary Typed Message
const payload = { messageType: [ { name: "data", type: "string", }, ], domain: { name: "example.metamask.com", version: "1", chainId: 1, verifyingContract: "0x0000000000000000000000000000000000000000", salt: [1, 2, 3], extraField: "stuff", }, primaryType: "Message", message: { data: "hello", },}await mirrorworld.BNBChain.Wallet.signTypedDataVersioned(payload)
Edit this page on GitHub