# Make calls to an existing canister from JavaScript from a .did file

**URL:** <https://forum.dfinity.org/t/make-calls-to-an-existing-canister-from-javascript-from-a-did-file/6178>\
**Category:** Getting Started\
**Created:** [July 29, 2021, 12:01am UTC](https://forum.dfinity.org/t/make-calls-to-an-existing-canister-from-javascript-from-a-did-file/6178 "2021-07-29T00:01:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon74414410](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Post date:** [July 29, 2021, 12:01am UTC](https://forum.dfinity.org/t/make-calls-to-an-existing-canister-from-javascript-from-a-did-file/6178/1 "2021-07-29T00:01:47Z")

</div>

Here’s a new blog post on how to use `dfx` or `didc` to generate a JavaScript interface to talk to any canister you want.

> **[Working with Candid](https://kyle-peacock.com/blog/dfinity/working-with-candid/)**
>
> How to interact with a canister using just a candid declaration using dfx or the didc tool directly

---

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [July 29, 2021, 4:19pm UTC](https://forum.dfinity.org/t/make-calls-to-an-existing-canister-from-javascript-from-a-did-file/6178/2 "2021-07-29T16:19:12Z")

</div>

There’s a GUI for the didc conversion step here too if it’s handy, paste the .did and generate javascript or typescript bindings: [didc binding generator](https://k7gat-daaaa-aaaae-qaahq-cai.ic0.app/docs/)

Or you can grab the bindings directly from [rocks](https://ic.rocks/principal/rdmx6-jaaaa-aaaaa-aaadq-cai) or [Canlista](https://k7gat-daaaa-aaaae-qaahq-cai.ic0.app/listing/internet-identity-10235/rdmx6-jaaaa-aaaaa-aaadq-cai) by clicking the javascript and typescript tabs.  
Both of these use didc itself under the hood, running as a wasm module in your browser.
