🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

algosdk

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

algosdk - npm Package Compare versions

Comparing version
3.2.0
to
3.3.0
+58
-1
dist/cjs/client/v2/algod/getApplicationBoxes.js

@@ -15,3 +15,3 @@ "use strict";

* const index = 60553466;
* const boxesResponse = await algodClient.getApplicationBoxes(index).max(3).do();
* const boxesResponse = await algodClient.getApplicationBoxes(index).prefix('int:1234').next('b64:A==').values(true).do();
* const boxNames = boxesResponse.boxes.map(box => box.name);

@@ -55,2 +55,59 @@ * ```

}
/**
* A box name prefix, in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
*
* #### Example
* ```typescript
* const prefix = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .prefix(prefix)
* .do();
* ```
*
* @param prefix - the box name prefix in the form 'encoding:value'
* @category query
*/
prefix(prefix) {
this.query.prefix = prefix;
return this;
}
/**
* A box name, in the goal app call arg form 'encoding:value'. When provided, the returned boxes begin (lexographically) with the supplied name. Callers may implement pagination by reinvoking the endpoint with the token from a previous call's next-token.
*
* #### Example
* ```typescript
* const next = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .next(next)
* .do();
* ```
*
* @param next - the next box name for pagination, in the goal app call arg form 'encoding:value'
* @category query
*/
next(next) {
this.query.next = next;
return this;
}
/**
* If true, box values will be returned.
*
* #### Example
* ```typescript
* const values = true;
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .values(values)
* .do();
* ```
*
* @param values - if true, box values will be returned
* @category query
*/
values(values) {
this.query.values = values;
return this;
}
// eslint-disable-next-line class-methods-use-this

@@ -57,0 +114,0 @@ prepare(response) {

+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"getApplicationBoxes.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/getApplicationBoxes.ts"],"names":[],"mappings":";;;;;AAAA,uEAA4C;AAE5C,+DAA2D;AAC3D,gDAAkD;AAElD;;;;;;;;;;;;;GAaG;AACH,MAAqB,mBAAoB,SAAQ,wBAA0B;IAGzE,YAAY,CAAa,EAAE,KAAsB;QAC/C,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,QAAQ,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,GAAW;QACb,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,wBAAa,CAAC,CAAC;IAC3D,CAAC;CACF;AAxCD,sCAwCC"}
{"version":3,"file":"getApplicationBoxes.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/getApplicationBoxes.ts"],"names":[],"mappings":";;;;;AAAA,uEAA4C;AAE5C,+DAA2D;AAC3D,gDAAkD;AAElD;;;;;;;;;;;;;GAaG;AACH,MAAqB,mBAAoB,SAAQ,wBAA0B;IAGzE,YAAY,CAAa,EAAE,KAAsB;QAC/C,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,QAAQ,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,GAAW;QACb,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAc;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,IAAY;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAe;QACpB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,wBAAa,CAAC,CAAC;IAC3D,CAAC;CACF;AApGD,sCAoGC"}

@@ -265,2 +265,21 @@ "use strict";

}
/**
* If true, only online accounts will be returned in the response.
*
* #### Example
* ```typescript
* const onlineOnly = true;
* const accounts = await indexerClient
* .searchAccounts
* .onlineOnly(onlineOnly)
* .do();
* ```
*
* @param onlineOnly - if true, only online accounts will be returned in the response
* @category query
*/
onlineOnly(onlineOnly) {
this.query['online-only'] = onlineOnly;
return this;
}
// eslint-disable-next-line class-methods-use-this

@@ -267,0 +286,0 @@ prepare(response) {

@@ -1,1 +0,1 @@

{"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchAccounts.ts"],"names":[],"mappings":";;;;;AAAA,uEAA4C;AAE5C,+DAA2D;AAE3D,gDAAqD;AAErD;;;;;;;;;;GAUG;AACH,MAAqB,cAAe,SAAQ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,CAAC,aAA8B;QAC1C,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,aAAa,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,OAAe;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,2BAAgB,CAAC,CAAC;IAC9D,CAAC;CACF;AApQD,iCAoQC"}
{"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchAccounts.ts"],"names":[],"mappings":";;;;;AAAA,uEAA4C;AAE5C,+DAA2D;AAE3D,gDAAqD;AAErD;;;;;;;;;;GAUG;AACH,MAAqB,cAAe,SAAQ,wBAA6B;IACvE;;OAEG;IACH,kDAAkD;IAClD,IAAI;QACF,OAAO,cAAc,CAAC;IACxB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,uGAAuG;QACvG,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,gBAAgB,CAAC,MAAuB;QACtC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;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UAAU,CAAC,UAAmB;QAC5B,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,2BAAgB,CAAC,CAAC;IAC9D,CAAC;CACF;AAxRD,iCAwRC"}

@@ -10,3 +10,3 @@ import JSONRequest from '../jsonrequest.js';

* const index = 60553466;
* const boxesResponse = await algodClient.getApplicationBoxes(index).max(3).do();
* const boxesResponse = await algodClient.getApplicationBoxes(index).prefix('int:1234').next('b64:A==').values(true).do();
* const boxNames = boxesResponse.boxes.map(box => box.name);

@@ -50,2 +50,59 @@ * ```

}
/**
* A box name prefix, in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
*
* #### Example
* ```typescript
* const prefix = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .prefix(prefix)
* .do();
* ```
*
* @param prefix - the box name prefix in the form 'encoding:value'
* @category query
*/
prefix(prefix) {
this.query.prefix = prefix;
return this;
}
/**
* A box name, in the goal app call arg form 'encoding:value'. When provided, the returned boxes begin (lexographically) with the supplied name. Callers may implement pagination by reinvoking the endpoint with the token from a previous call's next-token.
*
* #### Example
* ```typescript
* const next = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .next(next)
* .do();
* ```
*
* @param next - the next box name for pagination, in the goal app call arg form 'encoding:value'
* @category query
*/
next(next) {
this.query.next = next;
return this;
}
/**
* If true, box values will be returned.
*
* #### Example
* ```typescript
* const values = true;
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .values(values)
* .do();
* ```
*
* @param values - if true, box values will be returned
* @category query
*/
values(values) {
this.query.values = values;
return this;
}
// eslint-disable-next-line class-methods-use-this

