Skip to content

0xIntuition/intuition-relics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

73d1e19 · Dec 26, 2024

History

4 Commits
Dec 26, 2024
Dec 26, 2024
Dec 24, 2024
Dec 24, 2024
Dec 24, 2024
Dec 24, 2024
Dec 24, 2024
Dec 24, 2024
Dec 24, 2024
Dec 26, 2024
Dec 24, 2024
Dec 24, 2024

Repository files navigation

Example ERC721 token API

This example shows how to create a GraphQL API for an ERC721 token using Ponder. It uses the Smol Brains NFT contract on Arbitrum (Link).

Sample queries

Get all tokens currently owned by an account

{
  account(id: "0x2B8E4729672613D69e5006a97dD56A455389FB2b") {
    id
    tokens {
      id
    }
  }
}

Get the current owner and all transfer events for a token

{
  token(id: "7777") {
    owner {
      id
    }
    transferEvents {
      from
      to
      timestamp
    }
  }
}

About

Intuition Relics NFT indexer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published