Skip to main content

Transfer / Accept collection ownership

What you'll need:

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.