My P-P-Protocol
18%
average score over 1 application evaluations
Function to fetch and return the current block number of a subgraph for a given blockchain chain ID.
export async function getCurrentSubgraphBlockNumber(
  chainId: number
): Promise<bigint> {
  try {
    const res = await graphql_fetch(
      `
        {
          _meta {
            block {
              number,
              hash
            }
          }
        }
      `,
      chainId
    );
    return BigInt(res.data._meta.block.number);
  } catch (error) {
    console.error(
      "An error occurred while fetching current subgraph block number:",
      error
    );
    throw error;
  }
}

My P-P-Protocol History

Explore projects

Developing non-custodial DeFi yield products for cryptocurrencies like USDC, BTC, and ETH, providing revenue and benefits to UMAMI token holders.
Reiciendis suscipit neque dolores vel. Ad ex modi illum et nesciunt doloribus placeat adipisci. Impedit neque ipsa laboriosam provident.
An AI-driven, blockchain-based system for authenticating scientific data from IoT devices, ensuring data integrity and privacy in research, particularly for automated machine-to-machine experiments.
Global co-op supporting pizzerias through buyouts, software development, and global pizza parties, with chapters in 100+ cities and $800,000 in giveaways across 75 countries.
A decentralized platform offering affordable mental health services with 71 licensed therapists, leveraging blockchain for transparency, security, and inclusivity.