var ripplecodec = require("ripple-binary-codec");
var {RippleAPI} = require("ripple-lib");
//https://xrpscan.com/tx/83C1C4D23FF433B4A5C5E6C561413FB28F8EB895CF658701B1243D01F8975462
//https://xrpl.org/websocket-api-tool.html#tx
var json = ripplecodec.decode("1100612200000000240000000125000000072D0000000055DF530FB14C5304852F20080B0A8EEF3A6BDD044F41F4EBBD68B8B321145FE4FF6240000002540BE4008114D0F5430B66E06498D4CEEC816C7B3337F9982337");
console.info(JSON.stringify(json));
var txid = RippleAPI.computeBinaryTransactionHash("1100612200000000240000000125000000072D0000000055DF530FB14C5304852F20080B0A8EEF3A6BDD044F41F4EBBD68B8B321145FE4FF6240000002540BE4008114D0F5430B66E06498D4CEEC816C7B3337F9982337");
console.info(JSON.stringify(txid));