Skip to content

A collection of public documentation and guides for the Etna DevNet

Notifications You must be signed in to change notification settings

ava-labs/etna-devnet-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Etna DevNet Resources

The Etna DevNet is a temporary Avalanche network instance that was created for the purpose of testing and integrating with the changes introduced in the Etna upgrade prior to their activation on the Fuji testnet. The network may be wiped or reset at any time as new AvalancheGo versions become ready for testing. The network will be deprecated following the activation of the Etna upgrade on the Fuji testnet.

This README and repository is a collection of various resources to help in interacting and integrating with the DevNet.

Common Credentials

RPC: https://etna.avax-dev.network/ext/bc/C/rpc
Name: Etna C-Chain
Chain ID: 43117
Token: AVAX
Faucet: https://core.app/tools/testnet-faucet/?subnet=cdevnet&token=cdevnet
Glacier Dev APIs: https://glacier-api-dev.avax.network/api
NetworkID: 76

Devnet Explorer

Public RPCs

The Etna DevNet has a public RPC endpoint available at https://etna.avax-dev.network.

This endpoint supports all of the common extensions for the primary network chains supported for Fuji and Mainnet. Examples include:

curl --location 'https://etna.avax-dev.network/ext/info' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"info.getNetworkID"
}'
curl --location 'https://etna.avax-dev.network/ext/bc/C/rpc' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "eth_chainId",
    "params": [],
    "id": 1
}'

You can find the Postman Collection and an Example Environment in the resources file.

Running AvalancheGo connected to Etna DevNet

To run an AvalancheGo node connected to the Etna DevNet:

  1. Ensure that you are using an AvalancheGo build from the v1.12.0-fuji tag or later.
➜  avalanchego git:(master) git pull
➜  avalanchego git:(master) git checkout v1.12.0-fuji
➜  avalanchego git:(v1.12.0-fuji) ./scripts/build.sh

For more info on the setup required to run a Node, see this tutorial.

  1. Specify the network-id, bootstrap-ids, bootstrap-ips, genesis-file-content, and upgrade-file-content below. These can also be provided via configuration files if desired.
