From 753c092bc7e5ea7ba06a3933e2ce22bc93096a70 Mon Sep 17 00:00:00 2001 From: Dennis Dawson Date: Thu, 27 Mar 2025 09:02:40 -0700 Subject: [PATCH] Fixes per review. --- .../account-configurator.js | 2 - .../account-configurator.zip | Bin 7189 -> 7112 bytes .../concepts/accounts/configuring-accounts.md | 42 ++++++++---------- 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/_code-samples/account-configurator/account-configurator.js b/_code-samples/account-configurator/account-configurator.js index 5d88e582f2..b83d561909 100644 --- a/_code-samples/account-configurator/account-configurator.js +++ b/_code-samples/account-configurator/account-configurator.js @@ -54,7 +54,6 @@ async function getAccount() { results += '\nGot a wallet.' // ------------------------------------------------------Get the current balance. - const my_balance = (await client.getXrpBalance(my_wallet.address)) accountField.value = my_wallet.address seedField.value = my_wallet.seed results += '\nAccount created.\n' @@ -152,7 +151,6 @@ async function configureAccount() { account: accountField.value, ledger_index: "validated", }) - // client.disconnect() json_results = JSON.stringify(my_acct_info, null, 2) var parsedResults = JSON.parse(json_results) diff --git a/_code-samples/account-configurator/account-configurator.zip b/_code-samples/account-configurator/account-configurator.zip index f29f11f5470ef2c830099614d4cbfbdf552dee77..7ca2b5d4bf8a912957ec90935c14bd7e002ef005 100644 GIT binary patch delta 3369 zcma)AI66nBF4TAS;xK&p~%uAWH)5U7804PlVvC~_I=9`A!W}_F4eW~TLzQt zLX5~RG?w(E=U(^T|9yMQ-H0F1sMuB_ZOB-Hqv0{}&IF179hK}cYa!UZVRmF273YMu>#*@6 zmXBsl{Ye+eCH8IbYVhDsR%Kpk#}?JSnL12yyEVfUPD0Ov6!;>TBDImb)Cwy`iLsIt zBz}J(>^p{SgasV*Oz5pkHtp<7#%eFT$2j(J9i%DzqU~oM@UO244a{h1rd~yd{p|kZ z!q+1*%>Fn9GT=gdxD)S;A-N3W1bJTz-h(%;b7_Zn2@+l~|4i}951F64h5h+*7p-pC zU%->$u>nwO6GLMcNuRwswAfk1%(+i=2{AP-)x&5XKhxyDH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%aM89y5+A1rXQ=Wla0a z)-+g-5?46oMy9&$suZ>zriDh#DiORPt9fDAZpSZPakSaRTkbxcUJ33Jn=0_$K_Hix zq1~HaA*$G0+M(@x7^E&L>nA(H&VyvtRLyzro2L@BO z_EEk2bxe-8E;Js->0u6mAKf)HH6Lw}3{c1&oU)UzXB3)utn5TnA1|ssn|@M?!!yPf z2YsmY42)vBZ_Sb=M1wk-Skqy0-Y#+_3mM#E45S3usF=&_mt&g;UdYM^83MuIH%}) z?2|j1UWcopVFKju?G-BDD|8HbkMWAP+qSQf@1j&C;{j-F+!%z&QfRU0UHcvh-OsN6XI$*lzJ(|imz*c(>d~%fJsT9KzV;^ho}u1p46fRZ zo7Qz7t$g=(iTRS9cVe=nDEI41S4BO(tWhkh(Na)vM++o>Ju}~%pHB$&gD7&Ay6wTy z-fQ-JgQ_nQ-a_Vu#pBDFT}#!0o#@cN zd^{dL9q;|5j0}^^HLzTQ3}%3tmG}~5OoR{HR4~6Y!LE~6ZC@sVR|G@LEPIV5 zmjrVa2VViqH8EhqndPo`{HqdrCCM1aUt%!=*e?m;pQ9+m91Otdg4wQRx`c_VbN{UR s`wck$qbe2xz=Qyy7 --> @@ -802,7 +799,7 @@ client.disconnect() You can use the Account Configurator to view information about accounts on Mainnet, Testnet, and Devnet. -#### To get Account information +To get Account information: 1. Choose the account's ledger instance (_Mainnet_, _Testnet_ or _Devnet_). 2. Enter the account number in the **Account** field. @@ -816,7 +813,7 @@ The response is displayed in the **Results** field. You can create sandbox accounts on _Testnet_ or _Devnet_. To create an account on _Mainnet_, see [Creating Accounts](../accounts/index.md#creating-accounts). -#### To get a new Account +To get a new Account: 1. Choose the account's ledger instance (_Testnet_ or _Devnet_). 2. Click **Get New Account**. @@ -827,7 +824,7 @@ Be sure to capture the **Seed** value for your new account so that you can easil You can reload information for an existing account based on its seed value. -#### To get an account from its seed +To get an account from its seed: 1. Choose the account's ledger instance (_Testnet_ or _Devnet_). 2. Enter the value in the **Seed** field. @@ -839,7 +836,7 @@ You can reload information for an existing account based on its seed value. A Holder account requires no configuration (default settings). If the account previously had configuration changes, you can revert them and return the account to default status. -#### To configure a Holder account +To configure a Holder account: 1. Choose the account's ledger instance (_Testnet_ or _Devnet_). 2. Click **Get New Account** @@ -857,7 +854,7 @@ If the account has never been configured, the response in the **Results** field The standard Exchanger account configuration requires only four flags. -#### To configure an Exchanger account +To configure an Exchanger account: 1. Choose the account's ledger instance (_Testnet_ or _Devnet_). 2. Click **Get New Account**. @@ -874,12 +871,11 @@ The standard Exchanger account configuration requires only four flags. Configure an Issuer account by filling in additional fields and selecting flags that serve your needs. -#### To configure an Issuer account +To configure an Issuer account: 1. Choose the account's ledger instance (_Testnet_ or _Devnet_). -2. Click **Get New Account**. - OR - 1. Enter a value in the **Seed** field. +2. Click **Get New Account** or: + 1. Enter an existing seed value in the **Seed** field. 2. Click **Get Account From Seed**. 3. Choose the _Issuer_ **Account Configuration Template**. The configuration flag checkboxes update with the 6 standard configuration choices. You can choose more or fewer @@ -890,8 +886,6 @@ Configure an Issuer account by filling in additional fields and selecting flags 7. If you choose to include signers, this example module requires that you add valid account IDs in **Signer1 Account**, **Signer2 Account**, and **Signer3 Account**, a **Signer Weight** for each, and a **Signer Quorum** value. 8. Click **Configure Account**. - - [![Account Configurator Issuer Results](../../img/cpt-account-configurator3.png)](../../img/cpt-account-configurator3.png) ### Removing Signers