Estimate Fee Options
Gas is complicated. Use this function to make it less complicated.
txOptions = await peanut.setFeeOptions({
chainId: '137',
provider: undefined //optional arg for ethers provider
})interface ISetFeeOptionsResponse {
gasPrice: string
gasLimit: string
maxPriorityFeePerGas: string
maxFeePerGas: string
} Last updated