ava-labs/avalanche-ops

Support chain alias for subnet creation (in `install-subnet-chain` sub-command)

gyuho opened this issue · 2 comments

exdx commented

Looking into this now. Looking at the API it seems like the admin.aliasChain endpoint allows aliasing an existing chain. When issuing the createChainTx it seems like there is a place for chainName. Which seems like the ability to alias the chain name right when creating it.

So there are two options:

  • Create the chain first, then call the alias endpoint
  • Create the chain with the provided alias already intact

It seems like 1 is the best option but just wanted to confirm?
Since there is a way to provide the name to the chain initially, I think the aliasing can be done in a separate step.