logoAcademy

Interact with the Registry

Retrieve latest Teleporter version using the Registry.

Let's start by interacting the registry. Registry is deployed on specific addresses depending the chain you're operating and the status of the network at the deployment time. For your local network you can find it out with the following command:

avalanche primary describe
avalanche subnet describe mysubnet

Let's put the address of the registry in an environment variable:

export C_CHAIN_REGISTRY_ADDRESS=0x1234...
export MYSUBNET_REGISTRY_ADDRESS=0x5678...

Let's interact with the Registry by getting the latest version of the Teleporter Messenger deployed on C-Chain:

cast call --rpc-url local-c --private-key $PK $C_CHAIN_REGISTRY_ADDRESS "latestVersion()(uint256)" 
Updated:

On this page

No Headings
Edit on Github