create_escrow
Secure your crypto trades by creating a peer-to-peer escrow deal on Base for ETH or ERC-20 tokens. Funds lock in a smart contract; ERC-20 approvals are handled automatically.
Instructions
Create a new P2P escrow deal on Base. For ETH deals, the ETH is locked in the contract. For ERC-20 deals, tokens are transferred from your wallet (approval handled automatically). A flat escrow fee is charged in ETH. Requires DEPLOYER_PRIVATE_KEY env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | ERC-20 token address. Omit or set to '0x0000000000000000000000000000000000000000' for ETH escrow | |
| amount | Yes | Amount to escrow (ETH in ether e.g. '0.01', or token amount in human-readable units) | |
| seller | Yes | Seller wallet address — receives funds when buyer releases | |
| description | Yes | Description of the deal / what is being traded |