Skip to content

Commit d73a875

Browse files
authored
Merge pull request #343 from liolikus/master
Update 02_aleo_network_client.md
2 parents 191afe6 + 8bf6af3 commit d73a875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

documentation/sdk/typescript/02_aleo_network_client.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The methods provided in this class provide information on the Aleo Blockchain</p
2424
* [.getDeploymentTransactionIDForProgram(programId)](#AleoNetworkClient+getDeploymentTransactionIDForProgram)
2525
* [.getDeploymentTransactionForProgram(programId)](#AleoNetworkClient+getDeploymentTransactionForProgram)
2626
* [.getProgramMappingNames(programId)](#AleoNetworkClient+getProgramMappingNames)
27-
* [.getMappingValue(programId, mappingName, key)](#AleoNetworkClient+getMappingValue)
27+
* [.getProgramMappingValue(programId, mappingName, key)](#AleoNetworkClient+getProgramMappingValue)
2828
* [.getLatestBlock()](#AleoNetworkClient+getLatestBlock)
2929
* [.getLatestHeight()](#AleoNetworkClient+getLatestHeight)
3030
* [.getStateRoot()](#AleoNetworkClient+getStateRoot)
@@ -233,9 +233,9 @@ let mappings = connection.getProgramMappingNames("credits.aleo");
233233
let mappings = connection.getProgramImportNames("foo.aleo");
234234
```
235235

236-
<a name="AleoNetworkClient+getMappingValue"></a>
236+
<a name="AleoNetworkClient+getProgramMappingValue"></a>
237237

238-
### aleoNetworkClient.getMappingValue(programId, mappingName, key)
238+
### aleoNetworkClient.getProgramMappingValue(programId, mappingName, key)
239239
<p>Returns the value of a program's mapping for a specific key</p>
240240

241241
**Kind**: instance method of [<code>AleoNetworkClient</code>](#AleoNetworkClient)
@@ -249,7 +249,7 @@ let mappings = connection.getProgramImportNames("foo.aleo");
249249
**Example**
250250
```js
251251
## Get public balance of an account
252-
let mappingValue = connection.getMappingValue("credits.aleo", "account", "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px");
252+
let mappingValue = connection.getProgramMappingValue("credits.aleo", "account", "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px");
253253
```
254254
<a name="AleoNetworkClient+getLatestBlock"></a>
255255

0 commit comments

Comments
 (0)