# Deposit and Withdraw Funds

After adding contracts, you need to ensure your subscription has sufficient funds to pay for callback gas fees. You can deposit funds through the web interface or using on-chain functions.<br>

{% tabs %}
{% tab title="Deposit via Web Interface" %}

1. **Navigate to Subscription Management**
   * Go to [supra.com/data/dvrf](https://supra.com/data/dvrf)  (for third party EVM networks only)
   * Connect your wallet (subscription owner)
   * Click on "My Subscription"
2. **Add Funds**
   * Click "Deposit Funds" from the menu
   * Enter the amount to deposit
   * Review current balance and minimum balance requirement.&#x20;
   * Confirm the transaction in your wallet
3. **Verify Deposit**
   * Check updated balance in the interface
   * Ensure balance is above minimum threshold
   * Monitor deposit balance alerts.
     {% endtab %}

{% tab title="Deposit via onchain contracts" %}
For EVM Chains

```solidity
solidity

// Deposit funds to susbcription
interface IDeposit {
    function depositFund() external payable;
}

// Check minimum balance requirement (additional)
uint128 minBalance = deposit.getMinBalanceLimit(maxGasPrice, maxGasLimit);
```

{% endtab %}
{% endtabs %}

### Withdraw Funds

You can withdraw excess funds from your subscription when needed via UI or via onchain functions.&#x20;

{% hint style="info" %}
**Important**: You cannot withdraw funds while you have pending random number requests
{% endhint %}

{% tabs %}
{% tab title="Via Subscription Manager UI" %}

1. Navigate to "My Subscription".
2. Click "Withdraw Funds" from the Menu.
3. Enter withdrawal amount.
4. Confirm transaction in your wallet.
   {% endtab %}

{% tab title="Via Onchain Functions" %}
EVM Chains

```solidity
// Withdraw funds
deposit.withdrawFund(withdrawAmount);

```

{% endtab %}
{% endtabs %}


---

# 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://supraoracles.gitbook.io/supra/dvrf/build-third-party-evm-networks/deposit-and-withdraw-funds.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.
