Using Altua NFT Unity SDK, you are able to interact with Altura services such as authenticating users using Altura Guard, get Users information and items, get items and collection information and transfer or mint new items.
- Open Unity and then open
Window > Package Manager
- In Package Manager, click + and select Add Package from git URL
- Paste
https://github.com/alturanft/Unity-SDK.git
- Click Add.
After you added Altura SDK to Unity, additional packages needs to be installed to do this:
- Open open
Altura NFT > Install Dependencies
- Than click on Install Now
Altura SDK installed successfully!
using AlturaNFT;
To import some samples made by Altura Team do:
- Open Unity and then open
Window > Package Manager
- Select Altura Web3
- Select Samples and import
Read our Documentation to learn more about Altura SDK.
Method | Description |
---|---|
AuthenticateUser(address, code) | Use this method to authenticate user with Altura Guard. On success, true is returned. |
GetUser(address) | Use this method to get user information such as Name, Bio, social etc. etc. On success, the data is returned as JSON. |
GetUsers(perPage, page, sortBy, sortDir) | Use this method to get information of multiple users at same time such as Name, Bio, social etc. etc. On success, the data is returned as JSON. |
GetItem(collecttionAddress, tokenId) | Use this method to get item metadata. On success, the data is returned as JSON. |
GetItems(perPage, page, sortBy, sortDir, slim) | Use this method to get metadata of multiple Items at same time. On success, the data is returned as JSON. |
GetCollection(address) | Use this method to get Collection information. On success, the data is returned as JSON. |
GetCollections(perPage, page, sortBy, sortDir) | Use this method to get information of multiple Collections at same time. On success, the data is returned as JSON. |
TransferItem(collectionAddress, tokenId, amount, to) | Description |
TransferItems() | Description |
MintAdditionalSupply() | Description |
GetUserItems() | Use this method to get items of specific user.On success, the data is returned as JSON. |
GetHolders() | Description |
GetHistory() | Description |
UpdateProperty() | Description |
UpdatePrimaryImage() | Description |
Update() | Description |