{
  "x402Version": 2,
  "id": 72724,
  "slug": "saylorinnovations-api-chain-eip712-hash",
  "resource": "https://saylorinnovations.com/api/chain/eip712-hash",
  "description": "EIP-712 typed data hashing: signing digest, domain separator and struct hash from JSON, with an optional signature check against an address.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95953",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "primary_type": {
        "type": "string",
        "description": "the struct type being signed"
      },
      "digest": {
        "type": "string",
        "description": "final 32-byte signing digest"
      },
      "domain_separator": {
        "type": "string",
        "description": "hash of the EIP-712 domain"
      },
      "struct_hash": {
        "type": "string",
        "description": "hash of the message struct"
      },
      "signature_checked": {
        "type": "boolean",
        "description": "true when a signature was supplied"
      },
      "signature_valid": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "true when the signer matches the address"
      },
      "recovered_address": {
        "type": [
          "string",
          "null"
        ],
        "description": "address recovered from the signature"
      },
      "note": {
        "type": "string",
        "description": "plain-language reading of the result"
      },
      "source": {
        "type": "string",
        "description": "where the data was read from or how it was computed"
      }
    },
    "required": [
      "primary_type",
      "digest",
      "domain_separator",
      "struct_hash",
      "signature_checked",
      "note",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "typed_data": "{\"domain\":{\"name\":\"Ether Mail\",\"version\":\"1\",\"chainId\":1,\"verifyingContract\":\"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\"},\"types\":{\"Person\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"wallet\",\"type\":\"address\"}],\"Mail\":[{\"name\":\"from\",\"type\":\"Person\"},{\"name\":\"to\",\"type\":\"Person\"},{\"name\":\"contents\",\"type\":\"string\"}]},\"primaryType\":\"Mail\",\"message\":{\"from\":{\"name\":\"Cow\",\"wallet\":\"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\"},\"to\":{\"name\":\"Bob\",\"wallet\":\"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\"},\"contents\":\"Hello, Bob!\"}}"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "primary_type": "Mail",
            "digest": "0xbe609aee343fb3c4b28e1df9e632fca64fcfaede20f02e86244efddf30957bd2",
            "domain_separator": "0xf2cee375fa42b42143804025fc449deafd50cc031ca257e0b194a650a912090f",
            "struct_hash": "0xc52c0ee5d84264471806290a3f2c4cecfc5490626bf912d01f240d7a274b371e",
            "signature_checked": false,
            "signature_valid": null,
            "recovered_address": null,
            "note": "digest is keccak256(0x1901 + domain_separator + struct_hash), the 32 bytes that wallets sign for EIP-712 typed data. Pass signature and address to also check who signed it.",
            "source": "Computed locally (EIP-712 hashing, secp256k1 recovery)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "typed_data": {
                    "type": "string",
                    "description": "JSON with domain, types, primaryType and message (EIP-712 typed data, up to 12,000 characters)"
                  }
                },
                "required": [
                  "typed_data"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "primary_type": {
                    "type": "string",
                    "description": "the struct type being signed"
                  },
                  "digest": {
                    "type": "string",
                    "description": "final 32-byte signing digest"
                  },
                  "domain_separator": {
                    "type": "string",
                    "description": "hash of the EIP-712 domain"
                  },
                  "struct_hash": {
                    "type": "string",
                    "description": "hash of the message struct"
                  },
                  "signature_checked": {
                    "type": "boolean",
                    "description": "true when a signature was supplied"
                  },
                  "signature_valid": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "true when the signer matches the address"
                  },
                  "recovered_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "address recovered from the signature"
                  },
                  "note": {
                    "type": "string",
                    "description": "plain-language reading of the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "where the data was read from or how it was computed"
                  }
                },
                "required": [
                  "primary_type",
                  "digest",
                  "domain_separator",
                  "struct_hash",
                  "signature_checked",
                  "note",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "eip712 hash",
    "typed data digest",
    "domain separator",
    "verify typed signature",
    "permit signature digest"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-27T22:42:09.825Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "typed_data": {
          "type": "string",
          "description": "JSON with domain, types, primaryType and message (EIP-712 typed data, up to 12,000 characters)"
        }
      },
      "required": [
        "typed_data"
      ]
    },
    "exampleResponse": {
      "primary_type": "Mail",
      "digest": "0xbe609aee343fb3c4b28e1df9e632fca64fcfaede20f02e86244efddf30957bd2",
      "domain_separator": "0xf2cee375fa42b42143804025fc449deafd50cc031ca257e0b194a650a912090f",
      "struct_hash": "0xc52c0ee5d84264471806290a3f2c4cecfc5490626bf912d01f240d7a274b371e",
      "signature_checked": false,
      "signature_valid": null,
      "recovered_address": null,
      "note": "digest is keccak256(0x1901 + domain_separator + struct_hash), the 32 bytes that wallets sign for EIP-712 typed data. Pass signature and address to also check who signed it.",
      "source": "Computed locally (EIP-712 hashing, secp256k1 recovery)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "typed_data": "{\"domain\":{\"name\":\"Ether Mail\",\"version\":\"1\",\"chainId\":1,\"verifyingContract\":\"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\"},\"types\":{\"Person\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"wallet\",\"type\":\"address\"}],\"Mail\":[{\"name\":\"from\",\"type\":\"Person\"},{\"name\":\"to\",\"type\":\"Person\"},{\"name\":\"contents\",\"type\":\"string\"}]},\"primaryType\":\"Mail\",\"message\":{\"from\":{\"name\":\"Cow\",\"wallet\":\"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\"},\"to\":{\"name\":\"Bob\",\"wallet\":\"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\"},\"contents\":\"Hello, Bob!\"}}"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "primary_type": "Mail",
              "digest": "0xbe609aee343fb3c4b28e1df9e632fca64fcfaede20f02e86244efddf30957bd2",
              "domain_separator": "0xf2cee375fa42b42143804025fc449deafd50cc031ca257e0b194a650a912090f",
              "struct_hash": "0xc52c0ee5d84264471806290a3f2c4cecfc5490626bf912d01f240d7a274b371e",
              "signature_checked": false,
              "signature_valid": null,
              "recovered_address": null,
              "note": "digest is keccak256(0x1901 + domain_separator + struct_hash), the 32 bytes that wallets sign for EIP-712 typed data. Pass signature and address to also check who signed it.",
              "source": "Computed locally (EIP-712 hashing, secp256k1 recovery)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "typed_data": {
                      "type": "string",
                      "description": "JSON with domain, types, primaryType and message (EIP-712 typed data, up to 12,000 characters)"
                    }
                  },
                  "required": [
                    "typed_data"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "primary_type": {
                      "type": "string",
                      "description": "the struct type being signed"
                    },
                    "digest": {
                      "type": "string",
                      "description": "final 32-byte signing digest"
                    },
                    "domain_separator": {
                      "type": "string",
                      "description": "hash of the EIP-712 domain"
                    },
                    "struct_hash": {
                      "type": "string",
                      "description": "hash of the message struct"
                    },
                    "signature_checked": {
                      "type": "boolean",
                      "description": "true when a signature was supplied"
                    },
                    "signature_valid": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "true when the signer matches the address"
                    },
                    "recovered_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "address recovered from the signature"
                    },
                    "note": {
                      "type": "string",
                      "description": "plain-language reading of the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "where the data was read from or how it was computed"
                    }
                  },
                  "required": [
                    "primary_type",
                    "digest",
                    "domain_separator",
                    "struct_hash",
                    "signature_checked",
                    "note",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/chain/eip712-hash?typed_data=%7B%22domain%22%3A%7B%22name%22%3A%22Ether+Mail%22%2C%22version%22%3A%221%22%2C%22chainId%22%3A1%2C%22verifyingContract%22%3A%220xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC%22%7D%2C%22types%22%3A%7B%22Person%22%3A%5B%7B%22name%22%3A%22name%22%2C%22type%22%3A%22string%22%7D%2C%7B%22name%22%3A%22wallet%22%2C%22type%22%3A%22address%22%7D%5D%2C%22Mail%22%3A%5B%7B%22name%22%3A%22from%22%2C%22type%22%3A%22Person%22%7D%2C%7B%22name%22%3A%22to%22%2C%22type%22%3A%22Person%22%7D%2C%7B%22name%22%3A%22contents%22%2C%22type%22%3A%22string%22%7D%5D%7D%2C%22primaryType%22%3A%22Mail%22%2C%22message%22%3A%7B%22from%22%3A%7B%22name%22%3A%22Cow%22%2C%22wallet%22%3A%220xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826%22%7D%2C%22to%22%3A%7B%22name%22%3A%22Bob%22%2C%22wallet%22%3A%220xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB%22%7D%2C%22contents%22%3A%22Hello%2C+Bob%21%22%7D%7D",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "primary_type": "string",
    "digest": "string",
    "domain_separator": "string",
    "struct_hash": "string",
    "signature_checked": true,
    "signature_valid": true,
    "recovered_address": "string",
    "note": "string",
    "source": "string"
  }
}