reef_prepare
Prepare an action as a link that opens Reef, Nodal or Handshake with everything filled in, plus the steps and a rough gas cost. Actions: swap (Reef), nodal_swap, add_liquidity, remove_liquidity, fill_offer (Handshake), create_offer (Handshake), lock (Reef Lock). Never signs or sends: the person confirms in their own wallet.
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": {
"action": "<action>"
},
"name": "reef_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | swap: token you get: BDAG, a symbol with a Reef pool (e.g. REEF, NOCAP), or a 0x token address | |
| from | No | swap: token you pay: BDAG, a symbol with a Reef pool (e.g. REEF, NOCAP), or a 0x token address | |
| token | No | add/remove liquidity or lock: the token (or LP address for lock): BDAG, a symbol with a Reef pool (e.g. REEF, NOCAP), or a 0x token address | |
| action | Yes | ||
| amount | No | swap: amount of `from` | |
| offer_id | No | fill_offer: Handshake offer number |