You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/quickstarts/eth-balance-monitor.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Before you start this tutorial, complete the following items:
54
54
55
55
<Accordiontitle="Configure the address watch list"number={2}>
56
56
57
-
Before your contract will fund an address, you must set the `watchList` address array with `minBalancesWei` and `topUpAmmountsWei` variables. For demonstration purposes, you configure your own wallet as the top-up address. This makes it easy to see the ETH being sent as part of the automated top-up function. After you complete this tutorial, you can configure any wallet or contract address that you want to keep funded.
57
+
Before your contract will fund an address, you must set the `watchList` address array with `minBalancesWei` and `topUpAmountsWei` variables. For demonstration purposes, you configure your own wallet as the top-up address. This makes it easy to see the ETH being sent as part of the automated top-up function. After you complete this tutorial, you can configure any wallet or contract address that you want to keep funded.
58
58
59
59
1. In the list of functions for your deployed contract, run the `setWatchList` function. This function requires an `addresses` array, a `minBalancesWei` array that maps to the addresses, and a `topUpAmountsWei` array that also maps to the addresses. In Remix, arrays require brackets and quotes around both addresses and integer values. For this example, set the following values:
60
60
@@ -104,7 +104,7 @@ The upkeep runs the `checkUpkeep` function in your contract, which checks the ba
104
104
105
105
1. Go to [automation.chain.link](https://automation.chain.link/), view your new upkeep, and confirm that it is performing upkeeps in the **History** list.
106
106
107
-
1. View your contract address and your wallet address at [mumbai.polygonscan.com](https://mumbai.polygonscan.com/) to see the transactions happening between your contract and your wallet address.
107
+
1. View your contract address and your wallet address at the [Sepolia block explorer](https://sepolia.etherscan.io/) to see the transactions happening between your contract and your wallet address.
108
108
109
109
The example continues to run until your upkeep runs out of LINK, your contract runs out of ETH, or until you manually pause or cancel the upkeep.
|`UI_GIVEAWAY_MANAGER_CONTRACT_ADDRESS`| The address of the Giveaway Contract Manager contract that you [deployed earlier](#deploy-contract)|
237
237
|`UI_LINK_TOKEN_CONTRACT_ADDRESS`| For Ethereum Sepolia: <CopyTexttext="0x779877A7B0D9E8603169DdbD7836e478b4624789"code/> <br/> See all [LINK token contract addresses](/resources/link-token-contracts)|
238
-
|`UI_KEEPER_REGISTRY_CONTRACT_ADDRESS`| For Ethereum Sepolia: <CopyTexttext="0x86EFBD0b6736Bed994962f9797049422A3A8E8Ad"code/> <br/> This app currently supports Automation v1.2. See all [Automation registry contract addresses](/chainlink-automation/overview/supported-networks/)|
238
+
|`UI_KEEPER_REGISTRY_CONTRACT_ADDRESS`| For Ethereum Sepolia: <CopyTexttext="0xE16Df59B887e3Caa439E0b29B42bA2e7976FD8b2"code/> <br/> This app currently supports Automation v1.2. See all [Automation registry contract addresses](/chainlink-automation/overview/supported-networks/)|
239
239
240
240
1. Navigate to the `/client/packages/ui` directory, and run these commands to set up your UI environment variables. Do not use quotes to assign values:
1. Navigate back to Remix and find the `setForwarderAddress` function. Paste your forwarder address and click click **transact** to run the function. MetaMask asks you to confirm the transaction.
175
+
176
+
Now that you've registered the upkeep and configured your contract with your new upkeep's forwarder address, Chainlink Automation handles the rest of the process.
177
+
178
+
</Accordion>
179
+
180
+
<Accordiontitle="Configure the subscription watch list"number={5}>
181
+
182
+
Before your contract will fund a subscription, you must set the `watchList` address array with `minBalancesJuels` and `topUpAmountsJuels` variables. For demonstration purposes, you configure your own wallet as the top-up address. This makes it easy to see the ETH being sent as part of the automated top-up function. After you complete this tutorial, you can configure any wallet or contract address that you want to keep funded.
183
+
184
+
1. In the list of functions for your deployed contract, run the `setWatchList` function. This function requires an `subscriptionIds` array, a `minBalancesJuels` array that maps to the subscriptions, and a `topUpAmountsJuels` array that also maps to the subscriptions. In Remix, arrays require brackets and quotes around integer values. For this example, set the following values:
185
+
186
+
-**subscriptionIds**: `["SUB_ID_1", "SUB_ID_2"]`
187
+
-**minBalancesJuels**: `["2000000000000000000"]`
188
+
-**topUpAmountsJuels**: `["10000000000000000"]`
189
+
190
+
These values tell the top up contract to top up the specified address with 0.01 LINK if the address balance is less than 2 LINK. These settings are intended to demonstrate the example using testnet faucet funds. For a production application, you might set more reasonable values that top up a smart contract with 10 LINK if the balance is less than 1 LINK.
191
+
192
+
1. After you configure the function values, click **transact** to run the function. MetaMask asks you to confirm the transaction.
180
193
181
-
1.Fund the upkeep with enough LINK to monitor your VRF subscriptions.
194
+
1.In the functions list, click the `getWatchList` function to confirm your settings are correct.
0 commit comments