curl --request POST \
--url https://api.yiksipay.com/v1/wallets/{walletId}/addresses/{addressId}/signing/typed-data \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"domain": {
"chainId": 11155111,
"name": "USD Coin",
"verifyingContract": "0xa0b86a33e6441b8c4c8c0c077bcdd28571685701",
"version": "2"
},
"message": {
"deadline": "1641081600",
"nonce": "0",
"owner": "0x742d35cc6634c0532925a3b8d4c9db96c4b4d8b6",
"spender": "0x8ba1f109551bd432803012645aac136c4c8c8c0c",
"value": "1000000000"
},
"types": {
"Permit": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
]
}
}
'This endpoint allows you to sign typed data for a specific wallet identified by its ID. Supports all EIP-712 standards including EIP-3009, EIP-2612, and custom typed data structures.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| domain.name | string | ✅ | Contract or dApp name | ”Yiksi Pay” |
| domain.version | string | ✅ | Version of the domain | ”1” |
| domain.chainId | number | ✅ | Blockchain chain ID | 1 |
| domain.verifyingContract | string | ✅ | Contract address | ”0xa0b86a33e6441b8c4c8c0c077bcdd28571685701” |
| domain.salt | string | ❌ | Optional domain salt (EIP-712 v4) | “0x1234…” |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| types | object | ✅ | EIP-712 type definitions | See examples below |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| message | object | ✅ | Data to be signed | See examples below |
curl --request POST \
--url https://api.yiksipay.com/v1/wallets/{walletId}/addresses/{addressId}/signing/typed-data \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"domain": {
"chainId": 11155111,
"name": "USD Coin",
"verifyingContract": "0xa0b86a33e6441b8c4c8c0c077bcdd28571685701",
"version": "2"
},
"message": {
"deadline": "1641081600",
"nonce": "0",
"owner": "0x742d35cc6634c0532925a3b8d4c9db96c4b4d8b6",
"spender": "0x8ba1f109551bd432803012645aac136c4c8c8c0c",
"value": "1000000000"
},
"types": {
"Permit": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
]
}
}
'"YOUR_WALLET_ID"
"ADDRESS_OR_ID"