EIP-712 Domain
The Earn contract's EIP-712 domain and the Subscribe type, for clients that want to verify the backend signature locally.
GET /earn/domain
Response
{
"types": {
"EIP712Domain": [
{ "name": "name", "type": "string" },
{ "name": "version", "type": "string" },
{ "name": "chainId", "type": "uint256" },
{ "name": "verifyingContract", "type": "address" }
],
"Subscribe": [
{ "name": "user", "type": "address" },
{ "name": "productId", "type": "uint256" },
{ "name": "amount", "type": "uint256" },
{ "name": "deadline", "type": "uint256" }
]
},
"primaryType": "Subscribe",
"domain": {
"name": "AXBlade Earn",
"version": "1",
"chainId": 43114,
"verifyingContract": "0x..."
}
}
domain.verifyingContract is the Earn contract on this chain; domain.name is a legacy identifier kept for contract compatibility.