"Why? Why should we fear to use it?"
They are not all accounted for, the lost seeing stones. We do not know who else may be watching!
Vanilla JavaScript library for querying ICP Ledgers and Index canisters with automatic batching & loop pagination.
// Click run to query on-chain balance and transactions using ic-light...
import { IcLightClient, IcLightLedger, IcLightIndex } from './ic-light-lib.js'; const client = new IcLightClient(); const ledger = new IcLightLedger(client); const index = new IcLightIndex(client); try { const balance = await ledger.getBalance({ canisterId: 'ryjl3-tyaaa-aaaaa-aaaba-cai', account: targetInput }); const txs = await index.getAccountTransactions({ indexCanisterId: 'qhbym-qaaaa-aaaaa-aaafq-cai', owner: targetInput, maxResults: 5000 // Auto-paginates seamlessly }); } catch (err) { console.error(err); }