SDK Explorer

Signs EIP-712 typed data.

Parameters
input
object
Required

Represents the input to sign the EIP-712 typed structured data from a specified user-controlled wallet.

option 1:
userId
string
Required

Unique system-generated identifier for the user.

data
string
Required

A string represents the typed structured data in EIP-712.

memo
string

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

walletId
string
Required

Unique system generated identifier of the wallet.

option 2:
userToken
string
Required

The JSON Web Token (JWT) representing the user.

data
string
Required

A string represents the typed structured data in EIP-712.

memo
string

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

walletId
string
Required

Unique system generated identifier of the wallet.

Example
1const response = await client.signTypedData({
2  userToken: 'dummy-user-token',
3  walletId: 'wallet-id',
4  data: 'typed-data',
5  memo: 'Transfer',
6})
7console.log(response.data?.challengeId)
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.