SDK Explorer

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/.

Parameters
input
object
Required

Represents the input to sign the EIP-191 message from a specified developer-controlled wallet.

encodedByHex
boolean

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.

memo
string

The human readable explanation for this sign action. Useful for presenting with extra information.

message
string
Required

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.

walletId
string
Required

Unique system generated identifier of the wallet.

Responses
Example
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)
ResponseChoose an example
1{
2  "data": {
3    "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu..."
4  }
5}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.