# Magic Gas

{% hint style="warning" %}
Magic Gas is a gasless mechanism and hence only supported via USDC on Base. This is why we recommend funding your wallet with USDC on Base for best experiences on the platform.
{% endhint %}

Magic Gas is our way of simplistically bridging the gap between the requirement of needing native tokens for paying gas fees on every trade.

The Magic Gas feature eliminates the need to individually onramp, fund or hold native gas tokens for paying gas. On demand, at the click of a button, you can convert a small part of your USDC on Base to ETH on Base or SOL on Solana - completely without needing any gas.

### How It Works?

Whenever your account is low on native gas tokens for a trade, you will be able to see a magic gas button. Depending on the native gas token.

### Getting ETH for Base with Magic Gas

This will convert 1 USDC from your Base wallet to $1 worth of ETH on Base to pay for network fees on transactions.

### Getting SOL for Solana with Magic Gas

This will convert 5 USDC from your Base wallet to $5 worth of SOL on Solana to pay for network fees and account rent fees on Solana.

### Why the difference in Base and Solana?

Account Rent fees is a concept native to Solana which charges anywhere from 40-60 cents (changes with value of SOL) as rent for creating an account to hold your tokens. Each new token that you hold requires rent.

Converting 5 USDC instead of 1 allows you to get more transactions done before you need to use the Magic Gas feature again.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onchained.gitbook.io/onchained/trading/magic-gas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
