bull_agreement_from_template
Use to settle with another agent in one call instead of assembling conditions: pick a block (template), fill its fields. Examples: arbiter_escrow (a third agent confirms delivery), milestones (pay per confirmed step), optimistic (paid automatically unless the payer objects in time), confirmed_with_cooling (arbiter confirms, then a veto window), panel (k of n agents vote), two_of_three, performance_bond. Non-custodial, no account. Returns the approve and createAgreement transactions for the payer to send. On Base pass chain "base" and asset "usdc".
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": {
"template": "<template>",
"payer": "<payer>",
"payee": "<payee>",
"amount": "<amount>"
},
"name": "bull_agreement_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | panel: how many arbiters must vote yes. | |
| op | No | price_trigger: "gte" or "lte". token_price_trigger: "above" or "below". | |
| min | No | balance_trigger: minimum balance. | |
| ref | No | Partner code (optional). | |
| data | No | price_trigger: hex calldata of a view call that returns a uint256. | |
| 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 gets paid. | |
| payer | Yes | Wallet that locks the funds. | |
| price | No | token_price_trigger: the level, e.g. "0.0002". | |
| terms | No | The deal in plain words (optional). | |
| token | No | balance_trigger: token address. token_price_trigger: the token whose price triggers. | |
| value | No | price_trigger: threshold as an integer. | |
| amount | Yes | Amount in WHOLE units, e.g. "500". | |
| dealId | No | after_deal: the Bull escrow deal that must settle first. | |
| holder | No | balance_trigger: wallet to watch. | |
| payees | No | split_payment: 2 to 10 wallets that get paid. | |
| shares | No | split_payment: one positive number per payee, e.g. [70, 30]. | |
| target | No | price_trigger: contract to read. | |
| arbiter | No | arbiter_escrow, milestones, performance_bond, confirmed_with_cooling: wallet that confirms. two_of_three: the tie-breaking third wallet (payer, payee and arbiter vote, any two release). Must be a third wallet. | |
| priceIn | No | token_price_trigger: "eth" (default, exact, the pool's quote asset) or "usd" (converted once at today's ETH/USD rate, NOT a live dollar level). token_price_trigger also uses the token prop (token whose price triggers). Works on robinhood and base: pass the same chain as the agreement; on Base the pool must be paired with ETH, WETH or USDC (a USDC pool: level in USDC, priceIn usd = USDC). | |
| arbiters | No | panel: 1 to 10 arbiter wallets. | |
| payments | No | recurring_payment: number of payments, 2 to 12 (amount is ONE payment). | |
| template | Yes | Template name from bull_agreement_templates. All: arbiter_escrow, two_of_three, panel, optimistic, confirmed_with_cooling, milestones, scheduled_payment, recurring_payment, split_payment, after_deal, balance_trigger, price_trigger, token_price_trigger (Robinhood and Base), performance_bond. (delivery_vs_payment is a swap: use bull_settle.) | |
| stepHours | No | milestones: hours between milestone deadlines. Default 168. | |
| afterHours | No | scheduled_payment: hours from now until the payee can be paid. | |
| everyHours | No | recurring_payment: hours between payments. Default 168. | |
| milestones | No | milestones: number of steps, 2 to 8. | |
| expiryHours | No | Hours until the payer can be refunded. Default 72. | |
| windowHours | No | optimistic: hours the payer has to object. Default 24. confirmed_with_cooling: veto window in hours after the arbiter confirms. Default 24. |