Prepare a tokenized-stock buy (Coinbase B20 on Base) as a delegable swap pair
otto_prepare_stock_buyPrepare the EXACT otto_prepare_swap pair (envelope + prepareInput) that buys one of the executable Coinbase B20 tokenized equities on Base with USDC, as a LI.FI route through the fenced diamond whose receiver is the signing account. The token comes from the registry row named by executableEquityId and is never an input; the caller's registryCommitment must equal the commitment recomputed over the current record. The WORST PERMISSIBLE FILL (amount over the route's own floor) is checked against the equity's own Chainlink total-return mark and refused when it exceeds the pinned tolerance, or when the feed is frozen (> 24 h). Returns the pair unchanged plus a preview; never signs or submits — submit the pair through otto_submit_under_delegation under the end user's per-swap cap. Every envelope from this server is valid for 300 seconds from construction (valid_until); a stale envelope is refused by the verifier — request a fresh one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Exact USDC amount to spend, in atomic units (6 decimals). | |
| slippage | Yes | ||
| client_ref | No | ||
| accountProfile | Yes | ||
| executableEquityId | Yes | The executable equity id the READ half served, e.g. b20-nvda (Coinbase B20 on Base only). | |
| registryCommitment | Yes | The registry commitment served with that row. It must equal the commitment this server recomputes over the CURRENT record; a stale or foreign row is refused by name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | Yes | ||
| envelope | Yes | ||
| prepareInput | Yes | ||
| registry_commitment | Yes |