Unity
Here you'll find detailed info about the features of the Unity SDK
Fetch NFTs
Fetch requested NFTs
How it looks like:
async public static Task<List<Dictionary<string, object>>> getRequestedNFTsAPI(
List<string> metaverseFilter,
List<string> typeFilter,
List<string> subtypeFilter,
int cursor = 0,
int amount = 100,
int chainId = 5
)metaverseFilter: List<string>- Using for metaverse filter. Currently possible values are:decentranland,sandbox,somnium_space,cryptovoxels, fabwelt. Use empty array to get items from all metaverses.typeFilter: List<string>- Using for asset type filter. Currently possible values are:AVATAR,WEARABLE,MISC. Use empty array to get items of all types.subtypeFilter: List<string>- Using for asset subtype filter. Use empty array to get items of all types.cursor: int- Start index ofgetStakesprotocol`s function (as it uses pagination).amount: int- Number of viewed indexes ofgetStakesprotocol`s function (as it uses pagination).chainId: int- Chain Id to be able to use it cross-chain.
Return value:
If succeded:
If failed:
Fetch Owned Derivatives
How it looks like:
metaverseFilter: List<string>- Using for metaverse filter. Currently possible values are:decentranland,sandbox,somnium_space,cryptovoxels, fabwelt. Use empty array to get items from all metaverses.typeFilter: List<string>- Using for asset type filter. Currently possible values are:AVATAR,WEARABLE,MISC. Use empty array to get items of all types.subtypeFilter: List<string>- Using for asset subtype filter. Use empty array to get items of all types.userProof: Dictionary<string, string>- User Proof with walletAddress and signature.chainId: int- Chain Id to be able to use it cross-chain.
Return value:
If succeded:
If failed:
Buy NFTs
Approve ERC20 tokens to protocol
How it looks like:
NFT: Dictionary<string, object>- Object with NFT data (element of array taken from fetch functions).chainId: int- Chain Id to be able to use it cross-chain.
Return value:
If succeded:
If failed:
Buy requested NFTs
How it looks like:
NFT: Dictionary<string, object>- Object with NFT data (element of array taken from fetch functions).chainId: int- Chain Id to be able to use it cross-chain.
Return value:
If succeded:
If failed:
User Proof
Get User Proof
How it looks like:
Return value:
If succeded:
If failed:
Last updated