[CAFE] Blog & Knowledge Base

Latest news from CardanoCafe & useful information for stake pool operators

Why does suddenly payment2.addr appear in Chapter 3 of Cardano Documentation?

written by CardanoCafe Team published at 2020-08-31

You are not familiar with cardano and are wondering why suddenly payment2.addr appears in the official cardano documentation? Basically, payment2.addr should just demonstrate how to build and execute transactions using CLI.

When you look at chapter 3.3 of the official documentation, here, for the first time, payment2.addr is being used without further explanation how to create this address.

cardano-cli shelley transaction build-raw \
--tx-in 4e3a6e7fdcb0d0efa17bf79c13aed2b4cb9baf37fb1aa2e39553d5bd720c5c99#4 \
--tx-out $(cat payment2.addr)+0 \
--tx-out $(cat payment.addr)+0 \
--ttl 0 \
--fee 0 \
--out-file tx.draft

The solution is simple: Create your payment2.addr by repeating the steps of the previous chapter to create a payment2.addr.

Payment key pair

cardano-cli shelley address key-gen \
--verification-key-file payment2.vkey \
--signing-key-file payment2.skey

Stake key pair

cardano-cli shelley stake-address key-gen \
--verification-key-file stake2.vkey \
--signing-key-file stake2.skey

Payment address

cardano-cli shelley address build \
--payment-verification-key-file payment2.vkey \
--stake-verification-key-file stake2.vkey \
--out-file payment2.addr \