8000 How to query ERC20 transfers emitted from a specific contract? · Issue #130 · Consensys/ethql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
How to query ERC20 transfers emitted from a specific contract? #130
Open
@zulhfreelancer

Description

@zulhfreelancer

Hi,

I'm new to this. I have this query:

{
  blocksRange(numberRange:[8649100,8649107]) {
    transactions(filter: {withInput: true}) {
      decoded {
        ... on ERC20Transfer {
          tokenContract {
            symbol
          }
        }
      }
    }
  }
}

I have two questions:

  1. Does it possible to query all ERC20 transfers emitted from a specific contract i.e. USDC contract? The above query is somehow returns all transfers between two blocks and I don't want that. I'm just interested in USDC transfers.

  2. Is there a way to put big range for the blocksRange? From my testing, looks like it can only support up to 10 blocks. Can I query all ERC20 transfers emitted from a specific contract from the beginning (since after the contract get deployed) until the latest block?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0