> For the complete documentation index, see [llms.txt](https://docs.shredpay.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shredpay.xyz/developers/agent-wallet/guides/gas-management.md).

# Manage Gas

Outline:

* `GET /api/gas/estimate?chain_id=…` — current gas price and a recommendation.
* `POST /api/gas/swap` — convert USDC to ETH on Base, sponsored by ShredPay.
* Pre-flight check pattern: estimate → swap if low → send.
* What to do on chains without `gas_swap` (manual native-token funding).
* Monitoring native balances across chains.
