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

B Labs develops a Discord bot called Realms to enhance governance, decision-making, and productivity in Web3 communities, empowering them to manage sub-groups efficiently.
Launching Liquidity Provider Cohorts for in-depth education on Uniswap3's AMM, concentrated liquidity, and investment strategies, exclusively using the Arbitrum network, with six one-month cohorts.
A non-profit DAO accelerating nature-based solutions by providing a decentralized platform for research collaboration and outsourcing, empowering scientists and fostering innovation for environmental sustainability.
Utilizing AI agents and reinforcement learning, the project aims to optimize token ecosystems by simulating and refining bonding curve mechanisms to anticipate and mitigate malicious strategies in PAMM and SAMM setups.
Fundraising for marketing initiatives to facilitate Phangan QF rounds, with all assets managed by a multisig wallet.