This forum is a read-only archive. Posting, replying and signing in are disabled.

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

casper

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.

fabrice

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

In Go, see [topic not in archive]
Other SDK have similar functions.