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).
Parameters
Section titled “Parameters”chainId
Section titled “chainId”number
string
string
Returns
Section titled “Returns”Promise<{ domain: PermitDomain; nonce: string; } | null>