# Best Practices

Follow these best practices to ensure smooth operation and avoid common issues.

* **Always check balance first**: Before adding balance, check if there's already sufficient balance.
* **Error handling**: Implement proper error handling for blockchain transactions.
* **Default values**: Use reasonable default values for balance amounts (e.g., 0.05 ETH).
* **Chain ID**: Always ensure the correct chain is selected before adding balance.
* **Subscription check**: Verify if the user is subscribed before adding a balance.


---

# 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://documentation.skynet.io/skynet/build-your-project-on-skynet/interact-with-ai-service-to-create-an-agent/adding-balance-to-a-subnet/best-practices.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.
