import{BlockfrostAdapter,NetworkId}from"@minswap/blockfrost-adapter";constapi=newBlockfrostAdapter({projectId: "<your_project_id>",networkId: NetworkId.MAINNET,});for(leti=1;;i++){constpools=awaitapi.getPools({page: i});if(pools.length===0){// last pagebreak;}constminADAPool=pools.find((p)=>p.assetA==="lovelace"&&p.assetB==="29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e");if(minADAPool){const[a,b]=awaitapi.getPoolPrice({pool: minADAPool});console.log(`ADA/MIN price: ${a.toString()}; MIN/ADA price: ${b.toString()}`);// we can later use this ID to call getPoolByIdconsole.log(`ADA/MIN pool ID: ${minADAPool.id}`);break;}}