A simple TypeScript based CLI tool that allows you to automatically withdraw all earned LINK from FluxAggregator contracts. Discovery of the FluxAggregator contracts to withdraw is performed via market.link, specifically the /v1/feeds endpoint.
npm i
yarn
Variable Name | Default | Description |
---|---|---|
WALLET_ADDRESS | 0x501698a6f6f762c79e4d28e3815c135e3f9af996 | The Chainlink node wallet address that is added as the oracle within each deployed FluxAggregator.sol. |
RPC_URL | http://localhost:8545 | The Ethereum JSON RPC url to use for querying and sending transactions on-chain. |
PRIVATE_KEY | null | The private key of the admin wallet added within the deployed FluxAggregator.sol contracts, used to send the withdraw transactions. |
WITHDRAW_TO | null | The Ethereum address to withdraw the earned LINK to. |
GAS_PRICE | 20000000000 | The gas price in wei to use when sending the withdraw transactions. |
via npm:
WITHDRAW_TO="0x0" PRIVATE_KEY="0x0" npm run withdraw
via yarn:
WITHDRAW_TO="0x0" PRIVATE_KEY="0x0" yarn withdraw