Sign the EIP-712 typed structured data from a specified developer-controlled wallet. Please note that not all the Dapps currently support Smart Contract Account (SCA), the difference between EOA and SCA can be found in the account types guide, and you can check the list of Dapps that support SCA: https://eip1271.io/.
Represents the input to sign the EIP-712 typed structured data from a specified developer-controlled wallet.
A string represents the typed structured data in EIP-712.
The human readable explanation for this sign action. Useful for presenting with extra information.
Unique system generated identifier of the wallet.
1const response = await client.signTypedData({
2 walletId: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
3 data: '{ "types": { "Data": [{ "name": "dummy", "type": "string" }],}, "domain": { "name": "Test", "chainId": 1337 }, "primaryType": "Data", "message": { "dummy": "dummy" }}',
4 memo: 'Transfer USDC to Sam',
5})
6console.log(response.data?.signature)
1{
2 "data": {
3 "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu..."
4 }
5}