Convert transactions and other XRPL data from JSON to their canonical binary format for signing or cryptographic verification. (This reference implementation is equivalent to the ones included in most client libraries.).
For a detailed explanation, see Serialization.
On first run, you have to install the necessary node.js dependencies:
npm install
node index.js
node index.js -v
node index.js -r
node index.js -f test-cases/tx3.json
node index.js -j "{\"TransactionType\":\"Payment\"}"