6

I am currently running a testnet-node version 1.29.0.
To query the blockain, I use the command cardano-cli query tip --testnet-magic 1097911063 to get the last block.

What is the testnet-magic argument and why is it 1097911063?


I got the command from https://developers.cardano.org/docs/get-started/running-cardano

7

The testnet magic, aka protocol magic, is a parameter introduced in Cardano during the Byron era. It is used internally by the protocol in cryptographic functions that construct addresses from a seed. Since this value is different in mainnet and testnet, the address obtained from a given path (or seed) is different in both networks.

2
  • But why is 1097911063? Are there other testnets with different number?
    – G-Unit
    Sep 16 at 18:11
  • 2
    @G-Unit It's just an identifier, it could have been any other unique number, but I don't know why they chose that specific number. Other testnets used different numbers (I've seen the number 42, for instance)
    – vaz
    Sep 18 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.