get_prices
Prices. kind='gas' (chain): EIP-1559 gas recommendations (slow/standard/fast) computed from our pool on an EVM chain, 1 weighted unit. kind='token' (symbols, comma-separated e.g. 'ETH,USDC'): current token prices in USD. Use it before sending a transaction (gas) or to value a balance (token). Not for what a FlexYield call costs in units (use get_quote) and not for plan prices (use list_plans). Returns JSON: gas → chain, base_fee_per_gas, recommendations, computed_from, computed_at, unit_weight; token → prices, quote, source, checked_at. Read-only. Needs your API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 'gas' or 'token' | |
| chain | No | For 'gas': EVM chain slug, e.g. 'eth_mainnet' | |
| symbols | No | For 'token': comma-separated symbols, e.g. 'eth,btc' |