There are a lots of tutorials in Cardano CLI that uses --testnet-magic 3
or --testnet-magic 4
during reading values in address, minting native tokens etc. But none of them explain in detail about what actually the magic number is and how do we determine what magic number is to use?
For reference, there is an official doc that uses magic number 42 but I got lost trying to understand it.
--testnet-magic 42
simply specifies which network to use. I remember that the number42
specified theFF-testnet
back in 2020 before the Shelley launch. So in terms of "what it does", that might clear it up a bit for you, but I don't know about a full list of magic numbers and which exact networks they correspond to... – Vassal