@@ -52,0 +109,0 @@ prepare(response) {

@@ -1,1 +0,1 @@

{"version":3,"file":"getApplicationBoxes.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/getApplicationBoxes.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,WAA0B;IAGzE,YAAY,CAAa,EAAE,KAAsB;QAC/C,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,QAAQ,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,GAAW;QACb,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,aAAa,CAAC,CAAC;IAC3D,CAAC;CACF"}
{"version":3,"file":"getApplicationBoxes.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/getApplicationBoxes.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,WAA0B;IAGzE,YAAY,CAAa,EAAE,KAAsB;QAC/C,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,QAAQ,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,GAAW;QACb,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAc;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,IAAY;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAe;QACpB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,aAAa,CAAC,CAAC;IAC3D,CAAC;CACF"}

@@ -260,2 +260,21 @@ import JSONRequest from '../jsonrequest.js';

}
/**
* If true, only online accounts will be returned in the response.
*
* #### Example
* ```typescript
* const onlineOnly = true;
* const accounts = await indexerClient
* .searchAccounts
* .onlineOnly(onlineOnly)
* .do();
* ```
*
* @param onlineOnly - if true, only online accounts will be returned in the response
* @category query
*/
onlineOnly(onlineOnly) {
this.query['online-only'] = onlineOnly;
return this;
}
// eslint-disable-next-line class-methods-use-this

