-
Notifications
You must be signed in to change notification settings - Fork 4
Data Objects
Information needed by nft_mint-nft. Only wallet_id
and 'target_address` are required.
{
wallet_id: 0,
target_address: '',
royalty_address: '',
edition_number: 1,
edition_total: 1,
royalty_percentage: 0,
did_id: '',
fee: 0,
}
This is the output of the minter's upload
function and is passed to createNftFromIpfs
. createNftFromIpfs can also be called directly for a pre-existing ipfs folder. dataUris
, hash
, meta_uris
, and meta_hash
are required.
{
dataUris: [],
hash: '',
meta_uris: [],
meta_hash: '',
license_uris: [],
license_hash: '',
}
Used to point to and describe part of an NFT. All fields are required.
{
name: '',
type: '', // the MIME type of the file
filepath: '' // local full filesystem path to the file
};
Used to point to and describe the NFT license. type
and one of filepath
or uri
are required.
{
type: '', // the MIME type of the license file
filepath: '', // if present this will be upload with the NFT
uri: '' // otherwise the license can point to a URI
};
The data structure used to describe the NFT and optionally its collection. Since id
is a uuid
, for a series NFT the collection should be generated once and reused for each createNftMetadata
call.
{
name: '',
id: '', // a uuid - will be auto-populated by createCollecitonMetadata
attributes: [ { type: '', value: '' } ]
}
The data structure used to describe the NFT and optionally its collection.
{
format: 'CHIP-0007', // auto-populated by createNftMetadata
name: '',
description: '',
minting_tool: 'chia-repl', // auto-populated
sensitive_content: false,
attributes: [ { trait_type: 'trait', value: 'value' } ],
collection: {
name: '',
id: '', // a uuid - will be auto-populated by createCollecitonMetadata
attributes: [ { type: '', value: '' } ]
}
}
chia and its logo are the registered trademark or trademark of Chia Network, Inc. in the United States and worldwide.