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.
Burn credit from user.
The ID of app.
The symbol of credit.
The ID of user the credit will be burned.
The amount of credit to burn.
The additional data about burning.
Creates credit to use in app.
The ID of app.
The symbol of credit.
The name of credit.
Maximum number of credits that can be generated.
Deletes app credit.
The ID of app.
The symbol of credit.
Deposits user's credits to Crypto tokens.
The ID of app.
The transaction information about deposit.
Gets app credit info.
The ID of app.
The symbol of credit.
Returns credit information.
Get the user's credit balance
The ID of app.
The symbol of credit.
The ID of user.
A Promise that resolves to the credit balance of the user
Get the credit balance of all users
The ID of app.
The symbol of credit.
} A Promise that resolves to the credit balance of all users.
Gets user's deposit history.
The ID of app.
The ID of user.
The symbol of chain.
Returns depositHistory list of user.
Gets a user's lockup list.
The ID of app.
The symbol of credit.
The ID of user.
Returns lockup list by userId.
You can get withdrawal list applied by all users
The ID of app.
The symbol of credit.
Return AppWithdrawList Object
You can get withdrawal list apllied by one user
The ID of app.
The symbol of credit.
The ID of user.
Return UserWithdrawList Object
You can restrict the user to leave a certain amount of credit
The ID of app.
The symbol of credit.
The ID of user.
The amount of credit to lock.
The timestamp when the lockup period ends.
The reason for the lockup.
Mints app credit to user.
The ID of app.
The symbol of credit.
The ID of user the credit will be minted.
The amount of credit to mint.
The additional data about minting.
Rejects requested withdrawals.
The ID of app.
The symbol of credit.
A map containing withdrawal request information to reject.
The reason for the reject.
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.
Transfer app credit to user.
The ID of app.
The symbol of credit.
The address the credit will send from.
The address the credit will send to.
The amount of credit to transfer.
The additional data about transferring.
You can request withdraw app credit to crypto wallet.
The ID of app.
The symbol of credit.
The ID of user who request withdraw.
The symbol of chain.
The amount of withdraw credit.
The address where will receive withdraw credit.
Reflects withdraws complete status to server after transfer tokens
The ID of app.
The symbol of credit.
A map containing withdrawal request information for each user.
Hash of transfer transaction.
Generated using TypeDoc
The class for creating and managing credits to be used in each app.
Do not create it directly; Get it from AinftJs instance.