From 809e52ac90cbd354882366b47708bf6294d5e889 Mon Sep 17 00:00:00 2001 From: Dominic Wong Date: Thu, 4 Feb 2021 09:44:48 +0800 Subject: [PATCH] Update managing-accounts.md --- src/pages/understand-stacks/managing-accounts.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/understand-stacks/managing-accounts.md b/src/pages/understand-stacks/managing-accounts.md index 524dfa88..c836dfdd 100644 --- a/src/pages/understand-stacks/managing-accounts.md +++ b/src/pages/understand-stacks/managing-accounts.md @@ -75,9 +75,9 @@ const stacksAddress = getAddressFromPrivateKey( TransactionVersion.Testnet // remove for Mainnet addresses ); -async function getAccountInfo() { - const accounts = new AccountsApi(apiConfig); +const accounts = new AccountsApi(apiConfig); +async function getAccountInfo() { const accountInfo = await accounts.getAccountInfo({ principal: stacksAddress }); @@ -106,7 +106,7 @@ The `balance` property represents the Stacks token balance, as hex-encoded strin Proofs, provided as hex-encoded strings, can be removed from the responses by setting the `proof` parameter: ```js -async function getAccountInfo() { +async function getAccountInfoWithoutProof() { const accountInfo = await accounts.getAccountInfo({ principal: stacksAddress, proof: 0,