Validate an EIP-712 permit signature
GET/:network/permit/validate-signature
Validate an EIP-712 permit signature
Request
Path Parameters
The blockchain network name (e.g., eth-mainnet).
Query Parameters
The name of the token (e.g., DAI).
The owner of the tokens.
The address of the spender allowed to spend the tokens.
The amount of tokens to be spent (in Wei).
The nonce of the owner at the time of signing.
The deadline (as a Unix timestamp) for the permit.
The EIP-712 signature being validated.
The address of the contract to verify against.
The chain ID of the blockchain network.
Responses
- 200
- 400
EIP-712 signature validated successfully.
- application/json
- Schema
- Example (from schema)
Schema
Indicates if the signature is valid.
The blockchain network name.
The chain ID of the blockchain network.
The owner of the tokens.
The address of the spender allowed to spend the tokens.
The amount of tokens to be spent (in Wei).
The nonce of the owner at the time of signing.
The deadline (as a Unix timestamp) for the permit.
The deadline (as a Date object) for the permit.
The address of the contract to verify against.
The EIP-712 signature being validated.
{
"is_valid": true,
"network_name": "eth-mainnet",
"chain_id": 1,
"owner": "0x1234567890abcdef1234567890abcdef12345678",
"spender": "0xabcdefabcdefabcdefabcdefabcdefabcdef1234",
"value": "1000000000000000000",
"nonce": "1",
"deadline_timestamp": "1700000000",
"deadline_date": "2022-12-31T23:59:59Z",
"verifying_contract": "0xContractAddress1234567890abcdef1234567890abcdef",
"signature": "0xSignature1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
}
Invalid input, signature, or network configuration.