# Subgraph Change of Ownership

**URL:** <https://forum.thegraph.com/t/subgraph-change-of-ownership/2169>\
**Category:** Research & Development\
**Created:** [July 11, 2021, 9:36pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169 "2021-07-11T21:36:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DataNexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/datanexus/32/1830_2.png) [@DataNexus](https://forum.thegraph.com/u/DataNexus)\
**Post date:** [July 11, 2021, 9:36pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169/1 "2021-07-11T21:36:35Z")

</div>

I’d like for there to be a way to change ownership of a subgraph that has been deployed.

There was a situation where a subgraph was pre-maturely deployed from a community member for an existing project with the desire to help migrate them.

That community member has since reached out to the dev team for that project and is discussing their migration plan, but they need to redeploy the subgraph so they have ownership.

Ideally we could initiate a change of ownership rather than having duplicate subgraphs.

---

<div class="post-metadata">

**Author:** ![ari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/ari/32/2747_2.png) [@ari](https://forum.thegraph.com/u/ari)\
**Post date:** [July 12, 2021, 10:58pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169/2 "2021-07-12T22:58:46Z")

</div>

The **GNS** is the contract that manages any subgraphs published by developers and tracks ownership.

You can’t transfer the ownership of an individual subgraph, but it is possible to delegate ownership of all the subgraphs created by your address. This works by changing who owns the identity of the address that created it using the _ERC-1056 registry_ contract.

I can see some limitations with the above approach and I find it useful to be able to transfer individual subgraph ownership. I’ll look into it and work on a proposal.

For more information about how it currently works, see:

> <https://github.com/graphprotocol/contracts/blob/dev/contracts/discovery/GNS.sol#L143>

---

<div class="post-metadata">

**Author:** ![DataNexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/datanexus/32/1830_2.png) [@DataNexus](https://forum.thegraph.com/u/DataNexus)\
**Post date:** [July 12, 2021, 11:01pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169/3 "2021-07-12T23:01:47Z")

</div>

That’s good to know. As a subgraph dev, I can see a time where a DApp may want me to publish their subgraph, but after deployment I would want to transfer ownership to them.

---

<div class="post-metadata">

**Author:** ![adamfuller](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@adamfuller](https://forum.thegraph.com/u/adamfuller)\
**Post date:** [July 13, 2021, 4:55pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169/4 "2021-07-13T16:55:26Z")

</div>

This is a great idea - I think one key requirement for ownership transfer will be acceptance by the receiver, to prevent ownership being transferred to addresses without their consent

---

<div class="post-metadata">

**Author:** ![DataNexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/datanexus/32/1830_2.png) [@DataNexus](https://forum.thegraph.com/u/DataNexus)\
**Post date:** [July 13, 2021, 5:15pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169/5 "2021-07-13T17:15:36Z")

</div>

Or potentially a multi sig type of deployment. Contracted subgraph dev wants to publish, signs transaction, goes to DApp address for confirmation, update is published.

---

<div class="post-metadata">

**Author:** ![ari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/ari/32/2747_2.png) [@ari](https://forum.thegraph.com/u/ari)\
**Post date:** [July 13, 2021, 5:32pm UTC](https://forum.thegraph.com/t/subgraph-change-of-ownership/2169/6 "2021-07-13T17:32:48Z")

</div>

This is actually what the initial partners did. They published their subgraphs using a multisig and now they can manage ownership as they find better.
