Skip to content
ItFlyingStart edited this page Jul 5, 2020 · 2 revisions

Alice

Alice is a store owner and she accepts ADA as payment. Alice's action list

Create payment account

Follow the next steps to create a new payment account:

New payment account

Step 1: create new payment key

Create the next directories in the working directory:

mkdir addresses
mkdir transactions
cardano-cli shelley address key-gen \
    --verification-key-file addresses/payment1.vkey \
    --signing-key-file addresses/payment1.skey

Step 2: create payment address for this key

cardano-cli shelley address build \
    --payment-verification-key-file addresses/payment1.vkey \
    --out-file addresses/payment1.addr \
    --testnet-magic 42

Step 3: check funds in the payment address Set environment variable CARDANO_NODE_SOCKET_PATH to the socket-path specified in the node configuration. For example:

export CARDANO_NODE_SOCKET_PATH=relay/db/node.socket

Check funds with the next command

cardano-cli shelley query utxo \
    --address $(cat addresses/payment1.addr) \
    --testnet-magic 42

Example result:

                           TxHash                                 TxIx        Lovelace
----------------------------------------------------------------------------------------
6b371e586730f3a049495c9a8c7cc05f6c8e51749058d2732e151af0cc6449ac     0      100000000000
a00b2947d11962e2968183783cbd77eefbcaf2d4d74d9178278754637a1d203f     1        8293000308
aa0724a53f105b56b5dfc2b063fb4c3892e8167c07544315142a687cf0801ef4     0        2534600215
c92077cbfcf05fc23eea4dba4533068702f961ac00fcaaece8c4e22b1bf27e30     0         130022310
Clone this wiki locally