@@ -262,0 +281,0 @@ prepare(response) {

@@ -1,1 +0,1 @@

{"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/searchAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAA6B;IACvE;;OAEG;IACH,kDAAkD;IAClD,IAAI;QACF,OAAO,cAAc,CAAC;IACxB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,uGAAuG;QACvG,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,gBAAgB,CAAC,MAAuB;QACtC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAmB;QACzB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;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K,CAAC,gBAAgB,CAAC,GAAG,aAAa,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,OAAe;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,UAAmB;QAC5B,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;CACF"}

@@ -10,3 +10,3 @@ import JSONRequest from '../jsonrequest.js';

* const index = 60553466;
* const boxesResponse = await algodClient.getApplicationBoxes(index).max(3).do();
* const boxesResponse = await algodClient.getApplicationBoxes(index).prefix('int:1234').next('b64:A==').values(true).do();
* const boxNames = boxesResponse.boxes.map(box => box.name);

@@ -42,3 +42,51 @@ * ```

max(max: number): this;
/**
* A box name prefix, in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
*
* #### Example
* ```typescript
* const prefix = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .prefix(prefix)
* .do();
* ```
*
* @param prefix - the box name prefix in the form 'encoding:value'
* @category query
*/
prefix(prefix: string): this;
/**
* A box name, in the goal app call arg form 'encoding:value'. When provided, the returned boxes begin (lexographically) with the supplied name. Callers may implement pagination by reinvoking the endpoint with the token from a previous call's next-token.
*
* #### Example
* ```typescript
* const next = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .next(next)
* .do();
* ```
*
* @param next - the next box name for pagination, in the goal app call arg form 'encoding:value'
* @category query
*/
next(next: string): this;
/**
* If true, box values will be returned.
*
* #### Example
* ```typescript
* const values = true;
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .values(values)
* .do();
* ```
*
* @param values - if true, box values will be returned
* @category query
*/
values(values: boolean): this;
prepare(response: HTTPClientResponse): BoxesResponse;
}

@@ -227,3 +227,19 @@ import JSONRequest from '../jsonrequest.js';

exclude(exclude: string): this;
/**
* If true, only online accounts will be returned in the response.
*
* #### Example
* ```typescript
* const onlineOnly = true;
* const accounts = await indexerClient
* .searchAccounts
* .onlineOnly(onlineOnly)
* .do();
* ```
*
* @param onlineOnly - if true, only online accounts will be returned in the response
* @category query
*/
onlineOnly(onlineOnly: boolean): this;
prepare(response: HTTPClientResponse): AccountsResponse;
}
{
"name": "algosdk",
"version": "3.2.0",
"version": "3.3.0",
"description": "The official JavaScript SDK for Algorand",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -9,3 +9,3 @@ # js-algorand-sdk

Existing codebases using v2 of this library will be incompatible with v3. The v3 release introduces breaking changes to the API, and a migration guide is available [here](v2_TO_v3_MIGRATION_GUIDE.md).
Existing codebases using v2 of this library will be incompatible with v3. The v3 release introduces breaking changes to the API, and a migration guide is available [here](https://github.com/algorand/js-algorand-sdk/blob/main/v2_TO_v3_MIGRATION_GUIDE.md).

@@ -28,4 +28,4 @@ ## Installation

<script
src="https://unpkg.com/algosdk@v3.2.0/dist/browser/algosdk.min.js"
integrity="sha384-P3wogHQ1+Zf+KQbCx+X4AXICZ0I9nV2FkJuL/5QJ7xQYv44ctvHyz026hnxuhLDR"
src="https://unpkg.com/algosdk@v3.3.0/dist/browser/algosdk.min.js"
integrity="sha384-q14GmXcqB0Pg4D0K5EsuV8xibRcsA/Nu4uuHSKPrmild6E1Naw7vxHJBvX1o3qZV"
crossorigin="anonymous"

@@ -39,4 +39,4 @@ ></script>

<script
src="https://cdn.jsdelivr.net/npm/algosdk@v3.2.0/dist/browser/algosdk.min.js"
integrity="sha384-P3wogHQ1+Zf+KQbCx+X4AXICZ0I9nV2FkJuL/5QJ7xQYv44ctvHyz026hnxuhLDR"
src="https://cdn.jsdelivr.net/npm/algosdk@v3.3.0/dist/browser/algosdk.min.js"
integrity="sha384-q14GmXcqB0Pg4D0K5EsuV8xibRcsA/Nu4uuHSKPrmild6E1Naw7vxHJBvX1o3qZV"
crossorigin="anonymous"

@@ -43,0 +43,0 @@ ></script>

@@ -12,3 +12,3 @@ import JSONRequest from '../jsonrequest.js';

* const index = 60553466;
* const boxesResponse = await algodClient.getApplicationBoxes(index).max(3).do();
* const boxesResponse = await algodClient.getApplicationBoxes(index).prefix('int:1234').next('b64:A==').values(true).do();
* const boxNames = boxesResponse.boxes.map(box => box.name);

@@ -57,2 +57,62 @@ * ```

/**
* A box name prefix, in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
*
* #### Example
* ```typescript
* const prefix = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .prefix(prefix)
* .do();
* ```
*
* @param prefix - the box name prefix in the form 'encoding:value'
* @category query
*/
prefix(prefix: string) {
this.query.prefix = prefix;
return this;
}
/**
* A box name, in the goal app call arg form 'encoding:value'. When provided, the returned boxes begin (lexographically) with the supplied name. Callers may implement pagination by reinvoking the endpoint with the token from a previous call's next-token.
*
* #### Example
* ```typescript
* const next = 'int:1234';
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .next(next)
* .do();
* ```
*
* @param next - the next box name for pagination, in the goal app call arg form 'encoding:value'
* @category query
*/
next(next: string) {
this.query.next = next;
return this;
}
/**
* If true, box values will be returned.
*
* #### Example
* ```typescript
* const values = true;
* const boxesResult = await algodClient
* .GetApplicationBoxes(1234)
* .values(values)
* .do();
* ```
*
* @param values - if true, box values will be returned
* @category query
*/
values(values: boolean) {
this.query.values = values;
return this;
}
// eslint-disable-next-line class-methods-use-this

@@ -59,0 +119,0 @@ prepare(response: HTTPClientResponse): BoxesResponse {

@@ -274,2 +274,22 @@ import JSONRequest from '../jsonrequest.js';

/**
* If true, only online accounts will be returned in the response.
*
* #### Example
* ```typescript
* const onlineOnly = true;
* const accounts = await indexerClient
* .searchAccounts
* .onlineOnly(onlineOnly)
* .do();
* ```
*
* @param onlineOnly - if true, only online accounts will be returned in the response
* @category query
*/
onlineOnly(onlineOnly: boolean) {
this.query['online-only'] = onlineOnly;
return this;
}
// eslint-disable-next-line class-methods-use-this

@@ -276,0 +296,0 @@ prepare(response: HTTPClientResponse): AccountsResponse {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display