Asset Creation
An asset is a representation of whatever is being preserved. Each asset can be owned by just one individual at a time.
Registering an Address
const address = await tephra.create()
console.log(`Now there's an asset at "${address}"`)
// e.g., Now there's an asset at "3a134374-b266-411f-882b-022422d05989"Storing Contents
// Create an asset
const assetAddress = await tephra.create({
name: 'My First Asset',
description: 'This asset will exist forever.',
image: {
type: 'ipfs',
address: someIpfsAddress,
},
// Attributes can be used to store any structured
// information about the asset.
attributes: [
{
label: 'Created By',
value: 'Me.',
},
],
})Allowed Fields
Last updated
Was this helpful?