@nevermined-io/sdk - v3.0.44 / NFTAttributes
β³ NFTAttributes
β’ new NFTAttributes(): NFTAttributes
β’ Optional
appId: string
Unique identifier of the application/domain/vertical where the asset belong to. That asset association typically helps to search and filter between assets part of a domain via Marketplace API
src/models/AssetAttributes.ts:48
β’ Optional
cap: bigint
Max number of nfts that can be minted, 0 means uncapped
src/models/NFTAttributes.ts:213
β’ Optional
encryptionMethod: EncryptionMethod
When an asset is published in a Nevermined network, some internal Metadata attributes are encrypted so they canβt be accessed. This method allows to specify the encryption method to be used.
See
AssetAttributes.encryptionMethod
src/models/AssetAttributes.ts:21
β’ ercType: ERCType
The type of ERC used (721 or 1155)
See
src/models/NFTAttributes.ts:176
β’ Optional
fulfillAccessTimelock: number
An asset can offer different services. Each service can have different conditions that need to be fulfilled to provide that service. These conditions can expire if they are not fulfilled in a certain period of time. This attribute allows to specify a period of time the condition can not be fullfilled Setting up a timelock of 0 means that the condition can be fulfilled at any time. Setting a timelock greater than 0 means that the condition can not be fulfilled until that number of blocks after the agreement is created are mined. This would allow to create an agreement that can not fulfilled until certain period of time.
AssetAttributes.fulfillAccessTimelock
src/models/AssetAttributes.ts:68
β’ Optional
fulfillAccessTimeout: number
An asset can offer different services. Each service can have different conditions that need to be fulfilled to provide that service. These conditions can expire if they are not fulfilled in a certain period of time. This attribute allows to specify the timeouts for the access condition associated to the service. Setting up a timeout of 0 means that the condition will never expire. Setting a timeout greater than 0 means that the condition will expire after that number of blocks after the agreement is created. This would allow to create an agreement that is not fulfilled after a certain period of time, the user can claim back funds locked if the condition is any.
AssetAttributes.fulfillAccessTimeout
src/models/AssetAttributes.ts:58
β’ metadata: MetaData
Metadata describing the asset
See
src/models/AssetAttributes.ts:14
β’ Optional
nft: NFTServiceAttributes
Attributes related with the NFT service (access or sales)
src/models/NFTAttributes.ts:193
β’ nftContractAddress: string
The address of the deployed NFT Contract
src/models/NFTAttributes.ts:188
β’ Optional
nftMetadataUrl: string
URL to the metadata definition of the NFT contract
src/models/NFTAttributes.ts:208
β’ nftType: NeverminedNFTType
The Nevermined implementation of the NFT used. A part of what type of ERC is based, Nevermined provides different NFT implementations to fit in different scenarios. This attribute allow to specify between the different Nevermined NFT types
src/models/NFTAttributes.ts:183
β’ Optional
preMint: boolean
If the asset is pre-minted
src/models/NFTAttributes.ts:203
β’ Optional
predefinedAssetServices: ServiceCommon
[]
List of additional asset services to be included as part of an asset
See
AssetAttributes.predefinedAssetServices
src/models/AssetAttributes.ts:33
β’ Optional
providers: string
[]
A provider of an asset identify the public address of an account with some privileges over that asset. Typically these permissions are granted to Nevermined Nodes to allow them to give access to some services without the direct interaction of the final user. Here a user publishing an asset can define a list of all the addresses with these permissions. Typically just the address of one Nevermined Node trusted by the user.
src/models/AssetAttributes.ts:42
β’ Optional
royaltyAttributes: RoyaltyAttributes
Attributes describing the royalties attached to the NFT in the secondary market
src/models/NFTAttributes.ts:198
β’ Optional
services: ServiceAttributes
[]
List of services and their attributes offered by an asset.
See
src/models/AssetAttributes.ts:27
βͺ Static
defaultValues: Object
Name | Type |
---|---|
appId |
string |
cap |
bigint |
encryptionMethod |
EncryptionMethod |
fulfillAccessTimelock |
number |
fulfillAccessTimeout |
number |
nft |
{ amount : bigint ; duration : number = 0; isSubscription : boolean = false; maxCreditsToCharge : bigint ; minCreditsRequired : bigint ; minCreditsToCharge : bigint ; nftTransfer : boolean = true; serviceType : ServiceType ; tokenId : string = ββ } |
nft.amount |
bigint |
nft.duration |
number |
nft.isSubscription |
boolean |
nft.maxCreditsToCharge |
bigint |
nft.minCreditsRequired |
bigint |
nft.minCreditsToCharge |
bigint |
nft.nftTransfer |
boolean |
nft.serviceType |
ServiceType |
nft.tokenId |
string |
nftMetadataUrl |
string |
preMint |
boolean |
predefinedAssetServices |
ServiceCommon [] |
providers |
never [] |
royaltyAttributes |
undefined |
services |
{ price : AssetPrice ; serviceType : ServiceType }[] |
src/models/NFTAttributes.ts:215
βΈ getCreditsSubscriptionInstance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>
src/models/NFTAttributes.ts:246
βΈ getInstance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>
src/models/NFTAttributes.ts:224
βΈ getNFT1155Instance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>
src/models/NFTAttributes.ts:235
βΈ getNFT721Instance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>
src/models/NFTAttributes.ts:263
βΈ getPOAPInstance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>
src/models/NFTAttributes.ts:289
βΈ getSoulBoundInstance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>
src/models/NFTAttributes.ts:301
βΈ getSubscriptionInstance(nftAttributes
): Required
<NFTAttributes
>
Name | Type |
---|---|
nftAttributes |
Partial <NFTAttributes > |
Required
<NFTAttributes
>