Buy (guarded)
buyPurchases a Solana token with SOL via Jupiter only if Dexra's token and preflight checks pass; executes a dry run unless live trading is enabled.
Instructions
Buys the token with SOL through Jupiter, only if Dexra's token check and preflight both pass. Dry run unless the operator enabled live trading. status is blocked, dry_run, executed, failed or error; decision.reasons says why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Solana token mint address (base58) | |
| amount_sol | Yes | SOL to spend, at most MAX_TRADE_SOL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||