@ledgerhq/coin-tron
Version:
Ledger Tron Coin integration
9 lines • 504 B
JavaScript
import { fetchTronAccountTxs } from "../network";
import { fromTrongridTxInfoToOperation } from "../network/trongrid/trongrid-adapters";
export async function listOperations(address) {
// TODO: do not use 1000 as a limit, but depending on account state
const txs = await fetchTronAccountTxs(address, txs => txs.length < 1000, {});
// TODO: adapt directly in network calls
return [txs.map(tx => fromTrongridTxInfoToOperation(tx, address)), ""];
}
//# sourceMappingURL=listOperations.js.map