Decode Transaction Data from Etherscan To Read Functions & Arguments Called, Programmatically

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • Get my free EthersJS cheatsheet to master Web3!
    👉 blockman-codes...
    ------------------------------------------
    Courses:
    👉 Build a Uniswap V3 interface that can do swaps: bit.ly/3JkXYqL
    ------------------------------------------
    Do you know how to decode data hashes, like what you might see in Etherscan?
    So that you can decipher functions called from apps like Uniswap, or made from other wallets?
    These encoded values might look like they mean nothing, but they can be decoded and the contents read in plain English.
    In this video, I'll show you how.

Комментарии • 39

  • @blockmancodes
    @blockmancodes  Год назад

    Learn to use all of Uniswap's swap and liquidity functionality with code. bit.ly/3JkXYqL

  •  Год назад

    Hey. I just wanted to say thanks, I finally managed to put together a pretty complex application which I started from almost zero last month, thank you for your vids and effort! Happy new year

    • @blockmancodes
      @blockmancodes  Год назад

      Right on brother! I'm always stoked to hear success stories. Keep it up! And happy new year!

    • @abc_12333
      @abc_12333 Год назад

      @@blockmancodes Hi Blockman. Does this work for any input data on Etherscan or just Verified Contracts like Uniswap? My contract address and API Key are not getting read.

  • @TheOCDAdvantage
    @TheOCDAdvantage 2 месяца назад

    Hey great video. What all do I need to install in order to do all of this (i.e. JS packages)? Thanks

  • @mchuatak
    @mchuatak 9 месяцев назад

    Super helpful! Can you give me an idea how may I know if the contract is already “open for trading” or “enable trading”?

  • @user-mu4sc8tr2h
    @user-mu4sc8tr2h Год назад

    I never comment but this was really helpful. Couldnt find this info for the life of me

  • @swapnalidive5357
    @swapnalidive5357 5 месяцев назад

    Helpful boss. Thank you.

  • @garypaulson5202
    @garypaulson5202 Год назад

    I'm learning a lot from these videos, thank you. What do you think about using Flashbots to avoid being front-run by bots looking at transactions waiting in the mempool?

    • @blockmancodes
      @blockmancodes  Год назад

      I haven't. Can you elaborate how flashbots would prevent frontrunning?

  • @pawanrathore402
    @pawanrathore402 11 месяцев назад

    Do I need to do this if I have a premium subscription to Dune?

  • @juliena4052
    @juliena4052 Год назад

    hey bro, can we do the same with new Uniswap Universal Router ? I tried with no luck... thanks

  • @ShoterOTP
    @ShoterOTP Год назад

    Can u make a video for decoding all logs from tx, to read and decode function name, amount in, amount out etc, from, to etc.

    • @blockmancodes
      @blockmancodes  Год назад

      I'll add to my todo list

    • @blockmancodes
      @blockmancodes  Год назад

      In the meantime, there's examples of parsing logs in the ethersJS docs i think

    • @ShoterOTP
      @ShoterOTP Год назад

      @@blockmancodes I think I kinda figured it out, its just hex values and function names are hashed.

  • @bitcoinxofficial
    @bitcoinxofficial Год назад

    How fork pancakeswap liquidity pool?

  • @mocholabs4656
    @mocholabs4656 Год назад

    hey -- where is the gist? How about going the other way? Topic>>> how to create the "data" variable using a contract?

  • @user-vo6ly9dz7u
    @user-vo6ly9dz7u Год назад

    super helpful. thanks

  • @nowyphschahah
    @nowyphschahah Год назад +1

    Ive got undefined console.log(abiDecoder.decodeMethod(decodedData.params[1].value[0])) from this call, i tried on execute function, what may be reason?

    • @TN-jz5gb
      @TN-jz5gb Год назад

      i got the same error. did you figure out the solution?

    • @huomeng5748
      @huomeng5748 Год назад

      I got the same "undefined", what is the problem?

    • @cryptoseb3940
      @cryptoseb3940 Год назад

      @@huomeng5748 Same problem for me, did you try to decode multicall or execute?

  • @dailycodingJs
    @dailycodingJs Год назад

    awesome channel

  • @user-jz1eo6yq4w
    @user-jz1eo6yq4w Год назад

    So, unless we have the ABI for the MultiCall contract, there's no way to decode it?

    • @blockmancodes
      @blockmancodes  Год назад

      Yes. You need an ABI to decode. But it's easy to get almost any ABI on etherscan

  • @blockmancodes
    @blockmancodes  Год назад

    What questions do you have? What other tutorials would you like to see?

    • @bejojeffrin7033
      @bejojeffrin7033 Год назад

      Hi , Can you please make a video of uniswap multi call (swapping multiple tokens in a go) directly using the metamask extension with out using the infura rpc and secret keys

    • @oooooooo347
      @oooooooo347 Год назад +2

      Hello I would love to see how to decode a Uniswap Universal router transaction, I have been trying to modify your approach to V3 without luck. This was great to learn for V3 also so thankyou!

    • @TN-jz5gb
      @TN-jz5gb Год назад +2

      I'm having problems decoding the universal router, specifically the execute function. would love to see a video on this. thanks!

    • @user-st6fd8gd7z
      @user-st6fd8gd7z Год назад

      @@TN-jz5gb i also have this problem

  • @androidtechsayed201
    @androidtechsayed201 Год назад

    Wow wow❤

  • @CriptoLeaks
    @CriptoLeaks Год назад

    Excellent, thank you Bro