Hive blockchain API¶
The Hive Blockchain API is a Web3 game API that operates based on AppID and PlayerID provided by Hive. It offers features optimized for Web3 games, such as the ability for game users to issue and burn NFTs, as well as viewing transaction logs per user.
The Hive Blockchain API supports the XPLA blockchain. By integrating the XPLA blockchain with your game app, you can convert game items to NFTs (Mint) or conversely convert NFTs to game items (Burn).
- Mint
- Convert game items to blockchain NFTs and send them to the user's wallet
- Burn
- Convert NFTs held in the user's wallet back to game items and send them to the game
Preparation: Web3 basic setup¶
Before using the Hive blockchain, basic setup for the project is required.
- After signing up for the Hive console, register your game in App Center > Project Management > Register New Game.
- Create an AppID in App Center > AppID Management > Register New AppID.
- Create AppID: Web Login AppID
- Select Usage: Blockchain
- Choose AppID: Select "Automatically Generated AppID" or "Automatically Generated AppID + Additional Information"
- Enter project information in Hive Console > Blockchain > XPLA > Basic Settings.
- Call the Hive Blockchain API
- After selecting the project in Hive Console > Blockchain > XPLA > Basic Settings, check the
ID
andSecretKey
. - Enter the
ID
andSecretKey
in the Request Body of the Authentication Token Issuance API and call the API to obtain the authentication token. - When calling the Hive Blockchain API, use the response value of the authentication token issuance API (
data.accessToken
) in the Header Parameter.
- After selecting the project in Hive Console > Blockchain > XPLA > Basic Settings, check the