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

Knowledge Base

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

Aug 31, 2020, by Chris

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 \
--mainnet


written by: Chris     published at: Aug 31, 2020
Further articles you might be interested in

Update grafana metrics when updating to cardano-node 1.25.1

Feb 2, 2021 by Chris

Cardano's [CAFE] and [CAFE2] are updated to newest version 1.25.1. For all stake pool operators (SPOs) it is important to know that with release of 1.25.1 the mainnet-config.json in the repository of CF / IOHK was consolidated and is a lot slimmer than previous! Some names of statistic variables have changed. In most cases the wording "ChainDB_" was removed. So be sure to update your grafana dashboard so that you can still enjoy your statistics after update to 1.25.1.


How to setup prometheus and grafana on a dedicated machine to monitor your cardano nodes

Nov 21, 2020 by Chris

Prometheus and grafana are helpful tools to monitor your nodes. They have a built-in alert function which notifies you about arising problems. This guide will show how to setup your infrastructure to do this monitoring with a separate machine thus not requiring additional installations on your vital cardano nodes.


Converting YAML to JSON when configuring RTView

Nov 8, 2020 by Chris

RTView is a new monitoring tool released by IOHK. When configuring or installing RTView, you might need the help of yaml to json converters.


Cardano Stake Pool Course

Oct 3, 2020 by Chris

A great way to help new stake pool operators in setting up their own stake pool is learning from the docs of the official Cardano Stake Pool School. It was launched by the Cardano Foundation in August 2020.


Security Tipps for Stake Pool Operators (SPOs)

Sep 21, 2020 by Chris

This article aims to provide an additional layer of security to your nodes according to swiss cheese model by preventing SSH login via public WAN. Using VPN and (V)LANs both relay- and block-producing nodes get isolated from the web.