Browse Source

fix: lint for sample code

feat/new-clarity-onboarding
Alexander Graebe 4 years ago
parent
commit
7e459540a6
  1. 20
      src/pages/understand-stacks/managing-accounts.md

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

@ -79,7 +79,7 @@ const accounts = new AccountsApi(apiConfig);
async function getAccountInfo() { async function getAccountInfo() {
const accountInfo = await accounts.getAccountInfo({ const accountInfo = await accounts.getAccountInfo({
principal: stacksAddress principal: stacksAddress,
}); });
return accountInfo; return accountInfo;
@ -111,9 +111,9 @@ async function getAccountInfoWithoutProof() {
principal: stacksAddress, principal: stacksAddress,
proof: 0, proof: 0,
}); });
return accountInfo; return accountInfo;
}; }
``` ```
## Step 4: Reviewing account history ## Step 4: Reviewing account history
@ -127,9 +127,9 @@ async function runFaucetStx() {
const faucetTx = await faucets.runFaucetStx({ const faucetTx = await faucets.runFaucetStx({
address: stacksAddress, address: stacksAddress,
}); });
return faucetTx; return faucetTx;
}; }
``` ```
The API will respond with a new transaction ID and confirmation that the faucet run was successful: The API will respond with a new transaction ID and confirmation that the faucet run was successful:
@ -151,9 +151,9 @@ async function getAccountTransactions() {
const history = await accounts.getAccountTransactions({ const history = await accounts.getAccountTransactions({
principal: stacksAddress, principal: stacksAddress,
}); });
return history; return history;
} }
``` ```
The API will respond with a paginatable list of transactions associated with the account: The API will respond with a paginatable list of transactions associated with the account:
@ -212,9 +212,9 @@ async function getAccountTransactions() {
limit: 50, limit: 50,
offset: 50, offset: 50,
}); });
return history; return history;
} }
``` ```
## Step 5: Getting account balances ## Step 5: Getting account balances
@ -228,7 +228,7 @@ async function getAccountBalance() {
}); });
return balances; return balances;
} }
``` ```
The API will respond with the following breakdown of token balances: The API will respond with the following breakdown of token balances:

Loading…
Cancel
Save