@@ -96,7 +96,7 @@ export class AlgodClient extends ServiceClient {
96
96
*
97
97
* #### Example
98
98
* ```typescript
99
- * const health = await algodClient.healthCheck().do();
99
+ * await algodClient.healthCheck().do();
100
100
* ```
101
101
*
102
102
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#get-health)
@@ -126,7 +126,7 @@ export class AlgodClient extends ServiceClient {
126
126
*
127
127
* #### Example
128
128
* ```typescript
129
- * const { txId } = await algodClient.sendRawTransaction(signedTxns).do();
129
+ * const { txid } = await algodClient.sendRawTransaction(signedTxns).do();
130
130
* const result = await waitForConfirmation(algodClient, txid, 3);
131
131
* ```
132
132
*
@@ -173,7 +173,7 @@ export class AlgodClient extends ServiceClient {
173
173
* @param index - The asset ID to look up.
174
174
* @category GET
175
175
*/
176
- accountAssetInformation ( account : string | Address , index : number ) {
176
+ accountAssetInformation ( account : string | Address , index : number | bigint ) {
177
177
return new AccountAssetInformation ( this . c , account , index ) ;
178
178
}
179
179
@@ -192,7 +192,10 @@ export class AlgodClient extends ServiceClient {
192
192
* @param index - The application ID to look up.
193
193
* @category GET
194
194
*/
195
- accountApplicationInformation ( account : string | Address , index : number ) {
195
+ accountApplicationInformation (
196
+ account : string | Address ,
197
+ index : number | bigint
198
+ ) {
196
199
return new AccountApplicationInformation ( this . c , account , index ) ;
197
200
}
198
201
@@ -209,7 +212,7 @@ export class AlgodClient extends ServiceClient {
209
212
* @param roundNumber - The round number of the block to get.
210
213
* @category GET
211
214
*/
212
- block ( roundNumber : number ) {
215
+ block ( roundNumber : number | bigint ) {
213
216
return new Block ( this . c , roundNumber ) ;
214
217
}
215
218
@@ -226,7 +229,7 @@ export class AlgodClient extends ServiceClient {
226
229
* @param roundNumber - The round number of the block to get.
227
230
* @category GET
228
231
*/
229
- getBlockHash ( roundNumber : number ) {
232
+ getBlockHash ( roundNumber : number | bigint ) {
230
233
return new GetBlockHash ( this . c , roundNumber ) ;
231
234
}
232
235
@@ -243,7 +246,7 @@ export class AlgodClient extends ServiceClient {
243
246
* @param roundNumber - The round number of the block to get.
244
247
* @category GET
245
248
*/
246
- getBlockTxids ( roundNumber : number ) {
249
+ getBlockTxids ( roundNumber : number | bigint ) {
247
250
return new GetBlockTxids ( this . c , roundNumber ) ;
248
251
}
249
252
@@ -355,7 +358,7 @@ export class AlgodClient extends ServiceClient {
355
358
* @param round - The number of the round to wait for.
356
359
* @category GET
357
360
*/
358
- statusAfterBlock ( round : number ) {
361
+ statusAfterBlock ( round : number | bigint ) {
359
362
return new StatusAfterBlock ( this . c , round ) ;
360
363
}
361
364
@@ -504,7 +507,7 @@ export class AlgodClient extends ServiceClient {
504
507
* @param index - The application ID to look up.
505
508
* @category GET
506
509
*/
507
- getApplicationBoxByName ( index : number , boxName : Uint8Array ) {
510
+ getApplicationBoxByName ( index : number | bigint , boxName : Uint8Array ) {
508
511
return new GetApplicationBoxByName ( this . c , index , boxName ) ;
509
512
}
510
513
@@ -522,7 +525,7 @@ export class AlgodClient extends ServiceClient {
522
525
* @param index - The application ID to look up.
523
526
* @category GET
524
527
*/
525
- getApplicationBoxes ( index : number ) {
528
+ getApplicationBoxes ( index : number | bigint ) {
526
529
return new GetApplicationBoxes ( this . c , index ) ;
527
530
}
528
531
@@ -556,7 +559,7 @@ export class AlgodClient extends ServiceClient {
556
559
* @param txID - The transaction ID for which to generate a proof.
557
560
* @category GET
558
561
*/
559
- getTransactionProof ( round : number , txID : string ) {
562
+ getTransactionProof ( round : number | bigint , txID : string ) {
560
563
return new GetTransactionProof ( this . c , round , txID ) ;
561
564
}
562
565
@@ -572,7 +575,7 @@ export class AlgodClient extends ServiceClient {
572
575
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2blocksroundlightheaderproof)
573
576
* @param round
574
577
*/
575
- getLightBlockHeaderProof ( round : number ) {
578
+ getLightBlockHeaderProof ( round : number | bigint ) {
576
579
return new LightBlockHeaderProof ( this . c , round ) ;
577
580
}
578
581
@@ -588,7 +591,7 @@ export class AlgodClient extends ServiceClient {
588
591
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2stateproofsround)
589
592
* @param round
590
593
*/
591
- getStateProof ( round : number ) {
594
+ getStateProof ( round : number | bigint ) {
592
595
return new StateProof ( this . c , round ) ;
593
596
}
594
597
@@ -678,7 +681,7 @@ export class AlgodClient extends ServiceClient {
678
681
* @param offset
679
682
* @category POST
680
683
*/
681
- setBlockOffsetTimestamp ( offset : number ) {
684
+ setBlockOffsetTimestamp ( offset : number | bigint ) {
682
685
return new SetBlockOffsetTimestamp ( this . c , offset ) ;
683
686
}
684
687
@@ -710,7 +713,7 @@ export class AlgodClient extends ServiceClient {
710
713
* @param round
711
714
* @category POST
712
715
*/
713
- setSyncRound ( round : number ) {
716
+ setSyncRound ( round : number | bigint ) {
714
717
return new SetSyncRound ( this . c , round ) ;
715
718
}
716
719
@@ -789,7 +792,7 @@ export class AlgodClient extends ServiceClient {
789
792
* @param round the round number to be searched for
790
793
* @category GET
791
794
*/
792
- getLedgerStateDelta ( round : number ) {
795
+ getLedgerStateDelta ( round : number | bigint ) {
793
796
return new GetLedgerStateDelta ( this . c , round ) ;
794
797
}
795
798
@@ -806,7 +809,7 @@ export class AlgodClient extends ServiceClient {
806
809
* @param round the round number to be searched for
807
810
* @category GET
808
811
*/
809
- getTransactionGroupLedgerStateDeltasForRound ( round : number ) {
812
+ getTransactionGroupLedgerStateDeltasForRound ( round : number | bigint ) {
810
813
return new GetTransactionGroupLedgerStateDeltasForRound ( this . c , round ) ;
811
814
}
812
815
}
0 commit comments