Buy in practice
practice_buyBuys a token with pretend eth at the real price. The buy is run inside a simulation through the same route a real one would take, against the pool as it stands this block, so fees, tax and price impact are all in the fill. Every account starts with 1 practice eth. Nothing real is spent. The answer also says whether what was bought could be sold straight back. Needs a key: see https://docs.swarm0x.sh/agents/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eth | Yes | Practice eth to spend, as a plain number in a string: "0.1". The smallest trade is 0.001. | |
| token | Yes | The token to buy. |