<100 subscribers


Burn a token 🔥
Caller must be the token owner
Namespace
Copy
Ask AI
api.tx.nft.burn\nType
Copy
Ask AI
function burn(\n token_id: (u32,u32)\n)\nBridged collections from Ethereum will initially lack an owner. These collections will be assigned to the pallet. This allows for claiming those collections assuming they were assigned to the pallet.
Namespace
Copy
Ask AI
api.tx.nft.claimUnownedCollection\nType
Copy
Ask AI
function claimUnownedCollection(\n collection_id: u32,\n new_owner: SeedPrimitivesSignatureAccountId20\n)\nCreate a new collection. Additional tokens can be minted via mint.
name - the name of the collection
initial_issuance - number of tokens to mint now
max_issuance - maximum number of tokens allowed in collection
token_owner - the token owner, defaults to the caller
metadata_scheme - The off-chain metadata referencing scheme for tokens in this
royalties_schedule - defacto royalties plan for secondary sales, this will apply to all tokens in the collection by default
cross_chain_compatibility - Is this collection XLS-20 compatible. Note, if enabled, the metadata_scheme will be immutable
Namespace
Copy
Ask AI
api.tx.nft.createCollection\nType
Copy
Ask AI
function createCollection(\n name: Bytes,\n initial_issuance: u32,\n max_issuance: Option,\n token_owner: Option,\n metadata_scheme: Bytes,\n royalties_schedule: Option,\n cross_chain_compatibility: PalletNftCrossChainCompatibility\n)\nMint tokens for an existing collection.
collection_id - the collection to mint tokens in
quantity - how many tokens to mint
token_owner - the token owner, defaults to the caller if unspecified. Caller must be the collection owner.
Namespace
Copy
Ask AI
api.tx.nft.mint\nType
Copy
Ask AI
function mint(\n collection_id: u32,\n quantity: u32,\n token_owner: Option\n)\nSet the base URI of a collection. Caller must be the current collection owner.
Cannot change if XLS20 compatibility is enabled.
Namespace
Copy
Ask AI
api.tx.nft.setBaseUri\nType
Copy
Ask AI
function setBaseUri(\n collection_id: u32,\n base_uri: Bytes\n)\nBurn a token 🔥
Caller must be the token owner
Namespace
Copy
Ask AI
api.tx.nft.burn\nType
Copy
Ask AI
function burn(\n token_id: (u32,u32)\n)\nBridged collections from Ethereum will initially lack an owner. These collections will be assigned to the pallet. This allows for claiming those collections assuming they were assigned to the pallet.
Namespace
Copy
Ask AI
api.tx.nft.claimUnownedCollection\nType
Copy
Ask AI
function claimUnownedCollection(\n collection_id: u32,\n new_owner: SeedPrimitivesSignatureAccountId20\n)\nCreate a new collection. Additional tokens can be minted via mint.
name - the name of the collection
initial_issuance - number of tokens to mint now
max_issuance - maximum number of tokens allowed in collection
token_owner - the token owner, defaults to the caller
metadata_scheme - The off-chain metadata referencing scheme for tokens in this
royalties_schedule - defacto royalties plan for secondary sales, this will apply to all tokens in the collection by default
cross_chain_compatibility - Is this collection XLS-20 compatible. Note, if enabled, the metadata_scheme will be immutable
Namespace
Copy
Ask AI
api.tx.nft.createCollection\nType
Copy
Ask AI
function createCollection(\n name: Bytes,\n initial_issuance: u32,\n max_issuance: Option,\n token_owner: Option,\n metadata_scheme: Bytes,\n royalties_schedule: Option,\n cross_chain_compatibility: PalletNftCrossChainCompatibility\n)\nMint tokens for an existing collection.
collection_id - the collection to mint tokens in
quantity - how many tokens to mint
token_owner - the token owner, defaults to the caller if unspecified. Caller must be the collection owner.
Namespace
Copy
Ask AI
api.tx.nft.mint\nType
Copy
Ask AI
function mint(\n collection_id: u32,\n quantity: u32,\n token_owner: Option\n)\nSet the base URI of a collection. Caller must be the current collection owner.
Cannot change if XLS20 compatibility is enabled.
Namespace
Copy
Ask AI
api.tx.nft.setBaseUri\nType
Copy
Ask AI
function setBaseUri(\n collection_id: u32,\n base_uri: Bytes\n)\nShare Dialog
Share Dialog
No comments yet