> For the complete documentation index, see [llms.txt](https://docs.eclipse.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eclipse.xyz/developers/tutorials-and-guides/developer-guides/dapp-deployment-tutorial-eclipse-devnet/solana-cli-and-solana-keypair/step-4-claim-devnet-eth-for-transaction-fees.md).

# Step 4: Claim Devnet ETH for Transaction Fees

To deploy your smart contract to the Eclipse blockchain's devnet, you'll need devnet ETH to cover transaction fees. Despite the use of Ethereum as the transaction currency, the Solana CLI provides a convenient method for claiming devnet tokens, which in this context, are used similarly to ETH for transaction fees on the Eclipse blockchain's devnet. This step will guide you through the process of obtaining these tokens.

**Why You Need Devnet ETH**

* **Transaction Fees**: Deploying smart contracts and executing transactions on the blockchain requires paying fees, which are denoted in ETH within the Eclipse devnet environment.
* **Testing Environment**: Having devnet ETH allows you to test your smart contracts thoroughly, simulating real-world transaction conditions without the need for real ETH.

**Claiming Devnet ETH**

1. **Open Your Terminal**:
   * Ensure you have access to your terminal or command line interface where the Solana CLI is installed. Windows users should use WSL for this process.
2. **Confirm CLI Configuration for Devnet**:
   * Before proceeding, ensure that your Solana CLI is correctly configured to interact with the Eclipse blockchain's devnet. This setup should have been completed in previous steps.
3. **Execute the Airdrop Command**:
   * To claim devnet ETH, use the same Solana CLI airdrop command, which in this context, facilitates the acquisition of the necessary tokens for development activities:

     ```bash
     solana airdrop 0.2
     ```
   * This command requests 10 units of the devnet currency, which, for the purposes of Eclipse blockchain development, will be used as if it were ETH. Adjust the amount as needed based on your testing requirements.<br>

     <figure><img src="https://lh7-us.googleusercontent.com/sRGKVe5kyWk0mivls04qWA7G6wda8pJYslV8sOesYlBYPR4W41gHPZ7iLd2w-Ensq-VRaaumvDenNF2y8fZ4z9IQ_-sF-whS8Jb8QwCW-3ArldpplnMS41YuTfAO545OBOd296EGtkpAdjwT1gl1JpY" alt=""><figcaption><p>Example Output</p></figcaption></figure>
4. **Verify Receipt of Tokens**:
   * After requesting the airdrop, confirm that you've received the tokens by checking your balance:

     ```bash
     solana balance
     ```
   * The output will show your updated balance, reflecting the receipt of the devnet tokens.

**Troubleshooting**

* **Issues with Airdrop**: If the airdrop doesn't seem to work, double-check that your configuration is set to the Eclipse blockchain's devnet. Use `solana config get` to verify your settings.
* **Delay in Token Receipt**: Network congestion or delays can occasionally affect the timing of the airdrop. If your balance doesn't update immediately, give it a few minutes and check again.

**Next Steps**

* With the necessary devnet ETH in your account, you're prepared to move forward with deploying and testing your smart contracts on the Eclipse blockchain's devnet. This crucial step ensures that you can conduct thorough testing in a realistic but safe environment before any mainnet deployment.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.eclipse.xyz/developers/tutorials-and-guides/developer-guides/dapp-deployment-tutorial-eclipse-devnet/solana-cli-and-solana-keypair/step-4-claim-devnet-eth-for-transaction-fees.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
