Wallet & dApp Integration
MetaMask Plugin
ethers.js Snippet:
const fee = await feeOracle.getRecommendedFee();
tx.maxPriorityFeePerGas = fee;
tx.maxFeePerGas = fee.add(baseFee);
await signer.sendTransaction(tx);const fee = await feeOracle.getRecommendedFee();
tx.maxPriorityFeePerGas = fee;
tx.maxFeePerGas = fee.add(baseFee);
await signer.sendTransaction(tx);