@bithomp/xrpl-api
Version:
A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger
19 lines (18 loc) • 488 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function parseAuthAccounts(authAccounts) {
if (!authAccounts) {
return undefined;
}
const result = [];
for (const authAccount of authAccounts) {
if (authAccount.AuthAccount.Account) {
result.push(authAccount.AuthAccount.Account);
}
}
if (result.length === 0) {
return undefined;
}
return result;
}
exports.default = parseAuthAccounts;
;