- validateGas(transaction: { accessList?: { address?: string; storageKeys?: string[] }[]; chain?: ValidChains; chainId?: string; common?: { baseChain?: ValidChains; customChain: { chainId: string; name?: string; networkId: string }; hardfork?: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle | frontier | altair | grayGlacier | bellatrix | capella }; data?: string; from?: string; gas?: string; gasLimit?: string; gasPrice?: string; hardfork?: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle | frontier | altair | grayGlacier | bellatrix | capella; input?: string; maxFeePerGas?: string; maxPriorityFeePerGas?: string; networkId?: string; nonce?: string; r?: string; s?: string; to?: null | string; type?: string; v?: string; value?: string; yParity?: string }): void
Parameters
transaction: { accessList?: { address?: string; storageKeys?: string[] }[]; chain?: ValidChains; chainId?: string; common?: { baseChain?: ValidChains; customChain: { chainId: string; name?: string; networkId: string }; hardfork?: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle | frontier | altair | grayGlacier | bellatrix | capella }; data?: string; from?: string; gas?: string; gasLimit?: string; gasPrice?: string; hardfork?: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle | frontier | altair | grayGlacier | bellatrix | capella; input?: string; maxFeePerGas?: string; maxPriorityFeePerGas?: string; networkId?: string; nonce?: string; r?: string; s?: string; to?: null | string; type?: string; v?: string; value?: string; yParity?: string }
optionalaccessList: { address?: string; storageKeys?: string[] }[]
optionalchainId: string
optionalcommon: { baseChain?: ValidChains; customChain: { chainId: string; name?: string; networkId: string }; hardfork?: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle | frontier | altair | grayGlacier | bellatrix | capella }
optionaldata: string
optionalfrom: string
optionalgas: string
optionalgasLimit: string
optionalgasPrice: string
optionalhardfork: arrowGlacier | berlin | byzantium | chainstart | constantinople | dao | homestead | istanbul | london | merge | muirGlacier | petersburg | shanghai | spuriousDragon | tangerineWhistle | frontier | altair | grayGlacier | bellatrix | capella
optionalinput: string
optionalmaxFeePerGas: string
optionalmaxPriorityFeePerGas: string
optionalnetworkId: string
optionalnonce: string
optionalr: string
optionals: string
optionalto: null | string
optionaltype: string
optionalv: string
optionalvalue: string
optionalyParity: string
Returns void
This method checks if all required gas properties are present for either legacy gas (type 0x0 and 0x1) OR fee market transactions (0x2)