Developer Hub
🔮 For applications
SDK
Data Hooks
useBetFee

This hook is used to fetch the relayer fee amount for a bet.

ℹ️

For more information check Relayer fee section.

Usage

import { useBetFee } from '@azuro-org/sdk'
 
const { data, isFetching, error } = useBetFee()
const { formattedRelayerFeeAmount } = data

Props

{
  chainId?: ChainId
  query?: QueryParameter<{
    gasAmount: bigint
    relayerFeeAmount: bigint
    formattedRelayerFeeAmount: string
  }>
} | undefined
type ChainId = 
  | 100     // Gnosis
  | 137     // Polygon
  | 80002   // Polygon Amoy
  | 88888   // Chiliz
  | 88882   // Chiliz Spicy
  | 8453    // Base
  | 84532   // Base Sepolia

Return Value

UseQueryResult<{
  gasAmount: bigint
  relayerFeeAmount: bigint
  formattedRelayerFeeAmount: string
}>
import { type UseQueryResult } from '@tanstack/react-query'