Error in simple decoding #102
-
Hi dev running this simple script with version 2.0 from uniswap_universal_router_decoder import RouterCodec
trx_input = "0xb8338f24a98c9699ac4060c630dc8678be8894c16d3f86d5be3bd52ec8f8b170" # the trx input to decode decode(trx_input) Return this stack trace. Can you help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @johnBlockchain9688 ! Sorry for the late answer, I'm mostly AFK at the moment ... About your issue: you're trying to decode a transaction hash, not a transaction input data. You have 2 options: |
Beta Was this translation helpful? Give feedback.
Hello @johnBlockchain9688 !
Sorry for the late answer, I'm mostly AFK at the moment ...
About your issue: you're trying to decode a transaction hash, not a transaction input data.
0xb8338f24a98c9699ac4060c630dc8678be8894c16d3f86d5be3bd52ec8f8b170
is the transaction hash.You have 2 options:
codec.decode.transaction(trx_hash)
, see the doc hereget_transaction()
), you can callcodec.decode.function_input(trx_input)
like you tried to do.