---
# System prepended metadata

title: 'DID:ENS'

---

# DID:ENS

## Examples

### did:ethr

```typescript
const { didDocument } = await agent.resolveDid({ 
  didUrl: "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5" 
})
console.log(didDocument)
```

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld"
  ],
  "id": "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5",
  "verificationMethod": [
    {
      "id": "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5#controller",
      "type": "EcdsaSecp256k1RecoveryMethod2020",
      "controller": "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5",
      "blockchainAccountId": "0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5@eip155:1"
    }
  ],
  "authentication": [
    "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5#controller"
  ],
  "assertionMethod": [
    "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5#controller"
  ]
}
```

### did:ens

```typescript
const { didDocument } = await agent.resolveDid({ 
  didUrl: "did:ens:nick.eth"
})
console.log(didDocument)
```

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld"
  ],
  "id": "did:ens:nick.eth",
  "verificationMethod": [
    {
      "id": "did:ens:nick.eth#controller",
      "type": "EcdsaSecp256k1RecoveryMethod2020",
      "controller": "did:ethr:0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5",
      "blockchainAccountId": "0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5@eip155:1"
    },
    {
      "id": "did:ens:nick.eth#controllerKey",
      "type": "EcdsaSecp256k1VerificationKey2019",
      "controller": "did:ens:nick.eth",
      "publicKeyHex": "0x037e9a8e5986f28257d25e1fe84c87d7675a16afc45057a13ef752f5ca6a87d440"
    },
    {
      "id": "did:ens:nick.eth#delegate-1",
      "type": "Ed25519VerificationKey2018",
      "controller": "did:ens:nick.eth",
      "publicKeyHex": "d9357571edcb8cc8c66c2ae569b1baefc953c0f193c21d6745751620f471c425"
    }
  ],
  "authentication": [
    "did:ens:nick.eth#controller",
    "did:ens:nick.eth#controllerKey",
  ],
  "assertionMethod": [
    "did:ens:nick.eth#controller"
    "did:ens:nick.eth#controllerKey",
    "did:ens:nick.eth#delegate-1",
  ],
  "service": [
      {
        "id": "did:ens:nick.eth#1",
        "type": "email",
        "serviceEndpoint": "arachnid@notdot.net"
      },
      {
        "id": "did:ens:nick.eth#2",
        "type": "url",
        "serviceEndpoint": "https://ens.domains/"
      },
      {
        "id": "did:ens:nick.eth#3",
        "type": "com.twitter",
        "serviceEndpoint": "nicksdjohnson"
      },
      {
        "id": "did:ens:nick.eth#4",
        "type": "com.github",
        "serviceEndpoint": "arachnid"
      },
      {
        "id": "did:ens:nick.eth#5",
        "type": "DIDCommMessaging",
        "serviceEndpoint": "https://mediator.example.com/messages"
      }
    ]
}
```
