UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

16 lines (15 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseAccountInfoData = parseAccountInfoData; const common_1 = require("../../common"); function parseAccountInfoData(response) { const data = response.account_data; return (0, common_1.removeUndefined)({ sequence: data.Sequence, xrpBalance: (0, common_1.dropsToXrp)(data.Balance), ownerCount: data.OwnerCount, previousInitiatedTransactionID: data.AccountTxnID, previousAffectingTransactionID: data.PreviousTxnID, previousAffectingTransactionLedgerVersion: data.PreviousTxnLgrSeq, }); }