Giter VIP home page Giter VIP logo

nft-sleuth's Introduction

So you found an NFT contract that's not verified on Etherscan...

and you want to know how the project manages it's off-chain metadata.

Well, you've come to the right place. Here's a script to print out your NFT's tokenURI.

  1. install dependencies
npm install
  1. if you don't already have a node provider account, set one up at https://www.alchemy.com/ for free

  2. set your configs by renaming .env-placeholder to .env and then:

    1. set API_URL to your node provider URL, i.e. https://eth-mainnet.alchemyapi.io/v2/12345, make sure network is set to mainnet for public NFT projects.
    2. set API_KEY to your node provider api key, i.e. 12345 -- it's most likely a subset of the API_URL
    3. set CONTRACT_ADDRESS to the address you want to check out, i.e. 0x0cE87f77B1d83dF522AE96AF9Cf810B16AB0942B
  3. run the interact.js script with: npx hardhat run interact.js

you'll see some output that looks like this:

contract name:  GFT Authentic Digital Collectible
token uri https://gft-authentic-api.herokuapp.com/api/creature/15

that token uri is the location where the contract stores its metadata!

glhf

https://www.youtube.com/watch?v=uwdXnbIxVJA

nft-sleuth's People

Contributors

cryptogenysis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.