# Typescript Token adapter

**URL:** <https://forum.dfinity.org/t/typescript-token-adapter/33502>\
**Category:** Developers\
**Tags:** TypeScript\
**Created:** [July 22, 2024, 1:39pm UTC](https://forum.dfinity.org/t/typescript-token-adapter/33502 "2024-07-22T13:39:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [July 22, 2024, 1:39pm UTC](https://forum.dfinity.org/t/typescript-token-adapter/33502/1 "2024-07-22T13:39:58Z")

</div>

Hi guys,

I made this [typescript library](https://www.npmjs.com/package/@alpaca-icp/token-adapter?activeTab=readme) to help interacting with `ICRC1` `ICRC2` `EXT` `DIP20` standard

you can use it like this

```typescript
import { Token } from "@alpaca-icp/token-adapter";
import { HttpAgent } from "@dfinity/agent";

const agent = new HttpAgent({ host: "https://ic0.app" });

const token = new Token({
  canisterId: "ryjl3-tyaaa-aaaaa-aaaba-cai",
  agent,
  tokenStandard: "ICP",
});

await token.balanceOf("wallet");
await token.getLogo();

```

There is some part is not done is for approve EXT and DIP20 tokens. If you have any example please let me know, I can update the library.

Feel free to make a PR for fix something
