SignedTransactionWithNonce
Documentation for eth_defi.hotwallet.SignedTransactionWithNonce Python class.
- class SignedTransactionWithNonce[source]
Helper class to pass around the used nonce when signing txs from the wallet.
Emulate SignedTransaction from web3.py package
Add some debugging helpers
Attributes summary
Alias for field number 1
Alias for field number 5
Alias for field number 2
Alias for field number 0
Get the bytes to be broadcasted to the P2P network.
Alias for field number 3
Undecoded transaction data as a dict.
Alias for field number 4
Methods summary
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
- rawTransaction: hexbytes.main.HexBytes
Alias for field number 0
- hash: hexbytes.main.HexBytes
Alias for field number 1
- source: Optional[dict]
Undecoded transaction data as a dict.
If broadcast fails, retain the source so we can debug the cause
- property raw_transaction: hexbytes.main.HexBytes
Get the bytes to be broadcasted to the P2P network.
- static __new__(_cls, rawTransaction, hash, r, s, v, nonce, source=None)
Create new instance of SignedTransactionWithNonce(rawTransaction, hash, r, s, v, nonce, source)