{"title": "My P-P-Protocol", "logoImg": "bafkreigyvk2btilf3tvmmxkimnmylj3uhst2b3axjtglw6qn5lkr4oqmo4", "website": "https://p-protoco.ll", "bannerImg": "bafybeigxn2sukxye4sfktemcancg2pu6x6nrnyzklfymwsu4nat45rba6e", "createdAt": 1706182533442, "credentials": {}, "description": "```\nexport async function getCurrentSubgraphBlockNumber(\n  chainId: number\n): Promise<bigint> {\n  try {\n    const res = await graphql_fetch(\n      `\n        {\n          _meta {\n            block {\n              number,\n              hash\n            }\n          }\n        }\n      `,\n      chainId\n    );\n    return BigInt(res.data._meta.block.number);\n  } catch (error) {\n    console.error(\n      \"An error occurred while fetching current subgraph block number:\",\n      error\n    );\n    throw error;\n  }\n}\n```", "logoImgData": {}, "bannerImgData": {}}