PeerAssets

How it works

PeerAssets lists every NFT on the Peercoin blockchain, whoever minted it and whatever wallet they used. It's run by the Peercoin team so that every Peercoin NFT has a home on the web.

Read from the chain, block by block

We run our own Peercoin node and read every block from the very first, in order. A transaction whose first output pays PeerAssets' deck-spawn tag address and whose second carries a deck description is a deck: an NFT when it is a one-of-one (SINGLET) deck with no decimals, a token otherwise. Every later transaction that pays the deck's own tag address is a card: issued by the deck's creator, then moved from address to address.

Which cards count follows the published rules: for NFTs, section 5 of PeerAssets Media (the creator's first issuance of one card makes it; afterwards only its holder moves it; sent back to the creator, it's burnt); for tokens, pypeerassets, PeerAssets' reference implementation. Cards that don't count are still listed on each NFT's page, with the reason.

If the chain reorganises, the blocks that dropped out are undone here too.

Pictures

On the chain. With PeerAssets Media the picture is written into Peercoin transactions before the deck. We rebuild it from the blockchain and check it, byte for byte, against the hash the deck commits to. It lasts as long as Peercoin does.

Linked. Older decks may point to a picture elsewhere on the web. We fetch a copy once and say where it came from; the original can change or vanish.

Anyone can write anything to a blockchain. We show pictures only in formats a browser displays safely, and we may hide an NFT that is illegal or abusive. It stays on Peercoin either way: hiding it only takes it off this site.

API

Free and open to any website or wallet: JSON, no key, cross-origin allowed. Amounts are strings in the deck's smallest unit; times are ISO 8601.

  • GET /api/v1/statusHow far the index has read: the node's height and ours.
  • GET /api/v1/nfts?page=1&sort=newestNFTs, 48 a page. sort: newest, oldest, active, name.
  • GET /api/v1/nft/{deck txid}One NFT or token: its deck, holder, media, cards and holders.
  • GET /api/v1/address/{address}What an address owns and created, and its token balances.
  • GET /media/{deck txid}The media itself, as it was rebuilt or fetched. /thumb for a small WebP.

Check it yourself

Nothing here has to be taken on trust. Every NFT's page links its transactions on a block explorer, and the PeerAssets Media reader rebuilds any on-chain picture and finds its holder with nothing but your own Peercoin node.