@@ -96,7 +96,7 @@ export class AlgodClient extends ServiceClient {
9696 *
9797 * #### Example
9898 * ```typescript
99- * const health = await algodClient.healthCheck().do();
99+ * await algodClient.healthCheck().do();
100100 * ```
101101 *
102102 * [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#get-health)
@@ -126,7 +126,7 @@ export class AlgodClient extends ServiceClient {
126126 *
127127 * #### Example
128128 * ```typescript
129- * const { txId } = await algodClient.sendRawTransaction(signedTxns).do();
129+ * const { txid } = await algodClient.sendRawTransaction(signedTxns).do();
130130 * const result = await waitForConfirmation(algodClient, txid, 3);
131131 * ```
132132 *
@@ -173,7 +173,7 @@ export class AlgodClient extends ServiceClient {
173173 * @param index - The asset ID to look up.
174174 * @category GET
175175 */
176- accountAssetInformation ( account : string | Address , index : number ) {
176+ accountAssetInformation ( account : string | Address , index : number | bigint ) {
177177 return new AccountAssetInformation ( this . c , account , index ) ;
178178 }
179179
@@ -192,7 +192,10 @@ export class AlgodClient extends ServiceClient {
192192 * @param index - The application ID to look up.
193193 * @category GET
194194 */
195- accountApplicationInformation ( account : string | Address , index : number ) {
195+ accountApplicationInformation (
196+ account : string | Address ,
197+ index : number | bigint
198+ ) {
196199 return new AccountApplicationInformation ( this . c , account , index ) ;
197200 }
198201
@@ -209,7 +212,7 @@ export class AlgodClient extends ServiceClient {
209212 * @param roundNumber - The round number of the block to get.
210213 * @category GET
211214 */
212- block ( roundNumber : number ) {
215+ block ( roundNumber : number | bigint ) {
213216 return new Block ( this . c , roundNumber ) ;
214217 }
215218
@@ -226,7 +229,7 @@ export class AlgodClient extends ServiceClient {
226229 * @param roundNumber - The round number of the block to get.
227230 * @category GET
228231 */
229- getBlockHash ( roundNumber : number ) {
232+ getBlockHash ( roundNumber : number | bigint ) {
230233 return new GetBlockHash ( this . c , roundNumber ) ;
231234 }
232235
@@ -243,7 +246,7 @@ export class AlgodClient extends ServiceClient {
243246 * @param roundNumber - The round number of the block to get.
244247 * @category GET
245248 */
246- getBlockTxids ( roundNumber : number ) {
249+ getBlockTxids ( roundNumber : number | bigint ) {
247250 return new GetBlockTxids ( this . c , roundNumber ) ;
248251 }
249252
@@ -355,7 +358,7 @@ export class AlgodClient extends ServiceClient {
355358 * @param round - The number of the round to wait for.
356359 * @category GET
357360 */
358- statusAfterBlock ( round : number ) {
361+ statusAfterBlock ( round : number | bigint ) {
359362 return new StatusAfterBlock ( this . c , round ) ;
360363 }
361364
@@ -504,7 +507,7 @@ export class AlgodClient extends ServiceClient {
504507 * @param index - The application ID to look up.
505508 * @category GET
506509 */
507- getApplicationBoxByName ( index : number , boxName : Uint8Array ) {
510+ getApplicationBoxByName ( index : number | bigint , boxName : Uint8Array ) {
508511 return new GetApplicationBoxByName ( this . c , index , boxName ) ;
509512 }
510513
@@ -522,7 +525,7 @@ export class AlgodClient extends ServiceClient {
522525 * @param index - The application ID to look up.
523526 * @category GET
524527 */
525- getApplicationBoxes ( index : number ) {
528+ getApplicationBoxes ( index : number | bigint ) {
526529 return new GetApplicationBoxes ( this . c , index ) ;
527530 }
528531
@@ -556,7 +559,7 @@ export class AlgodClient extends ServiceClient {
556559 * @param txID - The transaction ID for which to generate a proof.
557560 * @category GET
558561 */
559- getTransactionProof ( round : number , txID : string ) {
562+ getTransactionProof ( round : number | bigint , txID : string ) {
560563 return new GetTransactionProof ( this . c , round , txID ) ;
561564 }
562565
@@ -572,7 +575,7 @@ export class AlgodClient extends ServiceClient {
572575 * [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2blocksroundlightheaderproof)
573576 * @param round
574577 */
575- getLightBlockHeaderProof ( round : number ) {
578+ getLightBlockHeaderProof ( round : number | bigint ) {
576579 return new LightBlockHeaderProof ( this . c , round ) ;
577580 }
578581
@@ -588,7 +591,7 @@ export class AlgodClient extends ServiceClient {
588591 * [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2stateproofsround)
589592 * @param round
590593 */
591- getStateProof ( round : number ) {
594+ getStateProof ( round : number | bigint ) {
592595 return new StateProof ( this . c , round ) ;
593596 }
594597
@@ -678,7 +681,7 @@ export class AlgodClient extends ServiceClient {
678681 * @param offset
679682 * @category POST
680683 */
681- setBlockOffsetTimestamp ( offset : number ) {
684+ setBlockOffsetTimestamp ( offset : number | bigint ) {
682685 return new SetBlockOffsetTimestamp ( this . c , offset ) ;
683686 }
684687
@@ -710,7 +713,7 @@ export class AlgodClient extends ServiceClient {
710713 * @param round
711714 * @category POST
712715 */
713- setSyncRound ( round : number ) {
716+ setSyncRound ( round : number | bigint ) {
714717 return new SetSyncRound ( this . c , round ) ;
715718 }
716719
@@ -789,7 +792,7 @@ export class AlgodClient extends ServiceClient {
789792 * @param round the round number to be searched for
790793 * @category GET
791794 */
792- getLedgerStateDelta ( round : number ) {
795+ getLedgerStateDelta ( round : number | bigint ) {
793796 return new GetLedgerStateDelta ( this . c , round ) ;
794797 }
795798
@@ -806,7 +809,7 @@ export class AlgodClient extends ServiceClient {
806809 * @param round the round number to be searched for
807810 * @category GET
808811 */
809- getTransactionGroupLedgerStateDeltasForRound ( round : number ) {
812+ getTransactionGroupLedgerStateDeltasForRound ( round : number | bigint ) {
810813 return new GetTransactionGroupLedgerStateDeltasForRound ( this . c , round ) ;
811814 }
812815}
0 commit comments