This chapter covers the core features and capabilities of Crypto Payment Handler.
# Run the full demo (address validation, payment creation, confirmation)
python src/crypto_payment_handler.py --action demo
# Validate a wallet address
python src/crypto_payment_handler.py --action validate-address \
--address 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B --chain eth
# Create a $99.99 Bitcoin payment
python src/crypto_payment_handler.py --action create-payment --amount 99.99 --chain btc
# Check current exchange rates
python src/crypto_payment_handler.py --action rates
# Check payment status
python src/crypto_payment_handler.py --action check-payment --payment-id pay_abc123
# Simulate a transaction for testing
python src/crypto_payment_handler.py --action simulate-tx --payment-id pay_abc123Follow this guide to get Crypto Payment Handler up and running in your environment.
| Flag | Description |
|---|---|
--action, -a | Action to perform (required) |
--address | Wallet address to validate |
--chain | Blockchain: btc, eth, sol, matic (default: btc) |
--amount | Payment amount in fiat currency |
--currency | Fiat currency code (default: usd) |
--payment-id | Payment ID for status check or simulation |
--data-dir | Data storage directory (default: ./crypto_data) |
--verbose, -v | Enable debug logging |
| Chain | Symbol | Confirmations | Block Time |
|---|---|---|---|
| Bitcoin | BTC | 6 | ~10 min |
| Ethereum | ETH | 12 | ~12 sec |
| Solana | SOL | 31 | ~0.4 sec |
| Polygon | MATIC | 128 | ~2 sec |
Get the full Crypto Payment Handler and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.