Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

getWithdrawalFee

Read the withdrawal fee for a denom + remote chain pair.

Signature

function getWithdrawalFee(
  client: Client,
  parameters: {
    denom: Denom
    remote: Remote
    height?: number
  },
): Promise<string>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const fee = await client.gateway.getWithdrawalFee({
  denom: "bridge/usdc",
  remote: { warp: { domain: 1, contract: "0x..." } },
})

Parameters

denomDenom. Token denom.

remoteRemote. { warp: { domain, contract: Addr32 } } or "bitcoin".

heightnumber, optional. Block height. Default 0 (latest).

Returns

string — the withdrawal fee in base units.

Notes

  • Gateway actions are namespaced under client.gateway.*. Other domains are flat.

See also