Skip to content

Latest commit

 

History

History
80 lines (67 loc) · 3.45 KB

README.md

File metadata and controls

80 lines (67 loc) · 3.45 KB

Logo

Altura Gaming Unity SDK

Powering the Future of Gaming


Landing Page · Marketplace · Report Bug · Request Feature




About

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.

installation

  1. Open Unity and then open Window > Package Manager
  2. In Package Manager, click + and select Add Package from git URL
  3. Paste
https://github.com/alturanft/Unity-SDK.git
  1. Click Add.

After you added Altura SDK to Unity, additional packages needs to be installed to do this:

  1. Open open Altura NFT > Install Dependencies
  2. Than click on Install Now

Altura SDK installed successfully!

Import in in your script

using AlturaNFT;

Import Samples

To import some samples made by Altura Team do:

  1. Open Unity and then open Window > Package Manager
  2. Select Altura Web3
  3. Select Samples and import

Documentation

Read our Documentation to learn more about Altura SDK.

Methods

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