Opensea Metaverse NFT Integration

Using non-fungible tokens (NFTs) in the Hyperspace Metaverse Platform allows authors to feature and transact NFTs including collectibles, 3D items, domain names, digital art, and many other items backed by a blockchain.

OpenSea is a leading peer-to-peer marketplace for (NFTs). OpenSea is an open web3 platform, where individuals can come to explore NFTs and connect with each other to purchase and sell NFTs.

Add NFT Art to your Metaverse Space

Add NFT 3D Models to your Metaverse Space

Add NFT Art to your Metaverse Space

Visit OpenSea.io

Find an item you’d like to place in your space

Collect two pieces of information

  1. Right click and copy the image address
  1. Eg. https://i.seadn.io/gae/l9DQD2zJZ9oWkK9iypkkC26i_WYvGVYsoA0lXvNSTn3xLJ9cNa7ydzvfgJEVOKoKUZjPID0nYJH9Y6HSzTbz1qC3s-GU8NoNSXpc?w=500&auto=format 

  1. Copy the URL
  1. Click the Share icon
  2. Click Copy Embed Item

Eg.

    <nft-card

    contractAddress="0x1aaa3e26cf05f751f8efe0e3c81365d75cdba9e4"

    tokenId="208">

    </nft-card>

    <script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

Visit your 3D Space

  1. Paste the image address in the chat input box at the bottom
  2. Click the red pin next to the URL in the chat history in the bottom right corner

  1. Choose Image for the type of item
  2. Click the OK button

The mediaboard will be placed in the space ready to move or edit

Click the settings/cog icon on the mediaboard

In the onclick field add the following replacing the highlighted embed code with your own, ensure that you escape the quotes in the highlighted area from " to \"

{"action":"displayExternalHTML","html":"<nft-card     contractAddress=\"0x1aaa3e26cf05f751f8efe0e3c81365d75cdba9e4\" tokenId=\"208\">     </nft-card><script src=\"https://unpkg.com/embeddable-nfts/dist/nft-card.min.js\"></script>","id":7510}

Scroll down and click the Save item button

Anyone entering the 3d space and clicking the image mediaboard will trigger a popup displaying the OpenSea item and any actions available for it.

Add NFT 3D Models to your Metaverse Space

3D Model formats supported include .glb .glft .obj .fbx and .dae (Collada)

Note:

  1. If you can’t interact with the 3d item on OpenSea, like spinning it around with your mouse then it’s likely only an image of a 3d item and can’t really be used as an interactive 3d item in the metaverse.
  2. As with any 3rd party authored 3d item be sure to check the complexity of the item for performance across all devices.

Right click on the 3d item and choose Inspect from the menu

This will launch the Chrome developer tools and highlight the html div you clicked

Scroll up a bit to see the model-viewer tag that includes the URL of the 3D item

Right click on the src URL and choose Copy link address

Eg. https://openseauserdata.com/files/89e8937432e5bb9e30f24570aa06d7d6.glb

  1. Paste the copied link address into the chat bar at the bottom of the screen and press enter
  2. Click the red pin icon in the chat history next to the URL

The 3D item will be added to the space

Copy Embed Item from OpenSea

Eg.

    <nft-card

    contractAddress="0x2953399124f0cbb46d2cbacd8a89cf0599974963"

    tokenId="109716514698682258262969981018818254075277780777642918413950292689957813223425">

    </nft-card>

    <script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

In the onclick field add the following replacing the highlighted embed code with your own, ensure that you escape the quotes in the highlighted area from " to \"

{"action":"displayExternalHTML","html":"     <nft-card     contractAddress=\"0x2953399124f0cbb46d2cbacd8a89cf0599974963\"     tokenId=\"109716514698682258262969981018818254075277780777642918413950292689957813223425\">     </nft-card>     <script src=\"https://unpkg.com/embeddable-nfts/dist/nft-card.min.js\"></script>","id":4418}

  1. Click the cog/settings icon on the 3d item
  2. Paste the action into the onclick field
  3. Click the Save item button

Anyone entering the space can click on the 3d item to access the OpenSea popup and see information about the item or transact with their wallet

How useful was this article?

Click on a star to rate it!

We are sorry that this article was not useful for you!

Let us improve this article!

Tell us how we can improve this article?