9. Build a Token Swap Dapp With 0x API | Road To Web3

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

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

  • @AlchemyPlatform
    @AlchemyPlatform  2 года назад +8

    Hope you're enjoying your road to web3! Please share any feedback you have on the video in this form, it helps us get better for future videos :)
    alchemyapi.typeform.com/roadtofeedback

  • @detroiter4eva
    @detroiter4eva Год назад +9

    This is one of the few Dapp tutorials online that actually worked!
    Thanks.

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

      Glad it was helpful Richard!

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

      hey can you please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)

  • @dallas-cole
    @dallas-cole Год назад +1

    You pulled up some old school tricks right there. Its been a long time, thanks for the data. Great stuff!

  • @adrianfalsha
    @adrianfalsha 2 года назад +2

    thank you for sharing useful knowledge, I like watching it.. thank you very much

  • @ChristianScrivo
    @ChristianScrivo 6 месяцев назад

    I spent about 2 hours trying to figure out the format of the 0x API key line and add that in when using Goerli testnet. For anyone else who is looking the format is const headers = {'0x-api-key': 'paste-key-here' } which doesn't look anything like what was there const headers = {'0x-api-key: [api-key]'}; Also no mention of headers in this tutorial.

  • @hazemtouil9155
    @hazemtouil9155 2 года назад

    Thank you..Does it work with a trusted wallet as well or does it work with Metamask only?

    • @0xProject
      @0xProject Год назад

      The 0x Swap API should work with any wallet. You'll just need to do some configuring with the connection() function

  • @dat0564
    @dat0564 2 года назад +1

    thank you very much

  • @VivekKumar-db2yy
    @VivekKumar-db2yy 11 месяцев назад

    Ma'am, is it possible to create a 0x protocol proxy flash contract which allows only selling or only buying of a certain token at a predefined price?

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

    does it work for other network like bsc, polygon etc ...... i only see ETH to DAI in the video

  • @RafaelOliveira-nz9vr
    @RafaelOliveira-nz9vr Год назад +1

    I have a huge problem, I can authorize the token in the metamask on the polygon network, but I am having an evm error, can someone help me?

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

    I would like to create a service like this, but do I earn from fee ? Otherwise, the maintenance costs for a free product would not be able to maintain these costs

  • @breenofyno
    @breenofyno 2 года назад

    I am glad to have joined, though I started late. I have to start from pt1. There are some crypto currency I bought and some airdrops I got but I can't sell it because the liquidity wasn't added, it keeps saying " insufficient liquidity" I need to learn this to enable me to understand the ethics and methodology in which they operate. Pls I am going to write you on twitter. Thank you for this.

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

      hey can you please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)

  • @elonapereira
    @elonapereira 2 года назад

    Thanks a lot, but a tuto from scratch with React would be so much interesting

  • @dinpran8202
    @dinpran8202 Год назад +3

    hey can anyone please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)

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

    awesome

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

      better call saul

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

      hey can you please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)

  • @onion4209
    @onion4209 2 года назад +2

    How to add own altcoin and own token

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

    Hi, for me send transaction is not working i got result upto quote but further transaction is not happening no errors are shown

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

    much love for this info tho

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

    I am trying the same code but getting this error on Approve method - Returned error: The method eth_sendTransaction does not exist/is not available. Any help is appreciated

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

    Can anyone share the resolution of the error: 'code: 105, reason: 'SenderNotAuthorizedError', values:'?
    It appears in the "Quote" console.log after clicking the swap button.

  • @christophercumpio2106
    @christophercumpio2106 2 года назад

    how can i add filter in the tokens? hope you will reply to me thanks

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

    Nice

  • @re-plays
    @re-plays 9 месяцев назад

    Can I set my own fees?

  • @christophercumpio2106
    @christophercumpio2106 2 года назад

    having issue doing the modal if i clicked its not opening

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

    not working, metamask doesn't connect, doesn't show list of coin

  • @tremz4823
    @tremz4823 2 года назад

    thats all ERC-20, how to do that with BEP-20?

  • @nicotinforexdanaspecialannauni
    @nicotinforexdanaspecialannauni 6 месяцев назад

    Can you please attached some html,js,css link in bio mam😅

  • @rubensmith4775
    @rubensmith4775 2 года назад

    I guatrisa know how to add lared binace to this project

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

    how do we charge a few for every transaction?

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

      hey can you please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap

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

    Interested

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

    what is that sign simular to ' at 27:47 at row 19?

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

      backitck and it is on the top left on keyboard

  • @DarkFire-qf5lv
    @DarkFire-qf5lv Год назад

    I am having trouble while dealing with bundle.js
    can anyone solve am problem ?

  • @awaisjavaid4972
    @awaisjavaid4972 2 года назад +1

    while fetching price am getting this error, Anybody have any idea
    {code: 100, reason: 'Validation Failed', validationErrors: Array(1)}

    • @awaisjavaid4972
      @awaisjavaid4972 2 года назад

      code: 1004
      field: "sellAmount"
      reason: "INSUFFICIENT_ASSET_LIQUIDITY"

    • @0xProject
      @0xProject 2 года назад +2

      @@awaisjavaid4972 This error typically occurs if liquidity for the trading pair is too low. I'd recommend you try testing with a more common pair such as WETH-DAI

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

      hey can you please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)

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

      @@0xProject Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)