Cardano Academy
Search…
Cardano Academy
Plutus Pioneer Program
Setting up Plutus Playground
How do I run "cabal build" / "cabal repl"?
How to get VSCode autocomplete working?
Cardano CLI Testnet
Setting up Cardano Node
Configuring Cardano CLI
Generating Payment Keys and Address
Minting Native tokens
Cardano CLI Mainnet
Setting up Cardano Node
deprecated
Installing GHC and Cabal [Deprecated]
Powered By
GitBook
Generating Payment Keys and Address
Make sure you have configured your
cardano-cli
, if you haven't, check the previous chapter.
Load environment variables
You need to run this every time you open a new terminal to load environment variables :
1
cd cli-workspace/testnet
2
source env.sh
Copied!
Generate payment keys and address
Generate Payment Signing Key and Payment Verification Key:
1
cardano-cli address key-gen \
2
--verification-key-file ./verification-key \
3
--signing-key-file ./signing-key
Copied!
Generate Payment Address and store it in
./address
file:
1
cardano-cli address build \
2
--payment-verification-key-file ./verification-key \
3
--testnet-magic $TESTNET_MAGIC \
4
> ./address
Copied!
To see your address, you can run:
1
cat ./address
Copied!
Your address should start with
addr_test
.
Fund your address
If you already have ADA tokens on testnet, you can send some to the address generated above. If you don't have any, you can request some on
this page
.
To check funds in your address, you can run:
1
cardano-cli query utxo \
2
--address $(< ./address) \
3
--testnet-magic $TESTNET_MAGIC
Copied!
You should get something like this:
1
TxHash TxIx Amount
2
--------------------------------------------------------------------------------------
3
1c7e8dd3bd6e463099e99bb104020435fcf5fe83579b7d9c3fb6b836e5b47c3a 0 1000000000 lovelace
Copied!
It means I have 1,000,000,000 lovelace in my address, which equals to 1,000 ADA.
Cardano CLI Testnet - Previous
Configuring Cardano CLI
Next - Cardano CLI Testnet
Minting Native tokens
Last modified
1yr ago
Copy link
Contents
Load environment variables
Generate payment keys and address
Fund your address