# How to fetch transactions of DIP20 tokens?

**URL:** <https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287>\
**Category:** Developers\
**Tags:** candid, Discussing\
**Created:** [October 31, 2023, 1:33pm UTC](https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287 "2023-10-31T13:33:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaesharma](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jaesharma/32/7297_2.png) [@jaesharma](https://forum.dfinity.org/u/jaesharma)\
**Post date:** [October 31, 2023, 1:33pm UTC](https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287/1 "2023-10-31T13:33:04Z")

</div>

I’m using this DIP20 token as example: 72uqs-pqaaa-aaaak-aes7a-cai (Tendy)  
here we can see this canister’s methods: [Tendy Canister](https://dashboard.internetcomputer.org/canister/72uqs-pqaaa-aaaak-aes7a-cai)  
but i couldn’t find methods like getTransactions or getBlocks.

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [October 31, 2023, 2:05pm UTC](https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287/2 "2023-10-31T14:05:47Z")

</div>

DIP20 tokens uses the CAP pattern which is flawed and likely has exploits in it. In this pattern, the transaction history for many types of tokens are held in a single service. This creates a centralization point of failure and slows the rate of development down.

If you are creating a new token, I’d advise using the ICRC1 standard. You can find motoko implementations at [GitHub - NatLabs/icrc1: A full implementation of the ICRC-1 fungible token standard](https://github.com/natLabs/icrc1). It includes the get\_blocks/query\_blocks and auto-creation of archive canisters. We are super close to having ICRC2 added to it and ICRC3 (a formalization of a transaction ledger) should be coming as soon as it is finalized.

---

<div class="post-metadata">

**Author:** ![jaesharma](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jaesharma/32/7297_2.png) [@jaesharma](https://forum.dfinity.org/u/jaesharma)\
**Post date:** [October 31, 2023, 3:25pm UTC](https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287/3 "2023-10-31T15:25:15Z")

</div>

yes, i’m aware of new standards. has been following token development on IC ecosystem. i was just curious about DIP20 & EXT token standards. there are sites like this: [Tendy Transactions](https://info.icpswap.com/token/transactions/72uqs-pqaaa-aaaak-aes7a-cai)  
which list token transactions. I was not able to find from where they are getting these when there is no query method for it. Did R&D from my side but not able to find. Specs of DIP20 on github says there should method for `get_transaction` & `get_transactions` but on dfinity dashboard ( [Tendy Canister](https://dashboard.internetcomputer.org/canister/72uqs-pqaaa-aaaak-aes7a-cai)) these methods does not exist.  
What am i missing here?

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [October 31, 2023, 3:34pm UTC](https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287/4 "2023-10-31T15:34:28Z")

</div>

Tendy uses this I think: [GitHub - Psychedelic/cap-motoko-library: The CAP (Certified Asset Provenance) Motoko Library](https://github.com/Psychedelic/cap-motoko-library)

The CAP router is here: [https://icscan.io/canister/lj532-6iaaa-aaaah-qcc7a-cai](https://icscan.io/canister/lj532-6iaaa-aaaah-qcc7a-cai)

You should be able to feed the trendy canister id in there somewhere to get the bucket for the trendy token and then you’d beable to query that bucket for transactions.

---

<div class="post-metadata">

**Author:** ![jaesharma](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jaesharma/32/7297_2.png) [@jaesharma](https://forum.dfinity.org/u/jaesharma)\
**Post date:** [October 31, 2023, 6:01pm UTC](https://forum.dfinity.org/t/how-to-fetch-transactions-of-dip20-tokens/24287/5 "2023-10-31T18:01:25Z")

</div>

Exactly what i was looking for. Thank you!
