Browse Source

fix: Wrap await in async function

Wrap await in async function in "Step 3: Reviewing account info"
feat/new-clarity-onboarding
Dominic Wong 4 years ago
committed by Alexander Graebe
parent
commit
7d6bdb577d
  1. 4
      src/pages/understand-stacks/managing-accounts.md

4
src/pages/understand-stacks/managing-accounts.md

@ -75,8 +75,7 @@ const stacksAddress = getAddressFromPrivateKey(
TransactionVersion.Testnet // remove for Mainnet addresses TransactionVersion.Testnet // remove for Mainnet addresses
); );
... (async () => {
const accounts = new AccountsApi(apiConfig); const accounts = new AccountsApi(apiConfig);
const accountInfo = await accounts.getAccountInfo({ const accountInfo = await accounts.getAccountInfo({
@ -84,6 +83,7 @@ const stacksAddress = getAddressFromPrivateKey(
}); });
console.log(accountInfo); console.log(accountInfo);
})();
``` ```
-> Note: A "principal" is any entity that can have a token balance. Find more details in the [Principals guide](/write-smart-contracts/principals). -> Note: A "principal" is any entity that can have a token balance. Find more details in the [Principals guide](/write-smart-contracts/principals).

Loading…
Cancel
Save