How do i get a canister’s transaction history from the ledger?

I’m wanting to add transaction history to users’ wallets and of course to do that, i need the wallet to have access to the relevant data (source of Tx, time stamp, etc…) how does the NNS canister go about retrieving that necessary data from the ledger canister? Specifically as it relates to canisters retrieving that data when they are the recipient of an income transfer.

A link to an example would be appreciated.

1 Like

Looking for something similar in case somebody has an example.

@Dustin this thread offers a bit more insight:

1 Like

In case anyone is also looking for getting the transaction history in Typescript, here’s an example of how to do it using the Rosetta API.

2 Likes