Create Immortal Spore
In this recipe, we'll show you how to use the Spore SDK to create immortal spores that are indestructible and can live on-chain indefinitely.
What is an Immortal Spore?
Create Immortal Spores
Ingredients
Methods
import { createSpore } from '@spore-sdk/core';
let { txSkeleton } = await createSpore({
data: {
content: JPEG_AS_BYTES,
contentType: 'image/jpeg',
contentTypeParameters: {
immortal: true, // enabling the immortal extension
},
},
fromInfos: [WALLET_ADDRESS],
toLock: WALLET_LOCK_SCRIPT,
});What's Next?
Last updated