Skip to content
docs

simulatePermit

simulatePermit(rpc, chainId, token, from, callData): Promise<void>

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

Runs the exact permit call against the latest block. Resolves when the token accepts it within the hook’s gas; throws when it reverts, needs more gas than the hook has, or no RPC answered — the order is then not signed.

CowRpc

number

string

string

`0x${string}`

Promise<void>