Skip to main content

Transfer / Accept collection ownership

What you'll need:

Collection ownership on the Enjin Blockchain grants specific permissions and control over a collection and its tokens.
The collection owner is the only account authorized to make changes to the collection or any tokens within it. This includes the exclusive ability to mint new tokens or mint additional supply of existing tokens in the collection.

Transferring collection ownership is done in two steps:

Step #1: Sending a transfer ownership request with the Enjin API

To send a transfer ownership request, we use the MutateCollection mutation:

mutation SendTransferOwnershipRequest {
MutateCollection(
collectionId: 36105 #Specify the collection ID
mutation: {
owner: "cxLU94nRz1en6gHnXnYPyTdtcZZ9dqBasexvexjArj4V1Qr8f" #Specify the new owner
}
) {
id
method
state
}
}

Once the transaction is confirmed, the new owner needs to approve the ownership transfer request, for the collection ownership to be executed

Step #2: Accepting a transfer ownership request with the Enjin API

To accept a transfer ownership request, we call the AcceptCollectionTransfer mutation from the new collection owner account:

mutation AcceptTransferOwnershipRequest {
AcceptCollectionTransfer(
collectionId: 36105 #Specify the collection ID
) {
id
method
state
}
}

Once the transaction is confirmed, the collection ownership will be transferred to the new owner.