create a new tx by deserializeFromSafeJSON
let tx2 = kaspa.Transaction.deserializeFromSafeJSON('{"id":"3b583cb46d4a2dba6c4623c92e3d725d767c3c7d776edfd5ee317604dfed881f","version":0,"inputs":[{"transactionId":"bc34ddc516173fb2027fbd5beba9a4bd9a943c8cbc4ba41e50fc3c04f3a7b8cf","index":0,"sequence":"0","sigOpCount":1,"signatureScript":"","utxo":{"address":"kaspatest:qpa8gs8w0quc3ghpx2l2dv30ny0mjuwyaj30xduw92v6mmta7df6uuz3ryfhy","amount":"599999456040","scriptPublicKey":"0000207a7440ee783988a2e132bea6b22f991fb971c4eca2f3378e2a99aded7df353aeac","blockDaaScore":"83603110","isCoinbase":false}}],"outputs":[{"value":"599999454040","scriptPublicKey":"0000207a7440ee783988a2e132bea6b22f991fb971c4eca2f3378e2a99aded7df353aeac"}],"lockTime":"0","gas":"0","subnetworkId":"0000000000000000000000000000000000000000","payload":""}');
console.info("deserialize tx: ", tx2)
感动 | 同情 | 无聊 | 愤怒 | 搞笑 | 难过 | 高兴 | 路过 |
- 上一篇:UtxoContext事务
- 下一篇:验证Kaspa链的完整性
相关文章
-
没有相关内容