Skip to content
LogoLogo

zone.getWithdrawalFee

Returns the withdrawal fee.

Usage

import { client } from './zones.config'
 
const fee = await client.zone.getWithdrawalFee()
 
console.log('Fee:', fee)
Fee: 1000000n

Custom Gas Limit

import { client } from './zones.config'
 
const fee = await client.zone.getWithdrawalFee({
  callbackGas: 100_000n,
})

Return Type

type ReturnType = bigint

The withdrawal fee as a bigint.

Parameters

callbackGas (optional)

  • Type: bigint
  • Default: 0n

Gas limit for the withdrawal callback on the parent chain.