• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
jamiedubs

jamiedubs

nftImage

Public
Like
1
nftImage
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
9/30/2023
Viewing readonly version of main branch: v8
View latest version
README.md

returns image URL (and only image URL) for a given NFT contract + tokenId. Uses Alchemy's NFT API

to this use val, copy the Web API endpoint and use ?query params to specify the contract address and tokenId you want:

https://jamiedubs-nftimage.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666 - FIXME valtown is turning & into "&", you need to fix it. even like this broken

plain text by default. for JSON add &format=json, for an <img> tag use &format=html

for other NFT metadata: https://www.val.town/v/jamiedubs.nftMetadata

Migrated from folder: NFTs/nftImage

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.