### Build Cardano Testnet Address Source: https://docs.cardano.org/cardano-testnets/getting-started Constructs a Cardano payment address using the generated payment and stake verification keys. The `--testnet-magic INTEGER` flag specifies the testnet network (e.g., 2 for Preview, 1 for Pre-production). ```bash cardano-cli address build \ --payment-verification-key-file payment.vkey \ --stake-verification-key-file stake.vkey \ --out-file payment.addr \ --testnet-magic INTEGER ``` -------------------------------- ### Query Cardano Testnet Address Balance Source: https://docs.cardano.org/cardano-testnets/getting-started Queries the Unspent Transaction Output (UTXO) balance of a given Cardano testnet address. It requires the address to be provided, typically by reading from a file, and the testnet magic integer. ```bash cardano-cli query utxo \ --address $(cat payment.addr) \ --testnet-magic INTEGER ``` -------------------------------- ### Generate Cardano Payment Keys Source: https://docs.cardano.org/cardano-testnets/getting-started Generates a pair of payment keys (verification and signing) required for sending and receiving transactions on Cardano testnets. This process creates two files: payment.vkey (public key) and payment.skey (private key). ```bash cardano-cli address key-gen \ --verification-key-file payment.vkey \ --signing-key-file payment.skey ```