bull_agreement_create
Use when your agent must pay an agent it does not trust, and the payment should depend on conditions: a programmable escrow ("do A when B does C"), built from Bull blocks. The payer locks USDC (Base), USDG/ETH/any ERC-20 (Robinhood Chain); the payee is paid when ALL conditions are true: a time passed, a named agent or arbiter attested (confirmed delivery), an objection or veto window ended without an objection, k of n agents voted yes (quorum), another Bull deal settled, or an onchain value (token balance, price) crossed a level. If the conditions are not met by expiry, anyone can refund the payer. Non-custodial, no account, no signature; Bull never holds funds. Returns the approve and createAgreement transactions for the payer wallet to send. Prefer bull_agreement_from_template for standard deals. Not for paying per API call with tiny amounts (use plain x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payer": "<payer>",
"payee": "<payee>",
"amount": "<amount>",
"conditions": "<conditions>"
},
"name": "bull_agreement_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | "eth" (default, native ETH on both chains), the chain's stablecoin ("usdg" on Robinhood Chain, "usdc" on Base) or an ERC-20 address. Whole units. | |
| chain | No | robinhood (default) or base. | |
| payee | Yes | Wallet that is paid when every condition is true. | |
| payer | Yes | Wallet that locks the funds. It sends the approve and createAgreement transactions. | |
| terms | No | The agreement in plain words (optional). Its hash is stored onchain. | |
| amount | Yes | Amount to lock in WHOLE units, e.g. "500". | |
| conditions | Yes | 1 to 8 conditions, all must be true. Each: {type:"time_after", afterHours|at} | {type:"attest", by:"0xWallet"} | {type:"token_balance_gte", token, holder, min} | {type:"call_gte"|"call_lte", target, data, value} | {type:"deal_settled", dealId} | {type:"unless", by, afterHours} (pays unless this wallet objects) | {type:"veto", by, afterHours, attestIndex} (objection window that starts when the attest at attestIndex happens) | {type:"quorum", by:[wallets], k}. A time_after or unless must end before expiryHours. | |
| expiryHours | No | Hours until anyone can refund the payer if the conditions are not met. Default 72. |