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
-
DDO
↳
Asset
Table of contents
Properties
Properties
@context
• @context: string
[]
Contexts used for validation.
Defined in
chainId
• chainId: number
ChainId of the network the DDO was published to.
Defined in
credentials
• Optional
credentials: Credentials
Describes the credentials needed to access a dataset in addition to the services definition.
Defined in
event
• Optional
event: Event
Describes the event of last metadata event
Defined in
id
• id: string
DID, descentralized ID. Computed as sha256(address of NFT contract + chainId)
Defined in
metadata
• metadata: Metadata
Stores an object describing the asset.
Defined in
nftAddress
• nftAddress: string
NFT contract address
Defined in
services
• services: Service
[]
Stores an array of services defining access to the asset.
Defined in
version
• version: string
Version information in SemVer notation referring to the DDO spec version