Skip to main content

Generate EIP-712 permit signature

GET 

/:network/permit/generate-signature

Generate EIP-712 permit signature

Request

Path Parameters

    network stringrequired

    The blockchain network name (e.g., eth-mainnet).

Query Parameters

    token_name stringrequired

    The name of the token (e.g., DAI).

    chain_id number

    The chain ID of the network. If not provided, the chain ID will be inferred from the network name.

    contract_address stringrequired

    The contract address of the ERC20 token.

    owner stringrequired

    The address of the token owner.

    spender stringrequired

    The address allowed to spend the tokens.

    value stringrequired

    The amount of tokens to permit (in token units).

    deadline numberrequired

    The deadline for the permit (as a timestamp).

Responses

Permit signature and message details generated successfully.

Schema

    network_name stringrequired

    Blockchain network name For the requested query

    chain_id numberrequired

    The chain ID of the network.

    owner stringrequired

    The address of the token owner.

    spender stringrequired

    The address allowed to spend the tokens.

    value stringrequired

    The amount of tokens permitted (in token units).

    nonce stringrequired

    The nonce of the owner at the time of signing.

    deadline numberrequired

    The deadline for the permit (as a timestamp).

    verifying_contract stringrequired

    The contract address of the ERC20 token.

    tokenName stringrequired

    The name of the token.

    signature stringrequired

    The EIP-712 permit signature.

Loading...