Query Ethereum with GraphQL with The Graph

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

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

  • @alexbarry3156
    @alexbarry3156 4 года назад +11

    This is the best tutorial out there for theGraph!

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

    Thanks for sharing. This is finally a simple and clear guide on how to query in general with GraphQL

  • @alehandr0s
    @alehandr0s 4 года назад +9

    Thank you for the tutorial!
    The example at 8:42 is not working for me. First I need to use double quotes and after doing this I am getting the error "Invalid value provided for argument `where`: Object({\"token0\": Object({\"symbol\": String(\"ETH\")})})"
    Did it worked for you?

    • @onedi520
      @onedi520 4 года назад +3

      This also doesn't work for me. Is there any solution for query with token symbol?

    • @just10joy
      @just10joy 3 года назад

      Haha, shit I'm having that same problem. Seems unable to filter tokens by symbol. I can't imagine that is true. It has to be a syntax error on our part, but I'll have to look into it.

    • @cryptovolts
      @cryptovolts 3 года назад

      @@just10joy please tell me any of you guys found a solution :(

    • @ruchikajashnani6474
      @ruchikajashnani6474 3 года назад

      {
      tokens(where: {
      symbol: "WETH"
      }){
      whitelistPairs{
      token0{
      symbol
      }
      token1{
      symbol
      }
      }
      }
      }
      this is for sushiswap btw

  • @Dpaq13
    @Dpaq13 3 года назад

    This video is the most helpful resource for querying Uniswap with GRT

  • @RamKumar-iz2sz
    @RamKumar-iz2sz Год назад

    Thanks for explaining in a simple way

  • @BachPhotography
    @BachPhotography 4 года назад +6

    Great video, very informative. The graph seems like a cool protocol

  • @razbeikov
    @razbeikov 3 года назад +1

    another great video.
    Thanks.
    11:01 - how to use The Graph from NodeJS app

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

    I want to get all the entries from an entity in the mapping file. Like let's suppose I have created an entity called Transaction. When a particular event is triggered, I want to reset values for some particular transactions. How can I get all the entries, better if I can provide a filter in event handler?

  • @nahuelderrico7276
    @nahuelderrico7276 3 года назад +2

    Can u do a tutorial how to become a subgrapher?! Thank you!

  • @coolidgesghost5985
    @coolidgesghost5985 3 года назад +1

    Can you explain why data I pull from the query is so different than the DEX's own analytics?

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

    seem interesting, but how to use with ganache? local ethereum maybe?

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

    Great video, thanks! I have a question. I have to create a schema for querying all Transfer events for a specific address. How can I pass the address in the schema? Thank you in advance.

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

    Awesome video, thanks!

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

    Thanks so much for this.

  • @MelinasMagicWorld
    @MelinasMagicWorld 3 года назад +1

    Nice video thank you. I picked another subgraph to query from axios and noticed in the copied URL they require an API key. Why you didnt require one?

    • @riccardoesclapon549
      @riccardoesclapon549 2 года назад +3

      That's because of what he mentions at 2:40. There are two distinct categories for subgraphs; some are on the hosted/centralized network and do not require an API key and are free to query from, while others are on the decentralized network and require you to setup an API key and pay for your queries (typically under/around 0.00003 GRT per query as of writing this). Usually a subgraph on the decentralized network is also on hosted-service, so it's really a matter of whether you value decentralization and relying on a hosted service vs. a larger distributed network of indexers

  • @digithat6496
    @digithat6496 3 года назад

    Can we query based on contract/ wallet address? I don't see that there :/

  • @pauleth
    @pauleth 4 года назад +1

    this is cool, sir I want more

  • @SuperDangerousMouse
    @SuperDangerousMouse 3 года назад

    hi is there an easy way to query what my position is in a uniswap v2 pool given my wallet public key address?
    I tried using GraphQL, but I'm having a hard time.
    Basically, I was to pass my wallet public key address, and have it return my position:
    ETH: 1.5
    USDC: 4500
    (when ETH price is 3000).
    Many Thanks.

  • @minhdao1622
    @minhdao1622 3 года назад

    many same pair address displayed? how to fix this please

  • @shreygupta7847
    @shreygupta7847 3 года назад

    @EatTheBlocks
    Receiving the following error:
    'No value provided for required argument: `id`'. Kindly suggest a possible solution..

  • @rezkhaleghi8594
    @rezkhaleghi8594 3 года назад

    gr8 content, Thank you.

  • @DP-vz5fy
    @DP-vz5fy 4 года назад +1

    Can you please do a video on creating subgraphs? Thanks!

  • @machen6007
    @machen6007 4 года назад +1

    cool video,

  • @theredflagisgreen
    @theredflagisgreen 3 года назад

    I'm getting a 403 error with the applied example, any ideas what's going wrong?

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

    When I run code "npm script.j" console show following error "TypeError: Cannot read property 'flashLoans' of undefined"
    Anyone knows how to fix it ?
    Thank you

  • @Viralplace
    @Viralplace 3 года назад

    Cool bro! I’m italian and I understand all

    • @EatTheBlocks
      @EatTheBlocks  3 года назад +2

      haha I am glad Italian friends can follow as well :)

    • @Viralplace
      @Viralplace 3 года назад

      @@EatTheBlocks done :) You explain from the begging the arguments and it is soo good. Don’t change anything. You are the traversy media for the Blockchain

  • @raveholtxp
    @raveholtxp 4 года назад +1

    Why didn't this video get recommended to me earlier :(

  • @newyearshiphop
    @newyearshiphop 3 года назад

    is this free ?

  • @toiageddes1710
    @toiageddes1710 3 года назад

    Thank you for this tutorial!!

  • @newbreedofgeek
    @newbreedofgeek 3 года назад

    Great tutorial- keep it up

  • @newyearshiphop
    @newyearshiphop 3 года назад

    cest gratuit ?

  • @kiran-p8
    @kiran-p8 4 года назад

    Can you tell me how can i get the OHLC for the Uniswap and other defi platforms

    • @EatTheBlocks
      @EatTheBlocks  4 года назад

      You will need to index data and create an API for this yourself or check the major Blockchain API (Coingecko, etc..) to see if they offer this, but I am not sure about that.

  • @khshbtc
    @khshbtc 4 года назад

    Hello Julian, I am thinking about taking your 1 on 1 couching course. My question is how long does the course lasts.?

    • @EatTheBlocks
      @EatTheBlocks  4 года назад

      Hi Khash,
      It's not a course, it's a 1h coaching I can give you advice for various things like technical questions about Blockchain or advice for your career as a Blockchain developer.
      For my courses, this is a different thing:
      eattheblocks.com/6-figure-blockchain-developer
      eattheblocks-pro.teachable.com/p/profitable-flashloans
      Cheers

  • @bossgd100
    @bossgd100 4 года назад

    What are the difference between The Graph, Covalent and Infura ? (except the GraphQL part wich is obvious)

    • @EatTheBlocks
      @EatTheBlocks  4 года назад +1

      Infura is centralized and uses a REST API, Thegraph is decentralized and use a GraphQL API

    • @bossgd100
      @bossgd100 4 года назад

      @@EatTheBlocks thank you for your answer !

  • @ericdwkim
    @ericdwkim 3 года назад

    This helped so much, thank you!!!

  • @kiran-p8
    @kiran-p8 4 года назад

    Hi nice Video. Can you Tell me how to create a trading view out of this .

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

    This doesnt work for me

  • @slavevitanov4524
    @slavevitanov4524 4 года назад

    can you tell me about the playground web site

  • @zes7215
    @zes7215 3 года назад

    no such thing as first or job or x figure or how or get or etc, cepuxyuax, do, can do any nmw and any s perfx

  • @aameralisayyed8151
    @aameralisayyed8151 3 года назад

    Dear Julien, Could you please help us with your knowledge on how can we extract/export the blockchainn data using Ethreum etl github library

  • @MehmetKoseDev
    @MehmetKoseDev 3 года назад

    centralized solution. good luck. they totally misunderstood whole thing

  • @daryvukova1572
    @daryvukova1572 4 года назад

    Digital Yuan is the new GRAPH Protocol? #GRT - ruclips.net/video/hBwVSZvuHU8/видео.html

  • @wdkr5198
    @wdkr5198 4 года назад +3

    BEST CASE PREDICTION: GRT will hit $1000.00 by Jan 1st, 2021.