buy_token
Buy tokens on Basis protocol using USDB with elastic pricing that increases price with demand. Preview purchases to adjust for token-specific tax rates in slippage.
Instructions
Buy a token using USDB. Elastic supply — buying increases price. Previews before executing. NOTE: Floor+ tokens (multiplier 1-99) and prediction market tokens have 1.5% tax, other tokens have 0.5% — account for this in slippage.
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": {
"token": "<token>",
"amount_usdb": "<amount_usdb>"
},
"name": "buy_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token name (STASIS) or address | |
| amount_usdb | Yes | USDB to spend | |
| slippage_percent | No | Max slippage % (default: 1) | |
| wrap | No | Wrap output to wSTASIS (default: false) |