Write a buy for my wallet to sign
prepare_buyWrites a buy as unsigned transactions for your own wallet to sign. The nest holds no keys and sends nothing. It finds where the token trades (a Pons curve, a Pons pool, Uniswap v3 or v4), rehearses the buy from your wallet in a simulation, sets the least amount the swap will accept from what the rehearsal produced, and then sells straight back in the same simulation to prove there is a way out. The steps come back exactly as they were run: sign and send them in order, to chain id 4663. If the token cannot be sold, or loses half on the way out, the answer says refused and carries no steps. amount is in what the venue is paid in, which the answer names in venue.pays: eth for most tokens, usdg or weth where the pool is priced in that. A verdict level of "unknown" means the nest could not find out. It is not a pass: do not buy on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The wallet that will sign and pay. | |
| fund | No | True rehearses as if the wallet held plenty of eth. | |
| token | Yes | The token to buy. | |
| amount | Yes | How much to spend, as a plain number in a string: "0.05". | |
| slippageBps | No | How far below the rehearsed amount the swap may fill before it reverts, in hundredths of a percent. 100, one percent, when left out. |