Sign Typed Data
Connect Wallet
Typed Data
Reference{ "domain": { "chainId": "0x534e5f5345504f4c4941", "name": "myDapp", "version": "1" }, "message": { "amount": "400", "chkFunction": "check_authorization", "endDate": "0x27d32a3033df4277caa9e9396100b7ca8c66a4ef8ea5f6765b91a7c17f0109c", "from": "0x2c94f628d125cd0e86eaefea735ba24c262b9a441728f63e5776661829a4066", "id": "0x0000004f000f", "itemsAuthorized": [ "0x01", "0x03", "0x0a", "0x0e" ], "nameGamer": "Hector26", "rootList": [ { "address": "0x69b49c2cc8b16e80e86bfc5b0614a59aa8c9b601569c7b80dde04d3f3151b79", "amount": "1554785" } ] }, "primaryType": "Validate", "types": { "Airdrop": [ { "name": "address", "type": "string" }, { "name": "amount", "type": "string" } ], "StarkNetDomain": [ { "name": "name", "type": "string" }, { "name": "version", "type": "string" }, { "name": "chainId", "type": "string" } ], "Validate": [ { "name": "id", "type": "string" }, { "name": "from", "type": "string" }, { "name": "amount", "type": "string" }, { "name": "nameGamer", "type": "string" }, { "name": "endDate", "type": "string" }, { "name": "itemsAuthorized", "type": "string*" }, { "name": "chkFunction", "type": "selector" }, { "contains": "Airdrop", "name": "rootList", "type": "merkletree" } ] } }
Response
{ "isError": false, "isPending": false }
This demo shows how to sign typed data via the wallet of the connected account.
Hook(s)
useSignTypedData