🎮Integrating Altura
Altura provides a variety of ways to integrate NFTs into your game, including our REST API, JavaScript SDK, and Unity SDK. Depending on the nature of your game and its platform, one option may be more suitable for you than the others.
Altura offers three main categories of features:
Get Only Features
These features allow you to fetch data from Altura, such as fetching users, items, & collections, fetching a user's items & balances, getting an item's holders & blockchain events, and more. These features can be accessed via the REST API, JavaScript SDK, and Unity SDK.
Smart NFT Features
These features allow you to update an NFT's property values, change an NFT's primary image, and update an NFT's name and description. These features can only be accessed via the REST API and JavaScript SDK and require an API key.
Developer Wallet Features
These features allow you to transfer ERC721, ERC1155, & ERC20 tokens, mint additional supply of NFTs, and more. These features can only be accessed via the REST API and JavaScript SDK and require an API key.
Integrating Altura
The REST API can be used on both the front end and back end of your game and only requires an API key to access the smart NFT and developer wallet features.
The JavaScript SDK can be used in both the front and back end of your game, depending on your needs. Read-only mode allows access to the get-only features and can be used in a web environment such as React. In full mode, it allows access to all features, including the smart NFT and developer wallet features, and is best used in a Node.js environment on the backend. To switch between full and read-only modes, provide or omit an API key when initializing the SDK. This flexibility allows developers to choose the best solution for their game's needs.
The Unity SDK is best used on the client side, as it only contains the read-only features.
Examples of how different types of games and development environments can use Altura:
Developers can use Altura in various ways in their game, such as NFTs as in-game items, weapons, or armor that players can use to improve their character's stats or abilities. Or, they could use NFTs as collectible items that players can find and add to their in-game inventory. Additionally, developers can use the get-only features on the client side and reserve their server for the additional features if necessary.
A mobile game developer could use the Unity SDK on the client side to fetch data and display NFTs in the game while using the REST API on the backend to handle developer wallet transactions and smart NFT updates.
An online multiplayer game developer could use the JavaScript SDK in full mode on the backend to handle all aspects of NFT integration, including fetching data, developer wallet transactions, and smart NFT updates.
A social media platform developer could use the REST API on the backend to fetch data and handle smart NFT updates while using the JavaScript SDK in read-only mode on the front end to display NFTs and verify user ownership.
You never need to specify the blockchain network your NFTs are on when using Altura. Altura automatically detects this.
Last updated