Quick Start
Welcome to the Zelus Labs API Quick Start Guide! By following the steps below, you can easily integrate the Zelus Labs API into your application.
Easy-Access References:
Sandbox API base URL:
https://sandbox.api.labs.zelus.io
1. Obtain an API Key
Your API requests will be authenticated using an API key. Any request that doesn’t include an API key will return an error.
To get an API key, contact us - we'll also set up a direct support channel via slack, discord, or email so that you can get the help that you need in live time!
2. Verify the API Key
Once you've obtained the API key, ensure its validity by checking the status of the client's account and seeing the available contracts to work with.
2.2. Get the contract to work with
The result should be like this:
We will use SMOOTH contract's id (contract_63b848e9-b316-48a3-adfd-065403ab88ae
) as a working one in later examples. While running those examples on your account, please use a SMOOTH contract's Id allocated for your account.
3. Create Wallets
Now, you need to register some user wallets in the system using the registerWallet
API method.
3.1 Create a Wallet with an Email Address, Wallet1
Calling postWalletCreate with an email address will create a new wallet, and return the wallet address and wallet ID. If a wallet with this email already exists, it will be returned to you. For the sake of example, we will call this "Wallet1".
Expected result should be like this:
3.2 Create a Wallet with a Phone Number, Wallet2
Use the same postWalletCreate API method but with a mobile number as the parameter. For the sake of example, we will call this wallet, "Wallet2".
Expected result should be like this:
3.3 Create another empty wallet, Wallet3
Use the same postWalletCreate API method for empty wallet. We will call this wallet "Wallet3" later.
Expected result should be like this:
4. Mint NFT Tokens
Once the wallets are registered, you can mint NFT tokens to Wallet1 and Wallet2 using the nftMint API method.
4.1. Mint an NFT for Wallet1
Expected result should be like this:
4.2. Mint an NFT for Wallet2
Expected result should be like this:
5. Check if a Specific NFT is in a user's wallet
Verify if the NFT tokens have been minted successfully for Wallet1 and Wallet2. To do this let's get balance for those wallets and their NFT tokens.
5.1. Check NFTs for Wallet1
Expected result should be like this:
5.2. Check NFTs for Wallet2
Expected result should be like this:
5.3. Check NFTs for Wallet3
Expected result should be like this:
6. Get all NFTs in a User's wallet
Ensure that Wallet1 has tokens and Wallet3 doesn't have any tokens. To do this let's get all nfts for those wallets.
6.1 For Wallet1
Expected result would be:
6.2 For Wallet3
Repeat the process using the Wallet3
credentials and confirm that the response indicates no minted tokens.
Conclusion
This enhanced quick start guide provides a comprehensive step-by-step approach to seamlessly integrate with the Alpha API. Ensure all API requests include the necessary authorization headers, and that you handle responses appropriately, checking for errors or necessary information.
Last updated