https://github.com/decentraland-scenes/nft-scanner-basic
Checks whether the player owns a token from a particular smart contract before granting them permission to enter the club.
https://github.com/decentraland-scenes/nft-scanner-basic
decentraland
Last synced: 5 days ago
JSON representation
Checks whether the player owns a token from a particular smart contract before granting them permission to enter the club.
- Host: GitHub
- URL: https://github.com/decentraland-scenes/nft-scanner-basic
- Owner: decentraland-scenes
- Created: 2021-05-17T10:41:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-20T08:17:28.000Z (about 3 years ago)
- Last Synced: 2024-11-20T22:52:41.238Z (8 months ago)
- Topics: decentraland
- Language: TypeScript
- Homepage:
- Size: 8.66 MB
- Stars: 10
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Repository - NFT Scanner Basic - scanner-basic.gif" width="200"> | Checks whether the player owns a token from a particular smart contract before granting them permission to enter the club. | (Examples / Monetization and Blockchain)
README
# NFT Scanner (Basic)
_demo of nft-scanner-basic scene running in preview._
## Description
Checks whether the player owns a token from a particular smart contract before granting them permission to enter the club. In this example, we're checking whether the player owns a pair of RTFKT X Atari Sneakers, which is any token minted from this [contract](https://etherscan.io/address/0x6b47e7066c7db71aa04a1d5872496fe05c4c331f).> Note: There's another version of this scene [here](https://github.com/decentraland-scenes/nft-scanner) that performs more advanced token checks.
## Instructions
Walk up to the door and press the E key to see if you can access the club. The door will open and the audio quality increases if you own at least one pair of RTFKT X Atari Sneakers. Please feel free to modify the `contractAddress` within the `game.ts` file to test other tokens.Use your mouse to look around and W A S DSpace keys on your keyboard to move forward, left, backward, right and jump respectively. You can also press the P key to adjust the graphics settings.
## Try it out
**Install the CLI**
Download and install the Decentraland CLI by running the following command:```
$ npm i -g decentraland
```**Previewing the scene**
Download this example and navigate to its directory, then run:```
$ dcl start
```
Any dependencies are installed and then the CLI opens the scene in a new browser tab.Add the following to the end of the URL in the browser window:
```
&ENABLE_WEB3
```
For example, if the URL is `http://192.168.1.132:8000?position=0%2C0&SCENE_DEBUG_PANEL` then change it to `http://192.168.1.132:8000?position=0%2C0&SCENE_DEBUG_PANEL&ENABLE_WEB3`> Note: Make sure you have a browser wallet installed like Metamask or Fortmatic as you'll need to be logged onto those with the network set to the `Ethereum Mainnet` in order for the scene to perform checks on your wallet address.
## Acknowledgements
- _accessDenied.mp3_ modified from https://freesound.org/people/tcpp/sounds/151309/
- _jazz.mp3_ modified from https://www.hooksounds.com/royalty-free-music/elegant-jazz/376506/
- _jazzMuffled.mp3_ modified from https://www.hooksounds.com/royalty-free-music/elegant-jazz/376506/