If you deployed any traps to the Drosera Holesky testnet, it is very easy to deploy them to the new Drosera Hoodi testnet.


First, navigate to the directory your drosera.toml file is in and open the file in your favorite editor.

ethereum_rpc = "<https://ethereum-holesky-rpc.publicnode.com>"
drosera_rpc = "<https://relay.testnet.drosera.io>"
...

[traps]

[traps.mytrap]
response_contract = "da890040af0533d98b9f5f8fe3537720abf83b0c"
...
address = "0xCEbc5a0cCF165ff62f0f26766759D6Ee1B37d739"

[traps.othertrap]
response_contract = "da890040af0533d98b9f5f8fe3537720abf83b0c"
...
address = "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f"

Update the ethereum_rpc field to your preferred RPC URL for the Hoodi testnet. We recommend use a higher end RPC, such as the free tier on https://www.alchemy.com/, but you can use this public RPC endpoint to get started: https://ethereum-hoodi-rpc.publicnode.com.

Now, update the drosera_rpc field to the new Drosera Hoodi testnet relay: https://relay.hoodi.drosera.io.

Additionally, you need to delete the address field for each trap in your drosera.toml file. When you deploy these to Hoodi, they will get new addresses. If you don’t delete the address field(s) before you deploy, you will get errors.

Finally, update the response_contract address for each of your traps to a valid contract on Hoodi. If you don’t have a specific contract on Hoodi to use at the moment, then you can use what is essentially our hello world response contract on Hoodi which is 0x183D78491555cb69B68d2354F7373cc2632508C7 and already has the ”helloworld(string)” response_function.

Now your drosera.toml file should look something like this. Don’t forget to save!

ethereum_rpc = "<https://ethereum-hoodi-rpc.publicnode.com>"
drosera_rpc = "<https://relay.hoodi.drosera.io>"
...

[traps]

[traps.mytrap]
response_contract = "0x183D78491555cb69B68d2354F7373cc2632508C7" # or your own
...

[traps.othertrap]
response_contract = "0x183D78491555cb69B68d2354F7373cc2632508C7" # or your own
...

Now that your drosera.toml file is configured properly for Hoodi, you can deploy your trap(s) to the new Drosera Hoodi testnet

<aside> 💡

Make sure you have the latest version of the drosera trapper CLI installed by running the droseraup utility. If you don’t have droseraup installed already, you can follow these quick instructions to install it https://dev.drosera.io/trappers/getting-started#installing-droseraup.

</aside>

Still in the same directory as your drosera.toml file, run the following command to deploy your trap(s). Ideally, you probably want to use the same private key that you used on the Drosera Holesky testnet, so specify that same key as an environment variable or you can pass it to the apply command as an argument (https://dev.drosera.io/trappers/drosera-cli#private-key). Make sure your account on Hoodi has some ETH for gas. You can get some from a faucet like https://hoodi-faucet.pk910.de/.

drosera apply

Enter an ofc at the prompt. Once the command finishes successfully, you can verify in your drosera.toml file that each trap has a new address.

And that’s it! Welcome to the Drosera Hoodi Testnet 🍾


Help FAQ

Q: I lost or accidentally deleted my drosera.toml file