The Ain object for sign and send transaction to AIN blockchain.
The Ainize object for send request to AIN blockchain.
The base url of api server of AINFT Factory.
The subpath of api server request url.
Creates a new item.
The parameters to create a new item.
Returns created item information.
Deregisters an item from the store.
The ID of the app.
The ID of the store.
The name of the item.
Deregisters an item from all stores.
The ID of the app.
The type of the item.
The subtype of the item.
The value of the item.
Returns a list of all items created in the app. If type/subtype is given, returns only items of the given type/subtype.
The ID of the app.
The type of the items to fetch.
The subtype of the items to fetch.
List of items.
Retrieves the usage history of all items of an app.
The parameters for the request.
Retrieves the purchase history of a specific item of an app.
The parameters for the request.
A Promise that resolves to an object containing the purchase history of the item.
Retrieves the purchase history of all items of an app.
The parameters for the request.
Retrieves the usage history of a specific item of an app.
The parameters for the request.
Returns information about a specific store item for a given app and store.
The ID of the app.
The ID of the store.
The name of the item to fetch.
Information about the store item.
Returns a list of store items for a given app and store.
The ID of the app.
The ID of the store.
List of store items.
Returns a list of user items for a given app and user.
The ID of the app.
The ID of the user.
List of user items.
Retrieves the usage history of a specific user of an app.
The parameters for the request.
Returns information about a specific user item for a given app and user.
The ID of the app.
The ID of the user.
The name of the item to fetch.
Information about the user item.
Retrieves the purchase history of a specific user of an app.
The parameters for the request.
Gives item to user.
The ID of app.
The ID of user who will receive the item.
The name of the item to give.
The quantity of the item to give.
The reason for giving an item. ex) Event for NFT holder
Returns information of item give history.
Purchases a store item.
The purchase parameters.
Returns purchase history.
Registers an item in the store for selling.
The parameters to register an item.
Returns item information registered in the store.
Unequips all NFT traits currently worn on the NFT.
The ID of the app.
The ID of the user.
The symbol of chain with the NFT to unequip item.
The name of network with the NFT to unequip item.
The contract address of NFT to unequip item.
The ID of NFT to unequip item.
Sends request that include form to api server of AINFT Factory. Used to upload asset data.
The method of Http request.
The suffix of request url.
The string fields of form.
The file fields of form.
Returns response of api request.
Sends request to api server of AINFT Factory. Authenticate by signing data.
The method of Http request.
The suffix of request url.
The data to be included in the api request.
Returns response of api request.
Sends request to api server of AINFT Factory. Used when authentication is not required.
The method of Http request.
The suffix of request url.
The data to be included in the api request.
The headers of Http api request.
Returns response of api request.
Sets base url.
New base url to be set to base url of api server of AINFT Factory.
Sign the data with the private key that the user has registered.
The data to sign.
Returns signature string.
Tries on store item to own NFT
The parameters for trying on an item.
} - A promise that returns an object containing the image and whether the item is occupied or not.
Unequips an NFT trait item that is being worn on the NFT. When unworn, it will be restored to its original NFT attribute.
The ID of the app.
The ID of the user.
The name of the item to unequip.
The symbol of chain with the NFT to unequip item.
The name of network with the NFT to unequip item.
The contract address of NFT to unequip item.
The ID of NFT to unequip item.
Updates an item.
The parameters to update an item.
Updates item in store.
The parameters to update store item.
Uses an item
The itemType.
The parameters for using an item.
Generated using TypeDoc
This class supports managing items, store and user items.
Do not create it directly; Get it from AinftJs instance.