Replies: 1 comment
-
Awesome @n4n0b1t3 you are helping the community a lot! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If (like me) you sometimes get curious about what's in the parameters passed to a function, you may have noticed in Lesson 4 that tx_hash looks strange. Example:
b'/S@"\xf9\x90\xab\xacG\xfd\xb2\x08\x95\xae\xf5\xca\xbb\xb3\x85ys\xf4\x19\x83\x89\xe4\xe2\xcf\xf5^\xb7$'
This is because
Eth.send_raw_transaction
returns the transaction hash as a HexBytes object.If you look at Ganache under Transactions, you won't find this TX hash. An easy way to get the hash in hex format is to use
print("tx_hash: " + str(tx_hash.hex()))
in your code.Beta Was this translation helpful? Give feedback.
All reactions