buy_etf_token
Simulate ETF token purchases using specified input tokens across multiple EVM chains to preview transaction outcomes before execution.
Instructions
Buy ETF tokens using input tokens (simulation only - no actual transaction).
Args:
chain_id: Chain ID (1, 10, 56, 100, 137, 8453, 42161)
etf_token_address: Address of the ETF token to buy
input_token_address: Address of token to spend (use 'native' for ETH/BNB/MATIC/xDAI)
input_amount: Amount of input token to spend (in token units, e.g. '1.5')
slippage: Slippage tolerance as percentage (default: 2.0)
Returns:
JSON string with transaction simulation details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | Yes | ||
| etf_token_address | Yes | ||
| input_token_address | Yes | ||
| input_amount | Yes | ||
| slippage | No |
Input Schema (JSON Schema)
{
"properties": {
"chain_id": {
"title": "Chain Id",
"type": "string"
},
"etf_token_address": {
"title": "Etf Token Address",
"type": "string"
},
"input_amount": {
"title": "Input Amount",
"type": "string"
},
"input_token_address": {
"title": "Input Token Address",
"type": "string"
},
"slippage": {
"default": 2,
"title": "Slippage",
"type": "number"
}
},
"required": [
"chain_id",
"etf_token_address",
"input_token_address",
"input_amount"
],
"type": "object"
}