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

1 Answer 1


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.

  • But why is 1097911063? Are there other testnets with different number?
    – G-Unit
    Sep 16, 2021 at 18:11
  • 3
    @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, 2021 at 2:15
  • 1
    Possible answer which explains a little bit more about this - stackoverflow.com/q/67191023/1336068 Dec 22, 2021 at 20:42

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.