Skip to content

Allows you to easily access ERC1155 (Rarible) token information from within Unity. One use case would be check a wallet for a certain NFT and if it has one then perform an action.

Notifications You must be signed in to change notification settings

JB1984/ERC1155UnityConnector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ERC1155UnityConnector

Allows you to easily access ERC1155 (Rarible) token information from within Unity. One use case would be to check a wallet for a certain NFT, if it has at least one of the token you are looking for then perform an action.

Simply download and put these files in your Unity projects Asset folder.

I have created a starter file as an example. Attach the ERC1155CheckForCoinAmounts script to an object with a collider and trigger, fill in the relevant public fields and then when an object with the tag "Player" enters the trigger it will Debug.log the amount of the specified token that the persons wallet has. You can easily expand on this code to have it trigger some sort of action in your game.

Coming soon:

  1. Ability to gather the metadata (image/description/etc..) of the ERC1155 coin.
  2. Use of transaction signing to verify the wallet address entered by user. Perhaps if possible have user link their wallet with QR code, just have some way to verify the wallet the user entered is their own.

About

Allows you to easily access ERC1155 (Rarible) token information from within Unity. One use case would be check a wallet for a certain NFT and if it has one then perform an action.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages