⚠️
Important! We’ve moved to V3! This documentation is for V2 only and will be updated in May.
Developer Hub
🔮 For applications
Toolkit
Utils
Endpoints

Usage

import { 
  getFeedGraphqlEndpoint, 
  getBetsGraphqlEndpoint, 
  getLegacyLiveGraphqlEndpoint, 
  getSocketEndpoint, 
  getApiEndpoint 
} from '@azuro-org/toolkit'
 
const chainId = 100
 
const feedGraphqlEndpoint = getFeedGraphqlEndpoint(chainId)
 
const betsGraphqlEndpoint = getBetsGraphqlEndpoint(chainId)
 
const legacyLiveGraphqlEndpoint = getLegacyLiveGraphqlEndpoint(chainId)
 
const socketEndpoint = getSocketEndpoint(chainId)
 
const apiEndpoint = getApiEndpoint(chainId)

Props

type ChainId = 
  | 100     // Gnosis
  | 137     // Polygon
  | 80002   // Polygon Amoy
  | 88888   // Chiliz
  | 88882   // Chiliz Spicy
  | 8453    // Base
  | 84532   // Base Sepolia

Return Value

String