LogoLogo
Home
  • 🍄Mission
  • FAQ
  • Hypha
    • 🌐What is Hypha
    • L1 Staking Architecture
    • How to Stake and Support L1 Chains
    • Hardware Provider Onboarding
    • Running an L1 Node for L1Marketplace
  • GoGoPool
    • Liquid Staking
      • 💧What is Liquid Staking?
      • ⛓️How Liquid Staking Works
      • 💸Yield - APY
      • 📘Guide: How to Stake - Unstake AVAX
      • Liquid Staking
    • Minipool
      • 💦What is Minipool?
      • ⚙️How Minipool Works
      • 💸Yield - APY
      • 🚦Minipool Statuses
      • 🚀How One-Click Launcher Works
      • 🪄Guide: How to Launch a Minipool with One-Click Launcher
      • 🖥️Guide: How to Launch a Minipool using Allnodes
      • ⚒️Guide: How to Launch a Minipool with Manual Setup
      • 🔑Avalanche BLS Keys
      • Launch Minipool
  • Protocol
    • 📚Litepaper
    • 🪙Tokenomics
    • 📐Analytics Explained
    • 🔒Security
      • 🔎Audits
        • 🔐Code4rena Audit
        • 🔐Zellic Audit
        • 🔐Kudelski Security Audit
      • 🕵️Bug Bounty Program
      • ⚠️Vulnerability Reports
    • ⏰Notifications
    • GoGoPool App
  • Technical Information & Brand Assets
    • 📒Contract Addresses
    • 💻API
Powered by GitBook
On this page
  • Available Data
  • Code Examples
  • API Endpoints
Edit on GitHub
  1. Technical Information & Brand Assets

API

Details and documentation for accessing and using the GoGoPool API for developers.

The GoGoPool API is a decentralized liquid staking protocol built on Avalanche that provides a robust and scalable solution for blockchain data. The API offers a wide range of endpoints that enable users to access various data points, including token prices, staking information, and validator data.

Available Data

The GoGoPool API provides access to the following data points:

  • Token prices: Get current and historical token prices, including GGP, AVAX, and USD prices.

  • Staking information: Retrieve staking-related data, such as staker information, minipool data, and validator information.

  • Validator data: Access data on active validators, including their node IDs, staking information, and rewards.

  • Rewards: Calculate rewards based on ggpStaked and avaxStaked amounts or retrieve rewards data for a specific address.

  • Metrics: Retrieve various metrics, such as ggAVAX APY, total assets, and staking information.

  • Feature flags: Get feature flags for the current environment.

Code Examples

Here's an example of retrieving the current GGP price in AVAX using cURL:

curl -X GET \\
  'https://api.gogopool.com/prices' \
  -H 'accept: application/json'

This will return a JSON response with the current GGP price in AVAX.

Here's an example of retrieving the current token prices using Python:

import requests

response = requests.get('https://api.gogopool.com/prices')

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print('Error:', response.status_code)

This will print the current token prices in JSON format.

API Endpoints

Here are some examples of API endpoints:

  • GET /prices/tj: Get the current token prices on Trader Joe.

  • GET /ggAvax: Get the various amounts in the ggAVAX Liquid Staking pool.

  • GET /validators: Get all currently active validators from Glacier API.

  • GET /rewards/byStake: Calculate the rewards given ggpStaked and avaxStaked amounts.

  • GET /metrics: Get the current metrics, such as ggAVAX APY and total assets.

PreviousContract Addresses

Last updated 1 year ago

For a comprehensive list of API endpoints and parameters, please refer to the .

💻
GoGoPool OpenAPI page