# Is there any way to get the address of a smart contract via the JS SDK?

**URL:** https://forum.algorand.co/t/is-there-any-way-to-get-the-address-of-a-smart-contract-via-the-js-sdk/5949
**Category:** Uncategorized
**Created:** [February 4, 2022, 12:26am UTC](https://forum.algorand.co/t/is-there-any-way-to-get-the-address-of-a-smart-contract-via-the-js-sdk/5949 "2022-02-04T00:26:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![casper](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.algorand.co/casper/32/1612_2.png) [@casper](https://forum.algorand.co/u/casper)
#### Post date: [February 4, 2022, 12:26am UTC](https://forum.algorand.co/t/is-there-any-way-to-get-the-address-of-a-smart-contract-via-the-js-sdk/5949/1 "2022-02-04T00:26:13Z")

</div>

Pretty much the title. I can do this with `goal` via `$goal app info --app-id $local_app_id | awk 'NR==2 {print $3}'` but neither the `getApplicationByID` method on the `AlgodV2` class nor the `lookupApplications` method on the `Indexer` class return an application address.

---

<div class="post-metadata">

### Author: ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)
#### Post date: [February 4, 2022, 2:38pm UTC](https://forum.algorand.co/t/is-there-any-way-to-get-the-address-of-a-smart-contract-via-the-js-sdk/5949/2 "2022-02-04T14:38:00Z")

</div>

The application address can be derived just from the application ID.

In Go, see [How do i get Application Account Address through Golang Algorand SDK? - #2 by fabrice](https://forum.algorand.co/t/how-do-i-get-application-account-address-through-golang-algorand-sdk/4572/2)  
Other SDK have similar functions.
