@@ -158,7 +158,7 @@ mnemonic-based, rekeyed, multisig, and logic signature accounts.
158158* ** Parameters:**
159159 ** client_manager** – The ClientManager client to use for algod and kmd clients
160160* ** Example:**
161- ``` pycon
161+ ``` python
162162 >> > account_manager = AccountManager(client_manager)
163163 ```
164164
@@ -169,7 +169,7 @@ KMD account manager that allows you to easily get and create accounts using KMD.
169169* ** Return KmdAccountManager:**
170170 The ‘KmdAccountManager’ instance
171171* ** Example:**
172- ``` pycon
172+ ``` python
173173 >> > kmd_manager = account_manager.kmd
174174 ```
175175
@@ -185,7 +185,7 @@ then an error will be thrown from get_signer / get_account.
185185* ** Returns:**
186186 The AccountManager so method calls can be chained
187187* ** Example:**
188- ``` pycon
188+ ``` python
189189 >> > signer_account = account_manager.random()
190190 >> > account_manager.set_default_signer(signer_account)
191191 ```
@@ -200,7 +200,7 @@ Tracks the given TransactionSigner against the given sender address for later si
200200* ** Returns:**
201201 The AccountManager instance for method chaining
202202* ** Example:**
203- ``` pycon
203+ ``` python
204204 >> > account_manager.set_signer(" SENDERADDRESS" , transaction_signer)
205205 ```
206206
@@ -214,7 +214,7 @@ Merges the given AccountManager into this one.
214214* ** Returns:**
215215 The AccountManager instance for method chaining
216216* ** Example:**
217- ``` pycon
217+ ``` python
218218 >> > accountManager2.set_signers(accountManager1)
219219 ```
220220
@@ -243,7 +243,7 @@ The ‘signer’ parameter is deprecated and will show a warning when used.
243243* ** Raises:**
244244 ** ValueError** – If no account or signer argument is provided
245245* ** Example:**
246- ``` pycon
246+ ``` python
247247 >> > account_manager = AccountManager(client_manager)
248248 >> > # Using positional argument
249249 >> > account_manager.set_signer_from_account(
@@ -272,7 +272,7 @@ If no signer has been registered for that address then the default signer is use
272272* ** Raises:**
273273 ** ValueError** – If no signer is found and no default signer is set
274274* ** Example:**
275- ``` pycon
275+ ``` python
276276 >> > signer = account_manager.get_signer(" SENDERADDRESS" )
277277 ```
278278
@@ -287,7 +287,7 @@ Returns the TransactionSignerAccountProtocol for the given sender address.
287287* ** Raises:**
288288 ** ValueError** – If no account is found or if the account is not a regular account
289289* ** Example:**
290- ``` pycon
290+ ``` python
291291 >> > sender = account_manager.random().address
292292 >> > # ...
293293 >> > # Returns the `TransactionSignerAccountProtocol` for `sender` that has previously been registered
@@ -306,7 +306,7 @@ for response data schema details.
306306* ** Returns:**
307307 The account information
308308* ** Example:**
309- ``` pycon
309+ ``` python
310310 >> > address = " XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA"
311311 >> > account_info = account_manager.get_information(address)
312312 ```
@@ -326,7 +326,7 @@ Be careful how the mnemonic is handled. Never commit it into source control and
326326from the environment (ideally via a secret storage service) rather than the file system.
327327
328328* ** Example:**
329- ``` pycon
329+ ``` python
330330 >> > account = account_manager.from_mnemonic(" mnemonic secret ..." )
331331 ```
332332
@@ -355,7 +355,7 @@ Convention:
355355 it will create it and fund the account for you
356356
357357* ** Example:**
358- ``` pycon
358+ ``` python
359359 >> > # If you have a mnemonic secret loaded into `MY_ACCOUNT_MNEMONIC` then you can call:
360360 >> > account = account_manager.from_environment(' MY_ACCOUNT' )
361361 >> > # If that code runs against LocalNet then a wallet called `MY_ACCOUNT` will automatically be created
@@ -375,7 +375,7 @@ Tracks and returns an Algorand account with private key loaded from the given KM
375375* ** Raises:**
376376 ** ValueError** – If unable to find KMD account with given name and predicate
377377* ** Example:**
378- ``` pycon
378+ ``` python
379379 >> > # Get default funded account in a LocalNet:
380380 >> > defaultDispenserAccount = account.from_kmd(' unencrypted-default-wallet' ,
381381 ... lambda a : a.status != ' Offline' and a.amount > 1_000_000_000
@@ -392,7 +392,7 @@ Tracks and returns an account that represents a logic signature.
392392* ** Returns:**
393393 A logic signature account wrapper
394394* ** Example:**
395- ``` pycon
395+ ``` python
396396 >> > account = account.logicsig(program, [new Uint8Array(3 , ... )])
397397 ```
398398
@@ -406,7 +406,7 @@ Tracks and returns an account that supports partial or full multisig signing.
406406* ** Returns:**
407407 A multisig account wrapper
408408* ** Example:**
409- ``` pycon
409+ ``` python
410410 >> > account = account_manager.multi_sig(
411411 ... version = 1 ,
412412 ... threshold = 1 ,
@@ -422,7 +422,7 @@ Tracks and returns a new, random Algorand account.
422422* ** Returns:**
423423 The account
424424* ** Example:**
425- ``` pycon
425+ ``` python
426426 >> > account = account_manager.random()
427427 ```
428428
@@ -435,7 +435,7 @@ This account can be used to fund other accounts.
435435* ** Returns:**
436436 The account
437437* ** Example:**
438- ``` pycon
438+ ``` python
439439 >> > account = account_manager.localnet_dispenser()
440440 ```
441441
@@ -448,7 +448,7 @@ If environment variables are not present, returns the default LocalNet dispenser
448448* ** Returns:**
449449 The account
450450* ** Example:**
451- ``` pycon
451+ ``` python
452452 >> > account = account_manager.dispenser_from_environment()
453453 ```
454454
@@ -462,7 +462,7 @@ Tracks and returns an Algorand account that is a rekeyed version of the given ac
462462* ** Returns:**
463463 The rekeyed account
464464* ** Example:**
465- ``` pycon
465+ ``` python
466466 >> > account = account.from_mnemonic(" mnemonic secret ..." )
467467 >> > rekeyed_account = account_manager.rekeyed(account, " SENDERADDRESS..." )
468468 ```
@@ -492,7 +492,7 @@ Please be careful with this function and be sure to read the
492492[ official rekey guidance] ( https://dev.algorand.co/concepts/accounts/rekeying ) .
493493
494494* ** Example:**
495- ``` pycon
495+ ``` python
496496 >> > # Basic example (with string addresses):
497497 >> > algorand.account.rekey_account(" ACCOUNTADDRESS" , " NEWADDRESS" )
498498 >> > # Basic example (with signer accounts):
@@ -542,7 +542,7 @@ See [https://dev.algorand.co/concepts/smart-contracts/costs-constraints#mbr](htt
542542 The result of executing the dispensing transaction and the amountFunded if funds were needed,
543543 or None if no funds were needed
544544* ** Example:**
545- ``` pycon
545+ ``` python
546546 >> > # Basic example:
547547 >> > algorand.account.ensure_funded(" ACCOUNTADDRESS" , " DISPENSERADDRESS" , AlgoAmount.from_algo(1 ))
548548 >> > # With configuration:
@@ -592,7 +592,7 @@ process.env.DISPENSER_MNEMONIC and optionally process.env.DISPENSER_SENDER
592592if it’s a rekeyed account, or against default LocalNet if no environment variables present.
593593
594594* ** Example:**
595- ``` pycon
595+ ``` python
596596 >> > # Basic example:
597597 >> > algorand.account.ensure_funded_from_environment(" ACCOUNTADDRESS" , AlgoAmount.from_algo(1 ))
598598 >> > # With configuration:
@@ -626,7 +626,7 @@ See [https://dev.algorand.co/concepts/smart-contracts/costs-constraints#mbr](htt
626626* ** Raises:**
627627 ** ValueError** – If attempting to fund on non-TestNet network
628628* ** Example:**
629- ``` pycon
629+ ``` python
630630 >> > # Basic example:
631631 >> > account_manager.ensure_funded_from_testnet_dispenser_api(
632632 ... " ACCOUNTADDRESS" ,
0 commit comments