<aside> đź’ˇ

This guide is only for those who have already deployed traps to the Drosera testnet.

</aside>

Overview

If you have already deployed one or more traps then this quick guide is for you. We kindly ask you to re-apply your traps. This will re-deploy your trap to the best available seed node. Please follow the steps below.

Steps

Update Trapper CLI

Get the latest Trapper CLI by running our easy installation utility https://dev.drosera.io/docs/trappers/getting-started#installing-droseraup. If you’ve already deployed traps (who this guide is for) then you will already have this utility installed. Simply run droseraup in your terminal to install the latest version of the Trapper CLI.

Update drosera.toml File

Previously, your trapper CLI drosera.toml file was configured with the drosera_rpc field set directly to the only seed node ("<https://seed-node.testnet.drosera.io>"), hosted by the Drosera team.

...
**drosera_rpc = "<https://seed-node.testnet.drosera.io>"**
...

[traps]

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

Now, to take advantage of the new relay server, please update the drosera_rpc field to point to the new Drosera relay server at "<https://relay.testnet.drosera.io>".

...
**drosera_rpc = "<https://relay.testnet.drosera.io>"**
...

[traps]

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

Trap Addresses

If all your traps are in one drosera.toml file and each trap has an address, then you can skip to the re-apply step. If some of your traps in your drosera.toml are missing addresses then they were either never deployed, or they were deleted by accident. If they were deleted by accident then you can go on to the Drosera dapp and find them.

  1. Go to https://app.drosera.io/

  2. Connect your web3 wallet. This must be the same account you used to deploy your trap(s) with.

    Screenshot 2025-05-01 at 5.46.24 PM.png

  3. Select the “Traps Owned” button to display only traps that your account owns

    Screenshot 2025-05-01 at 5.51.04 PM.png

  4. For each trap your account owns (I only have one trap deployed on this account, but you may have up to two)

    1. Click on the trap to go to the trap’s page

      Screenshot 2025-05-01 at 5.52.58 PM.png

    2. On the trap’s page, click on the “Trap Config” address hyperlink. This will open a page to holesky etherscan.

      Screenshot 2025-05-01 at 5.56.09 PM.png

    3. Click the button to copy the contract’s address.

      Screenshot 2025-05-01 at 5.58.09 PM.png

    4. Paste that address as the value for the corresponding trap’s address field in your drosera.toml file

      image.png

  5. If you have traps in another drosera.toml file, repeat this process there.

  6. If you have traps deployed using a different private key, repeat this process using that account.