GOAT Network
App Development

Transaction Fees

GOAT Network uses an EIP-1559-style fee model, but the network charges fees in BTC rather than ETH.

GOAT Network vs Ethereum

TopicEthereumGOAT Network
Gas tokenETHBTC
Blob feeCan apply with EIP-4844Not part of the current GOAT Network fee model
Fee burnPart of the Ethereum fee modelGOAT Network routes fees through its own economic design
Settlement anchorEthereumBitcoin-backed publication and finality

Fee Formula

Transaction fee formula
Total fee = Gas used × min(Max fee per gas, Base fee + Priority fee)

Key Inputs

InputDetail
Base feeDynamic network fee from the latest block
Priority feeUser-selected tip for faster inclusion
Max fee per gasUpper bound accepted by the sender
Gas usedActual execution cost of the transaction

Fee Distribution

RecipientShare
Sequencer or miner set98% of the fee pool
GOAT Foundation2% of the fee pool

Common Pitfalls

  1. Using ETH labels in your UI instead of BTC labels.
  2. Reusing stale fee estimates during periods of network change.
  3. Forgetting to leave headroom between maxFeePerGas and maxPriorityFeePerGas.
  4. Treating GOAT Network fast confirmation as the same thing as final settlement.

Dynamic Estimation Example

ethers.js v6 fee estimate
const feeData = await provider.getFeeData();
const gas = await provider.estimateGas(txRequest);
const total = gas * (feeData.maxFeePerGas ?? 0n);

On this page