Enjin Documentation
Search…
⌃K

Releasing Assets from Reserve

Learn more about the ReleaseReserve mutation and how to use it in your project.
The releaseReserve is a great mutation in case you need to release the ENJ(or JENJ) from assets that you didn't mint yet but still have a supply available to mint.
Using this request will allow you to release the reserve of assets that you didn't mint yet.
The ReleaseReserve request has one single mutation.
Mutation
Usage
ReleaseReserve
Release the ENJ from an asset that hasn't been minted yet.

ReleaseReserve

mutation {
ReleaseReserve(
assetId: "xxxxxxxxxxx"
value: "x"
wallet: "xxxxxxxxx"
) {
transactionId
id
state
value
asset {
name
id
}
user {
name
}
}
}
If all the request parameters are correct, this should be the expected response.
{
"data": {
"ReleaseReserve": {
"transactionId": null,
"id": xxxxxx,
"state": "PENDING",
"value": "3",
"asset": {
"name": "tokenName",
"id": "xxxxxxx"
},
"user": null
}
}
}
After approving the transaction, the infused ENJ should be released from reserve and returned to the token creator wallet address.