Overview
Paxeer Network is designed to be EVM equivalent, which means it reuses the same Ethereum code and behaves as much like Ethereum as possible. Transaction fees on Paxeer Network follow the standard Ethereum EIP-1559 fee mechanism with significantly lower costs due to Layer 2 optimization.Fee Structure
Transaction fees on Paxeer Network consist of a single component:Unlike some Layer 2 solutions, Paxeer Network does not have an L1 data fee component, making fee estimation simpler and more predictable.
Execution Gas Fee
A transaction’s execution gas fee on Paxeer Network is calculated the same way as on Ethereum. This fee is equal to the amount of gas used by the transaction multiplied by the gas price attached to the transaction.How It Works
Paxeer Network uses the EIP-1559 mechanism to set the base fee for transactions. The total price per unit gas that a transaction pays is the sum of:- Base Fee - Minimum price per unit of gas
- Priority Fee - Optional tip to incentivize faster inclusion
Because Paxeer Network is EVM equivalent, the gas used by a transaction on Paxeer is exactly the same as the gas used by the same transaction on Ethereum. If a transaction costs 100,000 gas on Ethereum, it will cost 100,000 gas on Paxeer Network. The only difference is that the gas price on Paxeer is much lower.
Base Fee
The base fee is the minimum price per unit of gas that a transaction must pay to be included in a block. Key Points:- Transactions must specify a maximum base fee higher than the block base fee
- The actual fee charged is the block base fee (even if you specify higher)
- Base fee adjusts automatically based on network demand
- Increases when blocks are full, decreases when blocks are empty
Reading Base Fee
Priority Fee
Just like on Ethereum, Paxeer Network transactions can specify a priority fee (also called a tip). This is a price per unit of gas paid on top of the base fee. Example:- Block base fee: 1 gwei
- Transaction priority fee: 1 gwei
- Total price per gas: 2 gwei
Getting Recommended Fees
Use theeth_maxPriorityFeePerGas RPC method to estimate a priority fee for quick inclusion:
Fee Calculation Examples
Example 1: Simple Transfer
Example 2: Contract Interaction
Estimating Transaction Costs
- ethers.js
- viem
- wagmi
Gas Price Monitoring
Monitor current gas prices on Paxeer Network:Best Practices
Set Appropriate Gas Limits
Set Appropriate Gas Limits
- Always estimate gas before sending transactions
- Add a 10-20% buffer to gas estimates for safety
- Don’t set gas limits too high (wastes money) or too low (transaction fails)
Monitor Base Fee
Monitor Base Fee
- Check current base fee before submitting time-sensitive transactions
- Set max fee per gas higher than current base fee to avoid stuck transactions
- Use
eth_feeHistoryto analyze fee trends
Use Priority Fees Wisely
Use Priority Fees Wisely
- Set higher priority fees for time-sensitive transactions
- Use 0 or low priority fees for non-urgent transactions
- Check recommended priority fee with
eth_maxPriorityFeePerGas
Handle Failed Transactions
Handle Failed Transactions
- Always check transaction status before assuming success
- Implement proper error handling
- Consider transaction timeouts
Fee Vault
The Sequencer Fee Vault collects and holds transaction fees paid to the sequencer during block production on Paxeer Network. Vault Address:0x4200000000000000000000000000000000000011
How It Works
- Fee Collection: During transaction processing, the sequencer collects fees from users
- Storage: Collected fees are deposited into the Sequencer Fee Vault contract
- Distribution: Fees are distributed to cover operational costs and network maintenance
Comparing Costs
Paxeer Network vs Ethereum
| Operation | Ethereum | Paxeer Network | Savings |
|---|---|---|---|
| ETH Transfer (21,000 gas) | ~$5-20 | ~$0.01-0.05 | 99%+ |
| Token Swap (150,000 gas) | ~$30-100 | ~$0.05-0.20 | 99%+ |
| NFT Mint (200,000 gas) | ~$40-150 | ~$0.10-0.30 | 99%+ |
Actual costs vary based on current gas prices. Paxeer Network typically offers 99%+ cost savings compared to Ethereum mainnet.
Advanced Topics
EIP-1559 Parameters
Paxeer Network uses EIP-1559 with these parameters:| Parameter | Value | Description |
|---|---|---|
| Block Gas Limit | 30,000,000 | Maximum gas per block |
| Block Time | ~2 seconds | Target block production time |
| Base Fee Max Change | 12.5% | Maximum base fee change per block |
| Elasticity Multiplier | 2 | Block gas target multiplier |
Gas Price Oracle
Query the Gas Price Oracle for current fee data:Troubleshooting
Transaction Stuck in Mempool
Transaction Stuck in Mempool
If your transaction is stuck, it’s likely because the max fee per gas is too low:Solution:
- Set a higher max fee per gas (e.g., 10 gwei)
- Or cancel the transaction by sending a new one with the same nonce and higher fee
Out of Gas
Out of Gas
Transaction ran out of gas during execution:Solution:
- Increase gas limit
- Check for infinite loops or excessive computation
- Optimize contract code
Insufficient Funds
Insufficient Funds
Account doesn’t have enough PAX to cover gas costs:Solution:
- Ensure account has sufficient PAX balance
- Remember: required balance = (gas limit × max fee per gas) + value