Sign the EIP-191 message 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-191 message from a specified developer-controlled wallet.
Indicator of whether the input message is encoded by hex. If TRUE, then the message should be a hex string. By default, it is False.
The human readable explanation for this sign action. Useful for presenting with extra information.
The user friendly message that needs to be signed. If it is a hex string, encodedByHex needs to be TRUE. The hex string should start with “0x” and have even length.
Unique system generated identifier of the wallet.
1const response = await client.signMessage({
2 walletId: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
3 encodedByHex: false,
4 message: 'I agree with this transfer',
5 memo: 'Transfer USDC to Sam',
6})
7console.log(response.data?.signature)
1{
2 "data": {
3 "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu..."
4 }
5}