diff --git a/packages/web3-eth/src/web3_eth.ts b/packages/web3-eth/src/web3_eth.ts index c397bbb515b..36406bc27d4 100644 --- a/packages/web3-eth/src/web3_eth.ts +++ b/packages/web3-eth/src/web3_eth.ts @@ -273,29 +273,38 @@ export class Web3Eth extends Web3Context { * gasPrice: 20000000000n, - * maxFeePerGas: 20000000000n, + * maxFeePerGas: 60000000000n, * maxPriorityFeePerGas: 20000000000n, * baseFeePerGas: 20000000000n * } * - * web3.eth.calculateFeeData(ethUnitMap.Gwei, 2n).then(console.log); + * web3.eth.calculateFeeData(1n).then(console.log); * > { * gasPrice: 20000000000n, * maxFeePerGas: 40000000000n, * maxPriorityFeePerGas: 20000000000n, * baseFeePerGas: 20000000000n * } + * + * web3.eth.calculateFeeData(3n).then(console.log); + * > { + * gasPrice: 20000000000n, + * maxFeePerGas: 80000000000n, + * maxPriorityFeePerGas: 20000000000n, + * baseFeePerGas: 20000000000n + * } * ``` */ public async calculateFeeData(