GithubHelp home page GithubHelp logo

Next Gen RPC Node

Introducing the Next Gen RPC Node: A robust solution that combines multiple RPC endpoints to enhance availability, reduce latency, and bolster security. This open-source tool is perfect for all DApp developers seeking reliable and efficient endpoint management.

Applicable for such blockchain protocols:

Arbitrum: https://github.com/cyberwider/next-gen-rpc/blob/main/arbitrum.config-example.json

Aurora (Near's EVM): https://github.com/cyberwider/next-gen-rpc/blob/main/aurora.config-example.json

Aztec: https://github.com/cyberwider/next-gen-rpc/blob/main/aztec.config-example.json

Base: https://github.com/cyberwider/next-gen-rpc/blob/main/base.config-example.json

BSC: https://github.com/cyberwider/next-gen-rpc/blob/main/bnb.config-example.json

Ethereum: https://github.com/cyberwider/next-gen-rpc/blob/main/ethereum.config-example.json

Filecoin EVM: https://github.com/cyberwider/next-gen-rpc/blob/main/filecoin.config-example.json

Gnosis Chain: https://github.com/cyberwider/next-gen-rpc/blob/main/gnosis.config-example.json

Mantle: https://github.com/cyberwider/next-gen-rpc/blob/main/mantle.config-example.json

Neon EVM: https://github.com/cyberwider/next-gen-rpc/blob/main/neon-evm.config-example.json

Polygon: https://github.com/cyberwider/next-gen-rpc/blob/main/polygon.config-example.json

Scroll: https://github.com/cyberwider/next-gen-rpc/blob/main/scroll.config-example.json

StarkNet: https://github.com/cyberwider/next-gen-rpc/blob/main/starknet.config-example.json

zkSync: https://github.com/cyberwider/next-gen-rpc/blob/main/zksync.config-example.json

Simplified Architecture Overview

Our system utilizes Cloudflare Workers alongside the Cloudflare KV Storage plugin and the Cloudflare Caching API for optimal performance and reliability.

Easy Start Guide

Quick Setup

  1. Local Environment Setup: Install npm and yarn on your machine.

  2. Cloudflare Account: Register for a Cloudflare account.

  3. Install Dependencies: Run the following command:

    yarn install
  4. Wrangler Configuration: Log in to your Wrangler account locally:

    yarn run wrangler login

Node List Setup

  1. Create KV Namespace in Cloudflare KV:

    • For development, set up a preview KV:

      yarn run wrangler kv:namespace create CONFIG_KV --preview
    • For production, set up a regular KV:

      yarn run wrangler kv:namespace create CONFIG_KV

    Then, insert the provided config into your wrangler.toml file. Here's an example for both development and production setups:

    • Development:

      kv_namespaces = [
          { binding = "CONFIG_KV", preview_id = "PREVIEW_ID" }
      ]
    • Production:

      kv_namespaces = [
          { binding = "CONFIG_KV", id = "ID" },
      ]
  2. Prepare Your Node List:

    • Use the structure provided in node-config-example.json as a template.
    • You can enhance routing efficiency by specifying geographical coordinates for each node. Services like IP Info can help extract this information from IP addresses.
  3. Enter Node List Data into KV Namespace:

    • Access the Cloudflare UI, navigate to the Workers KV page, and select your namespace.
    • Add a new entry:

Local Development

  1. Ensure your KV namespace is set up and the node list is properly configured.

  2. Start the local server with:

    yarn run wrangler dev

Deployment

  1. Verify that the KV namespace and node list are configured correctly.

  2. Deploy your worker code to Cloudflare Workers:

    yarn run wrangler publish

Team

cyberwider's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.