Skip to content
docs

detectPermit

detectPermit(rpc, chainId, token, owner): Promise<{ domain: PermitDomain; nonce: string; } | null>

Defined in: protocol-swap2-cow/src/permit.ts:176

The token’s EIP-2612 domain and the owner’s current nonce, or null when the token does not prove plain EIP-2612 (or an RPC did not answer — the caller then takes the approval transaction).

CowRpc

number

string

string

Promise<{ domain: PermitDomain; nonce: string; } | null>