mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2026-03-16 17:42:30 +00:00
Python transaction serialization examples
Convert transactions and other XRPL data from JSON to their canonical binary format for signing or cryptographic verification.
Command-line usage
Simple example, use tx1.json default
python serialize.py
Verbose output, use --verbose or -v
python serialize.py -v
Pick JSON fixture file
python serialize.py -f test-cases/tx3.json
Feed JSON as CLI argument
python serialize.py -j "{\"TransactionType\":\"Payment\"}"
Read JSON from stdin
cat test-cases/tx1.json | python serialize.py --stdin