From 242e8ba0acdd226dc7b7ec44d36ea856c3f44b55 Mon Sep 17 00:00:00 2001 From: Alex_B <85246338+liolikus@users.noreply.github.com> Date: Mon, 4 Mar 2024 18:39:17 +0200 Subject: [PATCH] Update 02_aleo_network_client.md getProgramMappingValue Signed-off-by: Alex_B <85246338+liolikus@users.noreply.github.com> --- documentation/sdk/typescript/02_aleo_network_client.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/sdk/typescript/02_aleo_network_client.md b/documentation/sdk/typescript/02_aleo_network_client.md index 2e57e9731..bbf6b8710 100644 --- a/documentation/sdk/typescript/02_aleo_network_client.md +++ b/documentation/sdk/typescript/02_aleo_network_client.md @@ -19,7 +19,7 @@ The methods provided in this class provide information on the Aleo Blockchain
+ -### aleoNetworkClient.getMappingValue(programId, mappingName, key) +### aleoNetworkClient.getProgramMappingValue(programId, mappingName, key)Returns the value of a program's mapping for a specific key
**Kind**: instance method of [AleoNetworkClient
](#AleoNetworkClient)
@@ -149,7 +149,7 @@ let mappings = connection.getProgramMappingNames("credits.aleo");
**Example**
```js
## Get public balance of an account
-let mappingValue = connection.getMappingValue("credits.aleo", "account", "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px");
+let mappingValue = connection.getProgramMappingValue("credits.aleo", "account", "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px");
```
@@ -261,4 +261,4 @@ let records = connection.findUnspentRecords(startHeight, undefined, privateKey,
// Find specific amounts with a maximum number of cumulative microcredits
const maxMicrocredits = 100000;
let records = connection.findUnspentRecords(startHeight, undefined, privateKey, undefined, maxMicrocredits);
-```
\ No newline at end of file
+```