Skip to content

Commit

Permalink
Funds withdrawal clarification in 2.5 doc (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedriftofwords authored Jan 25, 2025
1 parent 0542021 commit 81cc30c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/content/vrf/v2-5/subscription/create-manage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To create a VRF 2.5 subscription:

1. When the subscription is successfully created, there will be an alert in the upper right corner telling you that the subscription was successfully created. Click **Home** to navigate back to your main dashboard.

1. Your new subscription shows in the **My Subscriptions** list, along with previous V2 subscriptions you might have. Click the Subscription ID for your new subscription in the list.
1. Your new subscription shows in the **My Subscriptions** list, along with any previous V2 subscriptions you might have. Click the Subscription ID for your new subscription in the list.

### Add a consumer

Expand All @@ -42,6 +42,18 @@ To fund your subscription:

1. In **Amount to fund**, enter the amount you want to fund your subscription. Your wallet balance is displayed below the **Asset** field for easier reference. Select **Confirm** to fund your wallet, and then confirm the resulting prompts in MetaMask or other wallet browser extension.

### Cancel your subscription and withdraw funds

To withdraw your funds from a subscription, you must cancel the subscription.

1. Open the Subscription Manager at [vrf.chain.link](https://vrf.chain.link/) and click the ID of your new subscription under the **My Subscriptions** list. The subscription details page opens.

1. On your subscription details page, expand the **Actions** menu and select **Cancel subscription**. A field displays, prompting you to add the wallet address you want to send the remaining funds to.

1. Enter your wallet address and click **Cancel subscription**. MetaMask opens and asks you to confirm the transaction. After you approve the transaction, Chainlink VRF closes your subscription account and sends the remaining LINK to your wallet.

If your subscription's admin address is a contract instead of an EOA, you may not be able to cancel the subscription directly. In this case, you must transfer ownership of your subscription to an EOA so that you can cancel the subscription and withdraw your funds.

## Create a subscription programmatically

If you prefer to create, fund and manage your subscriptions programmatically, you can either deploy a subscription manager contract or use your network's block explorer:
Expand Down

0 comments on commit 81cc30c

Please sign in to comment.