Skip to content

createImpersonatedTx

createImpersonatedTx(txData, opts?): ImpersonatedTx

Creates an impersonated tx that wraps FeeMarketEIP1559Transaction. Wraps following methods

  • ‘isImpersonated’
  • ‘hash’
  • ‘isSigned’
  • ‘getSenderAddress’

Parameters

txData: FeeMarketEIP1559TxData & object

opts?: TxOptions

Returns

ImpersonatedTx

Throws

Error if the constructor for FeeMarketEIP1559Transaction throws

Defined in

packages/tx/src/createImpersonatedTx.js:21