Generate EIP-712 permit signature
GET/:network/permit/generate-signature
Generate 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 chain ID of the network. If not provided, the chain ID will be inferred from the network name.
The contract address of the ERC20 token.
The address of the token owner.
The address allowed to spend the tokens.
The amount of tokens to permit (in token units).
The deadline for the permit (as a timestamp).
Responses
- 200
- 400
Permit signature and message details generated successfully.
- application/json
- Schema
- Example (from schema)
Schema
Blockchain network name For the requested query
The chain ID of the network.
The address of the token owner.
The address allowed to spend the tokens.
The amount of tokens permitted (in token units).
The nonce of the owner at the time of signing.
The deadline for the permit (as a timestamp).
The contract address of the ERC20 token.
The name of the token.
The EIP-712 permit signature.
{
"network_name": "eth-mainnet",
"chain_id": 1,
"owner": "0xa24D38b1B49E32c1c63731810a8D42ec9dd9aa8C",
"spender": "0x858646372CC42E1A627fcE94aa7A7033e7CF075A",
"value": "1000000000000000000",
"nonce": "1",
"deadline": 1699999999,
"verifying_contract": "0x6b175474e89094c44da98b954eedeac495271d0f",
"tokenName": "DAI",
"signature": "0x..."
}
Invalid input or network configuration.