4.6 KiB
@oceanprotocol/lib / Exports / Asset
Interface: Asset
DID Descriptor Object. Contains metadata about the asset, and define access in at least one service.
Hierarchy
-
↳
Asset
Table of contents
Properties
- @context
- chainId
- credentials
- datatokens
- event
- id
- metadata
- nft
- nftAddress
- purgatory
- services
- stats
- version
Properties
@context
• @context: string
[]
Contexts used for validation.
Inherited from
Defined in
chainId
• chainId: number
ChainId of the network the DDO was published to.
Inherited from
Defined in
credentials
• Optional
credentials: Credentials
Describes the credentials needed to access a dataset in addition to the services definition.
Inherited from
Defined in
datatokens
• datatokens: AssetDatatoken
[]
Contains information about the ERC20 Datatokens attached to asset services.
Defined in
event
• event: AssetLastEvent
Contains information about the last transaction that created or updated the DDO.
Overrides
Defined in
id
• id: string
DID, descentralized ID. Computed as sha256(address of NFT contract + chainId)
Inherited from
Defined in
metadata
• metadata: Metadata
Stores an object describing the asset.
Inherited from
Defined in
nft
• nft: AssetNft
Contains information about the ERC721 NFT contract which represents the intellectual property of the publisher.
Defined in
nftAddress
• nftAddress: string
NFT contract address
Inherited from
Defined in
purgatory
• purgatory: Purgatory
Contains information about an asset's purgatory status defined in
list-purgatory
.
Marketplace interfaces are encouraged to prevent certain user actions like downloading on assets in purgatory.
Defined in
services
• services: Service
[]
Stores an array of services defining access to the asset.
Inherited from
Defined in
stats
• stats: Stats
The stats section contains different statistics fields. This section is added by Aquarius
Defined in
version
• version: string
Version information in SemVer notation referring to the DDO spec version