Readme
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
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
jamiedubs-nftimage.web.val.run
Updated: December 8, 2023