for (const account of accounts) {
account.balance = balances[account.address]?.balance
account.receivable = balances[account.address]?.receivable
- account.representative = representatives?.[account.address] ?? (await rpc.call('account_representative', { account: account.address }))?.representative
+ account.representative = representatives?.[account.address]
if (frontiers[account.address] != null) {
+ account.representative ??= (await rpc.call('account_representative', { account: account.address }))?.representative
account.frontier = frontiers[account.address]
const { subtype, contents: { balance, link, previous, representative, signature } } = blocks[account.frontier]
const frontierBlock = new Block(account, balance, previous, representative)