Update a domain's on-chain record

Change a domain's IID document on the IXO Protocol: its fields, verification methods, services, controllers and linked resources. With one illustrative message.

This guide covers one part of a domain: its on-chain record, the IID document, which is the domain's DID document on the IXO Protocol. Use it when you need to change the record's fields, add or revoke a verification method, add or remove a service, or manage controllers and linked resources. After reading you will know which operations exist, who may sign them and how to check that a change was committed.

It does not cover the entity at the domain's core, which is in Manage entities, or the endpoints of any one service, which are in the API reference.

Before you start

  • You control the target domain's DID.
  • You have signing authority for the transactions that update the domain.
  • You have chosen the target network from Networks and endpoints. Use a test network while you build.

What you can change

  • Update DID document fields.
  • Add or revoke verification methods.
  • Add or remove services.
  • Manage controllers and linked resources.

Where the authority sits

These operations belong to the IXO Protocol. Service APIs such as the Impact Hub Registry or IXO Matrix can read a domain's metadata. They do not replace the protocol's authority over the document.

Shape of an update message

Illustrative example. It shows the shape of the message. It is not a tested call, and you supply every value.

const msg = {
  typeUrl: "/ixo.iid.v1beta1.MsgUpdateIidDocument",
  value: {
    id,
    controller,
    verificationMethod,
    authentication,
    service
  }
};

Check the result

Query the document after the transaction. You should find that:

  • the document returns the updated fields
  • the update is attributable to an authorised controller

Next steps