mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-24 05:35:51 +00:00
Re-added code to clean branch
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
const xrpl = require("xrpl");
|
||||
|
||||
const prepareTxData = (transactions) => {
|
||||
return transactions.map(transaction => ({
|
||||
confirmed: transaction.tx.date,
|
||||
type: transaction.tx.TransactionType,
|
||||
from: transaction.tx.Account,
|
||||
to: transaction.tx.Destination,
|
||||
value: xrpl.dropsToXrp(transaction.tx.Amount),
|
||||
hash: transaction.tx.hash
|
||||
}))
|
||||
}
|
||||
|
||||
module.exports = { prepareTxData }
|
||||
Reference in New Issue
Block a user