1

I have an application where I need to register new upkeep without using the provided GUI. Here, under Keeper Contract section I found we can do that by interacting with register method in UpkeepRegistrationRequests.sol contract. But I cannot find the address on the Rinkeby network or any other reference on how to do it.

I want to register new upkeep either through my own contract or by using frameworks like ethers or web3 if I get ABI and address to interact with.

P.S. I am sorry if this is trivial. I am new to this space

1 Answer 1

0

Here is sample code to programmatically register an upkeep. https://gist.github.com/stone4419/4b5129e184a20f6f85b2cc613381d54f

The default contract ids are for Kovan. You can find the Rinkeby or other testnet or mainnet values here: LINK tokens: https://docs.chain.link/docs/link-token-contracts/ Keepers registry: https://keepers.chain.link/rinkeby Test LINK faucet: https://faucets.chain.link/rinkeby

2
  • 1
    It works!! Just want to know what is SOURCE = 110; Jul 7 at 13:34
  • From the source code comments: “source application sending this request” It’s a way for us to track how the registration was created. Jul 12 at 16:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.