Developer Hub
🔮 For applications
SDK
Data Hooks
useLiveBetFee

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

ℹ️

For more information check Relayer fee section.

Usage

import { useLiveBetFee } from '@azuro-org/sdk'
 
const { loading, gasAmount, relayerFeeAmount, formattedRelayerFeeAmount } = useLiveBetFee()

Props

{
  enabled?: boolean // default value is true
} | undefined

Return Value

{
  gasAmount: bigint | undefined // transaction fee in native token
  relayerFeeAmount: bigint | undefined // live bet fee in bet token
  formattedRelayerFeeAmount: string | undefined
  refetch: (options?: RefetchOptions | undefined) => Promise
  loading: boolean
}