Skip to content

fundEscrow ​

solidity
function fundEscrow(uint256 id) external

Only the client can fund an escrow, and the escrow must be Created.

Before this call, the client should approve the escrow contract to spend at least escrow.amount of escrow.token.

The contract then calls transferFrom and changes:

text
Created → Funded

Event ​

solidity
EscrowFunded(id, amount)

Reverts ​

  • NotClient()
  • InvalidStatus(current, Created)
  • TransferFailed() when the token returns false

A token can also revert internally; that revert bubbles up.

Documentation grounded in the current ERC-20 escrow implementation.