@@ -44,7 +44,7 @@ Parameters:
4444
4545Example:
4646``` javascript
47- const identity = await sdk .get_identity (" GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec" );
47+ const identity = await sdk .getIdentity (" GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec" );
4848```
4949
5050** Get Identity Keys** - ` getIdentityKeys `
@@ -109,7 +109,7 @@ Parameters:
109109
110110Example:
111111``` javascript
112- const balance = await sdk .get_identity_balance (identityId);
112+ const balance = await sdk .getIdentityBalance (identityId);
113113```
114114
115115** Get Identities Balances** - ` getIdentitiesBalances `
@@ -267,7 +267,7 @@ Parameters:
267267
268268Example:
269269``` javascript
270- const docs = await sdk .get_documents (
270+ const docs = await sdk .getDocuments (
271271 contractId,
272272 " note" ,
273273 JSON .stringify ([[" $ownerId" , " ==" , identityId]]),
@@ -1072,7 +1072,7 @@ const result = await sdk.masternodeVote(identityHex, /* params */, privateKeyHex
10721072### Error Handling
10731073``` javascript
10741074try {
1075- const result = await sdk .get_identity (identityId);
1075+ const result = await sdk .getIdentity (identityId);
10761076 console .log (result);
10771077} catch (error) {
10781078 console .error (" Query failed:" , error);
@@ -1085,7 +1085,7 @@ try {
10851085const sdk = await WasmSdk .new (transport, true );
10861086
10871087// Query with proof verification
1088- const identityWithProof = await sdk .get_identity (identityId);
1088+ const identityWithProof = await sdk .getIdentity (identityId);
10891089```
10901090
10911091### Document Queries with Where/OrderBy
@@ -1101,7 +1101,7 @@ const orderBy = JSON.stringify([
11011101 [" $createdAt" , " desc" ]
11021102]);
11031103
1104- const docs = await sdk .get_documents (
1104+ const docs = await sdk .getDocuments (
11051105 contractId,
11061106 documentType,
11071107 whereClause,
@@ -1114,7 +1114,7 @@ const docs = await sdk.get_documents(
11141114``` javascript
11151115// Get multiple identities
11161116const identityIds = [" id1" , " id2" , " id3" ];
1117- const balances = await sdk .get_identities_balances (identityIds);
1117+ const balances = await sdk .getIdentitiesBalances (identityIds);
11181118```
11191119
11201120## Important Notes
0 commit comments