Skip to main content

Eip712PermitERC3643TypedData

domain objectrequired
namestring

Name of the signing domain

Example: Tc-Token
versionstring

The current version of the signing domain

Example: 1.0.0
chainIdnumber

Numeric identifier of the blockchain

Example: 137
verifyingContractstring

Address of the contract on the blockchain that verifies the signature

Example: 0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC
types objectrequired
EIP712Domain object[]
  • Array [
  • namestring
    typestring
  • ]
  • Permit object[]
  • Array [
  • ownerstring
    valuestring
    noncestring
    spenderstring
    deadlinestring
  • ]
  • primaryTypestringrequired
    Example: Permit
    message objectrequired
    ownerstring

    Address of the account that owns the tokens

    Example: 0x123456A9571241e97cDb61E3FfD1937D885454dd
    valuestring

    Amount of tokens allowed to be transferred to the Exchange

    Example: 20
    noncestring

    Wallet signer nonce

    Example: 12
    spenderstring

    The wallet/SC that moves the tokens

    Example: 0x456456A9571241e97cDb61E3FfD1937D885454dd
    deadlinestring

    Timestamp until the signature is still valid

    Example: 1324685469
    Eip712PermitERC3643TypedData
    {
    "domain": {
    "name": "Tc-Token",
    "version": "1.0.0",
    "chainId": 137,
    "verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
    },
    "types": {
    "EIP712Domain": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "Permit": [
    {
    "owner": "string",
    "value": "string",
    "nonce": "string",
    "spender": "string",
    "deadline": "string"
    }
    ]
    },
    "primaryType": "Permit",
    "message": {
    "owner": "0x123456A9571241e97cDb61E3FfD1937D885454dd",
    "value": "20",
    "nonce": 12,
    "spender": "0x456456A9571241e97cDb61E3FfD1937D885454dd",
    "deadline": "1324685469"
    }
    }