Type alias SignPermitProps

SignPermitProps: {
    chainId: number;
    contractAddress: Hex;
    deadline: bigint;
    erc20Name: string;
    nonce: bigint;
    ownerAddress: Hex;
    permitVersion?: string;
    spenderAddress: Hex;
}

Type declaration

  • chainId: number

    Numerical chainId of the token contract

  • contractAddress: Hex

    Address of the token to approve

  • deadline: bigint

    Expiration of this approval, in SECONDS

  • erc20Name: string

    Name of the token to approve. Corresponds to the name method on the ERC-20 contract. Please note this must match exactly byte-for-byte

  • nonce: bigint

    Permit nonce for the specific address and token contract. You can get the nonce from the nonces method on the token contract.

  • ownerAddress: Hex

    Owner of the tokens. Usually the currently connected address.

  • Optional permitVersion?: string

    Defaults to 1. Some tokens need a different version, check the PERMIT INFORMATION for more information

  • spenderAddress: Hex

    Address to grant allowance to

Generated using TypeDoc