ethereumjs-monorepo

@ethereumjs/tx


@ethereumjs/tx / createTxFromJSONRPCProvider

Function: createTxFromJSONRPCProvider()

createTxFromJSONRPCProvider(provider, txHash, txOptions?): Promise<LegacyTx | AccessList2930Tx | FeeMarket1559Tx | Blob4844Tx | EOACode7702Tx>

Defined in: transactionFactory.ts:129

Method to retrieve a transaction from the provider

Parameters

provider

a url string for a JSON-RPC provider or an Ethers JSONRPCProvider object

string EthersProvider

txHash

string

Transaction hash

txOptions?

TxOptions

The transaction options

Returns

Promise<LegacyTx | AccessList2930Tx | FeeMarket1559Tx | Blob4844Tx | EOACode7702Tx>

the transaction specified by txHash