getPermitSignature
Description:
Get permit signature for ERC20 token
Arguments:
Name | Type | Required | Description |
---|---|---|---|
contract | Erc20Abi | Yes | The ERC20 token contract |
ownerAddress | string | Yes | The user address |
spenderAddress | string | Yes | The address of the spender |
Returns:
type Output = {
amount: bigint
deadline: number
v: number
r: string
s: string
}