@@ -160,62 +160,6 @@ export async function algosdkAlgodRequests() {
160160 // const currentOffset = await algod.getBlockOffsetTimestamp().do();
161161}
162162
163- export async function algosdkAlgodRequests1 ( ) {
164- // TestNet configuration (using AlgoNode public API)
165- const algod = new Algodv2 (
166- "a" . repeat ( 64 ) ,
167- // "http://localhost",
168- // 4001
169- "https://testnet-api.4160.nodely.dev" ,
170- 443
171- ) ;
172-
173- // ========================================
174- // TEST DATA SOURCES:
175- // - Rounds from utils-py test_block.py and test_ledger_state_delta.py
176- // - Other params from Lora object mothers
177- // ========================================
178-
179- // From utils-py: Verified TestNet blocks with state proof transactions
180- // For simplicity, we use only the first round here
181- const round = 24099447 ;
182- // Use to test multiple rounds, loop through the rounds
183- const round2 = 24099347 ;
184-
185- // From Lora: TestNet object mothers
186- const address = "25M5BT2DMMED3V6CWDEYKSNEFGPXX4QBIINCOICLXXRU3UGTSGRMF3MTOE" ;
187- const appId = 1108 ; // localnet
188- // const appId = 718348254; // testnet
189- const assetId = 705457144 ;
190- const txId = "VIXTUMAPT7NR4RB2WVOGMETW4QY43KIDA3HWDWWXS3UEDKGTEECQ" ;
191-
192- // ============================================
193- // TODO ITEMS AND COMMENTED OUT CODE
194- // ============================================
195-
196- // // GET /v2/stateproofs/{round}
197- // // TODO: find a valid value. Will likely have to be done with localnet
198- // const stateProof = await algod.getStateProof(round).do();
199-
200- // // GET /v2/transactions/pending/{txid}
201- // // TODO: find valid values
202- // const pending = await algod.pendingTransactionInformation(txId).do();
203-
204- // // GET /v2/deltas/txn/group/{id}
205- // // SKIP: No group IDs available in Lora object mothers
206- // // To implement, find a real testnet group ID and use:
207- // const groupId = "REAL_TESTNET_GROUP_ID";
208- // const deltaForGroup = await algod
209- // .getLedgerStateDeltaForTransactionGroup(groupId)
210- // .do();
211-
212- // GET /v2/deltas/{round}/txn/group
213- // const roundWithTxnGroup = 57624226;
214- // await algod
215- // .getTransactionGroupLedgerStateDeltasForRound(roundWithTxnGroup)
216- // .do();
217- }
218-
219163export async function algosdkAlgodRequestsWithMainnet ( ) {
220164 // TestNet configuration (using AlgoNode public API)
221165 const algod = new Algodv2 (
0 commit comments