Skip to main content

detectTransactionType

Callable

  • detectTransactionType(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 }, web3Context?: Web3Context<EthExecutionAPI, any>): undefined | string

  • 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[] }[]
      • optionalchain: ValidChains
      • 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
    • optionalweb3Context: Web3Context<EthExecutionAPI, any>

    Returns undefined | string