./build/avalanchego \
    --network-id="network-76" \
    --bootstrap-ids="NodeID-8LbTmmGsDC991SbD8Nkx88VULT3XYzYXC,NodeID-bojBKDrpt81bYhxYKQfLw89V7CpoH2m7,NodeID-WrLWMK5sJ4dBUAsx1dP2FUyTqrYwbFA1,NodeID-DDhXtFm6Q9tCq2yiFRmcSMKvHgUgh8yQC,NodeID-QDYnWDQd6g4cQ5H6yiWNqSmfRMBqEH9AG" \
    --bootstrap-ips="52.201.126.172:9651,34.233.248.130:9651,107.21.11.213:9651,35.170.144.5:9651,98.82.41.186:9651" \
    --upgrade-file-content="ewogICAgImFwcmljb3RQaGFzZTFUaW1lIjogIjIwMjAtMTItMDVUMDU6MDA6MDBaIiwKICAgICJhcHJpY290UGhhc2UyVGltZSI6ICIyMDIwLTEyLTA1VDA1OjAwOjAwWiIsCiAgICAiYXByaWNvdFBoYXNlM1RpbWUiOiAiMjAyMC0xMi0wNVQwNTowMDowMFoiLAogICAgImFwcmljb3RQaGFzZTRUaW1lIjogIjIwMjAtMTItMDVUMDU6MDA6MDBaIiwKICAgICJhcHJpY290UGhhc2U0TWluUENoYWluSGVpZ2h0IjogMCwKICAgICJhcHJpY290UGhhc2U1VGltZSI6ICIyMDIwLTEyLTA1VDA1OjAwOjAwWiIsCiAgICAiYXByaWNvdFBoYXNlUHJlNlRpbWUiOiAiMjAyMC0xMi0wNVQwNTowMDowMFoiLAogICAgImFwcmljb3RQaGFzZTZUaW1lIjogIjIwMjAtMTItMDVUMDU6MDA6MDBaIiwKICAgICJhcHJpY290UGhhc2VQb3N0NlRpbWUiOiAiMjAyMC0xMi0wNVQwNTowMDowMFoiLAogICAgImJhbmZmVGltZSI6ICIyMDIwLTEyLTA1VDA1OjAwOjAwWiIsCiAgICAiY29ydGluYVRpbWUiOiAiMjAyMC0xMi0wNVQwNTowMDowMFoiLAogICAgImNvcnRpbmFYQ2hhaW5TdG9wVmVydGV4SUQiOiAiMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTFMcG9ZWSIsCiAgICAiZHVyYW5nb1RpbWUiOiAiMjAyMC0xMi0wNVQwNTowMDowMFoiLAogICAgImV0bmFUaW1lIjogIjIwMjQtMTAtMDlUMjA6MDA6MDBaIgp9Cg==" \
    --genesis-file-content="ewogICJuZXR3b3JrSUQiOiA3NiwKICAiYWxsb2NhdGlvbnMiOiBbCiAgICB7CiAgICAgICJldGhBZGRyIjogIjB4QzcxQTYxYTgxNWU0OWQxNkM0MjU0ODJBMzQyYTM2N0NENDJFMzhhNiIsCiAgICAgICJhdmF4QWRkciI6ICJYLWN1c3RvbTF2NnZ1d3hqZ3IwNDNzZzBudXVocTcwazZ2Z251bGU2OTJmdm5yOSIsCiAgICAgICJpbml0aWFsQW1vdW50IjogNTAwMDAwMDAwMDAwMDAwMDAwLAogICAgICAidW5sb2NrU2NoZWR1bGUiOiBbCiAgICAgICAgewogICAgICAgICAgImFtb3VudCI6IDEwMDAwMDAwMDAwMDAwMDAwMCwKICAgICAgICAgICJsb2NrdGltZSI6IDE2MzM4MjQwMDAKICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICJhbW91bnQiOiAxMDAwMDAwMDAwMDAwMDAwMDAsCiAgICAgICAgICAibG9ja3RpbWUiOiAxNjMzODI1MDAwCiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYW1vdW50IjogMTAwMDAwMDAwMDAwMDAwMDAwLAogICAgICAgICAgImxvY2t0aW1lIjogMTYzMzgyNjAwMAogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgImFtb3VudCI6IDEwMDAwMDAwMDAwMDAwMDAwMCwKICAgICAgICAgICJsb2NrdGltZSI6IDE2MzM4MjcwMDAKICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICJhbW91bnQiOiAxMDAwMDAwMDAwMDAwMDAwMDAsCiAgICAgICAgICAibG9ja3RpbWUiOiAxNjMzODI4MDAwCiAgICAgICAgfQogICAgICBdCiAgICB9CiAgXSwKICAic3RhcnRUaW1lIjogMTcyNTMwMDAwMCwKICAiaW5pdGlhbFN0YWtlRHVyYXRpb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dCNzlBNDJFNThcIjp7XCJiYWxhbmNlXCI6XCIweDE0MzFFMEZBRTZENzIxN0NBQTAwMDAwMDBcIn0sXCIweEI0Y0E2QzEyMUQ2Mjg3YWY3YWM3Y2I2MkFlMzNkMmIwNTRiOUZDNDRcIjp7XCJiYWxhbmNlXCI6XCIweDE0MzFFMEZBRTZENzIxN0NBQTAwMDAwMDBcIn0sXCIweEM3MUE2MWE4MTVlNDlkMTZDNDI1NDgyQTM0MmEzNjdDRDQyRTM4YTZcIjp7XCJiYWxhbmNlXCI6XCIweDE0MzFFMEZBRTZENzIxN0NBQTAwMDAwMDBcIn19LFwibnVtYmVyXCI6XCIweDBcIixcImdhc1VzZWRcIjpcIjB4MFwiLFwicGFyZW50SGFzaFwiOlwiMHgwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwXCJ9IiwKICAibWVzc2FnZSI6ICJFdG5hIGhlcmUgd2UgY29tZSIKfQo="

Getting DevNet AVAX

You can get 5 AVAX on the DevNet C-Chain from the public faucet here.

If you require more, please reach out to our team in the relevant Telegram/Slack channel.

Testing New Transaction Types

Ensure you are locally running an AvalancheGo node.

The AvalancheGo wallet folder contains example scripts written in Golang for testing common workflows.

Inside wallet/subnet/primary/examples folder, you will find scripts you can run locally. To test creating a new L1 on Etna Devnet, you can run:

go run wallet/subnet/primary/examples/create-subnet/main.go

go run wallet/subnet/primary/examples/create-chain/main.go

go run wallet/subnet/primary/examples/convert-subnet/main.go

Some of the values in the scripts (such as subnetID) are hard-coded, and will need to be adjusted based on the output of each consecutive transaction in order to function properly.

About

A collection of public documentation and guides for the Etna DevNet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published