File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -582,11 +582,17 @@ The following methods are available on the ``web3.eth`` namespace.
582582
583583 Returns the raw form of transaction specified by ``transaction_hash ``.
584584
585+ If no transaction is found, ``HexBytes('0x') `` is returned.
586+
585587 .. code-block :: python
586588
587- >> > web3.eth.get_transaction (' 0x86fbfe56cce542ff0a2a2716c31675a0c9c43701725c4a751d20ee2ddf8a733d' )
589+ >> > web3.eth.get_raw_transaction (' 0x86fbfe56cce542ff0a2a2716c31675a0c9c43701725c4a751d20ee2ddf8a733d' )
588590 HexBytes(' 0xf86907843b9aca0082520894dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd018086eecac466e115a0f9db4e25484b28f486b247a372708d4cd0643fc63e604133afac577f4cc1eab8a044841d84e799d4dc18ba146816a937e8a0be8bc296bd8bb8aea126de5e627e06' )
589591
592+ # transaction with this hash doesn't exist
593+ >> > web3.eth.get_raw_transaction(' 0x544993abb4fc859455bde231b9f45397cba614845163126f9df170b7bdbaa413' )
594+ HexBytes(' 0x' )
595+
590596
591597 .. py :method :: Eth.getTransactionFromBlock(block_identifier, transaction_index)
592598
@@ -760,7 +766,7 @@ The following methods are available on the ``web3.eth`` namespace.
760766 that goes to the miner
761767 * ``gasPrice ``: ``integer `` - Integer of the gasPrice used for each paid gas
762768 **LEGACY ** - unless you have good reason to, use ``maxFeePerGas ``
763- and ``maxPriorityFeePerGas `` instead.
769+ and ``maxPriorityFeePerGas `` instead.
764770 * ``value ``: ``integer `` - (optional) Integer of the value send with this
765771 transaction
766772 * ``data ``: ``bytes or text `` - The compiled code of a contract OR the hash
You can’t perform that action at this time.
0 commit comments