LogoLogo
Visit Site
  • WELCOME
    • What is POKT?
    • $POKT Token
      • Bridging
        • Wrapped POKT (wPOKT)
          • Wrapping Walkthrough
          • Wrapping and Unwrapping FAQ
          • LP Staking Walkthrough
          • Liquidity Provider Staking FAQ
      • POKT Rewards
        • Stake POKT
      • Holding POKT
        • NodeWallet
        • Pocket Wallet
        • Ledger
  • WHO WE ARE
    • POKT Overview
  • POKT Protocol
    • Our evolution
    • The Morse Protocol
      • The Economics
    • The Shannon Upgrade
      • Technical Overview
        • Launch Roadmap
        • Morse -> Shannon Migration
          • PIP Migration
          • Other Migration
          • Expected Gaps
          • Future Features
        • Secondary DA Networks
      • Shannon Actors
        • Sovereign Applications
        • Gateways
        • Suppliers
        • Sources
      • Proposed Tokenomics
        • Token Logic Modules
        • Gaming Prevention
        • Aligned Incentives
        • Tokenomics Resources
      • Jump in to Shannon Today
  • Developers
    • Access RPC
    • Use a Gateway
      • Nodies
      • Grove
    • Use a Public Endpoint
  • Node Operators
    • Operate a Node
    • Manual Node Setup Guide
      • Part 1 - Server Setup
      • Part 2 - Software Installation
      • Part 3 - Pocket Configuration
      • Part 4 - Proxy Configuration
      • Part 5 - Going Live
  • Gateways
    • Host a Gateway
      • Gateway Server
      • Quick Onboarding Guide
      • Node Selection
      • API Endpoints
      • Relay Process
  • Community
    • DAO (OS)
    • Start Contributing
      • Bounties
      • Quick Grants
      • RFPs
      • Maintainers
      • How to Use Karma GAP
    • Governance
      • Earn Your Vote
      • Node Runners
      • App Developers
      • Community Shepherds
      • Contributors
      • CREDS - Governance Upgrade
        • Privacy & anonymity
        • Onboarding New Voters
        • Migration of Existing Voters
        • System Flow Design
    • Retro POKT Goods Funding
      • Timeline
      • Eligibility Criteria
      • Rules of Conduct
      • Voters & Voting
      • Voting Rubric
      • Support & FAQ
      • What is Retro POKT Goods funding Round 1?
    • Community Calls + Events
    • POKT Events Playbook
      • Hosting Your Event
        • Event Type
          • Small Events
          • Mid-sized Events
          • Large Events
      • Event Agenda
      • Speaker
      • Venue
      • Applying for Funding
      • Your Responsibilities as a Host
      • Resources
        • Email Templates
        • Social Media Templates
        • Survey Questions Template
  • Reference
    • Supported Chains
    • API Definition
Powered by GitBook
On this page
  • Features
  • What's included in the Gateway Server?
  • What's not included in the Gateway Server?
  • The Future of the Gateway Server
  1. Gateways
  2. Host a Gateway

Gateway Server

PreviousHost a GatewayNextQuick Onboarding Guide

Last updated 1 year ago

The Gateway Server lets all developers use the POKT Network protocol access over 50 blockchains. This is all done without the need to store terabytes of data, have powerful computers, or knowledge of the POKT Network protocol.

POKT Network's self-hosted Gateway Server is a lightweight client that connects with the POKT Network. It uses a familiar HTTP JSON-RPC Server interface for your applications (and any customer applications) to send and receive RPC requests.

The Gateway Server abstracts away the complexities of directly interfacing with the POKT Network protocol. This means you can connect to the network easily, pick the services you want, and add others as needed.

Features

What's included in the Gateway Server?

  • Easy Deployment: simple docker-compose file with minimal dependencies to spin up single tenancy HTTP endpoints for each blockchain that POKT supports. The throughput of your endpoints will scale dynamically based on the number of app stakes you provide.

  • Hyper Efficient: an optimized POKT client leveraging FastHTTP and FastJSON for efficient computational resources, memory footprint, and minimal latency.

  • Quality of Service (QoS) Algorithms: QoS checks and node selection and routing algorithms to optimize latency and request success rates. The modular architecture also means it will be easy for you to optimize your own quality methods..

  • Metrics: Prometheus metrics for success, error rates, and latency for sending a relay to the network.

What's not included in the Gateway Server?

What will you need to manage as the Gateway Operator?

  • Staking in the appropriate chains

  • Authentication

  • Rate Limiting & Multi-tenancy endpoints

  • Reverse Proxy / Load Balancing Mechanisms

  • OpSec – keeping the encryption key, and respectively the app stakes keys, secure

  • Other typical web2 components such as:

Gateway component
Detail

Self-hosted Front-end (onboarding, user accounts, team management, payments, etc)

  • Standard Web2 SaaS interface, using open-source libraries or B2B tooling (e.g. Vercel, Stripe)

  • Complexity depends a lot on the type of gateway service you want to offer - e.g. full enterprise-grade stack, public endpoint dashboard, members-only shared endpoints, etc.

Back-end RPC endpoint infrastructure

Components such as webservers, DNS for distributing RPC endpoints, rate limiting, Grafana monitoring/alerting

The decision to exclude certain features is rooted in the server development project's philosophy. These aspects are often regarded as opinionated web2 functionalities for which there are already numerous resources available (e.g. the choice of authentication mechanisms can vary widely between teams, ranging from widely-used services like Auth0 and Amazon Cognito to in-house authentication solutions tailored to the specific language and skill set of the development team).

The Gateway Server aims to simplify the POKT protocol, not reinvent the wheel. Each Gateway, being a distinct entity with its unique requirements and team dynamics, is better suited to decide on these aspects independently. By not including these opinionated web2 functionalities, the Gateway Server acknowledges the diversity of preferences and needs among developers and businesses. This approach allows teams to integrate their preferred solutions seamlessly, fostering flexibility and ensuring that the Gateway Server remains lightweight and adaptable to a wide range of use cases.

As the project evolves, we anticipate that individual Gateways will incorporate their implementations of these features based on their unique requirements and preferences. This decentralized approach empowers developers to make decisions that align with their specific use cases, promoting a more customized and efficient integration with the Gateway Server.


The Future of the Gateway Server

We envision that the Gateway Server will be used as a foundation for POKT developers to build on, in a wide range of use cases:

  • Building headless RPC SaaS businesses that provide a familiar UX to developers with a decentralized RPC backend

  • Using POKT as a hyper scaler whenever they need more computational power or access to more blockchains (sticking the process into their LB rotation)

  • Using POKT as a backend as a failover whenever their centralized nodes go down (sticking the process into their LB rotation)

Over time, as more gateways enter the network, we expect new use cases and needs to emerge and to see the Gateway Server evolve to meet these needs.

If you would like to contribute to the Gateway Server, see the GitHub repo .

here
gRPC