1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
2023-05-02 18:18:30 +01:00

2.6 KiB

@oceanprotocol/lib / Exports / DDO

Interface: DDO

DID Descriptor Object. Contains metadata about the asset, and define access in at least one service.

Hierarchy

Table of contents

Properties

Properties

@context

@context: string[]

Contexts used for validation.

Defined in

@types/DDO/DDO.ts:12


chainId

chainId: number

ChainId of the network the DDO was published to.

Defined in

@types/DDO/DDO.ts:38


credentials

Optional credentials: Credentials

Describes the credentials needed to access a dataset in addition to the services definition.

Defined in

@types/DDO/DDO.ts:57


event

Optional event: Event

Describes the event of last metadata event

Defined in

@types/DDO/DDO.ts:63


id

id: string

DID, descentralized ID. Computed as sha256(address of NFT contract + chainId)

Defined in

@types/DDO/DDO.ts:19


metadata

metadata: Metadata

Stores an object describing the asset.

Defined in

@types/DDO/DDO.ts:44


nftAddress

nftAddress: string

NFT contract address

Defined in

@types/DDO/DDO.ts:32


services

services: Service[]

Stores an array of services defining access to the asset.

Defined in

@types/DDO/DDO.ts:50


version

version: string

Version information in SemVer notation referring to the DDO spec version

Defined in

@types/DDO/DDO.ts:26