Nft
Calls
burn
Burn a token 🔥
Caller must be the token owner
Namespace
Type
claimUnownedCollection
Bridged 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
Type
createCollection
Create a new collection Additional tokens can be minted via mint_additional
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.
Namespace
Type
mint
Mint 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
----------- Weight is O(N) where N is quantity
Namespace
Type
setBaseUri
Set the base URI of a collection Caller must be the current collection owner
Namespace
Type
setMaxIssuance
Set the max issuance of a collection Caller must be the current collection owner
Namespace
Type
setMintFee
Namespace
Type
setName
Set the name of a collection Caller must be the current collection owner
Namespace
Type
setOwner
Set the owner of a collection Caller must be the current collection owner
Namespace
Type
setRoyaltiesSchedule
Set the royalties schedule of a collection Caller must be the current collection owner
Namespace
Type
togglePublicMint
Namespace
Type
transfer
Transfer ownership of an NFT Caller must be the token owner
Namespace
Type
Storage
collectionInfo
Map from collection to its information
Namespace
Type
nextCollectionId
The next available incrementing collection id
Namespace
Type
publicMintInfo
Map from collection to its public minting information
Namespace
Type
tokenLocks
Map from a token to lock status if any
Namespace
Type
Events
BaseUriSet
Base URI was set
Namespace
Type
BridgedMint
Token(s) were bridged
Namespace
Type
Burn
A token was burned
Namespace
Type
CollectionClaimed
Collection has been claimed
Namespace
Type
CollectionCreate
A new collection of tokens was created
Namespace
Type
MaxIssuanceSet
Max issuance was set
Namespace
Type
Mint
Token(s) were minted
Namespace
Type
MintFeePaid
Payment was made to cover a public mint
Namespace
Type
MintPriceSet
A mint price was set for a collection
Namespace
Type
NameSet
Name was set
Namespace
Type
OwnerSet
A new owner was set
Namespace
Type
PublicMintToggle
Public minting was enabled/disabled for a collection
Namespace
Type
RoyaltiesScheduleSet
Royalties schedule was set
Namespace
Type
Transfer
A token was transferred
Namespace
Type
Errors
AttemptedMintOnBridgedToken
Attemped to mint a token that was bridged from a different chain
Namespace
BlockedMint
Token(s) blocked from minting during the bridging process
Namespace
CannotClaimNonClaimableCollections
Cannot claim already claimed collections
Namespace
CollectionIssuanceNotZero
Total issuance of collection must be zero to add xls20 compatibility
Namespace
CollectionNameInvalid
Given collection name is invalid (invalid utf-8, too long, empty)
Namespace
InitialIssuanceNotZero
Initial issuance on XLS-20 compatible collections must be zero
Namespace
InvalidMaxIssuance
Max issuance needs to be greater than 0 and initial_issuance Cannot exceed MaxTokensPerCollection
Namespace
InvalidMetadataPath
The metadata path is invalid (non-utf8 or empty)
Namespace
InvalidNewOwner
The caller can not be the new owner
Namespace
MaxIssuanceAlreadySet
The max issuance has already been set and can't be changed
Namespace
MaxIssuanceReached
The collection max issuance has been reached and no more tokens can be minted
Namespace
MintLimitExceeded
The quantity exceeds the max tokens per mint limit
Namespace
NoAvailableIds
No more Ids are available, they've been exhausted
Namespace
NoCollectionFound
The collection does not exist
Namespace
NotCollectionOwner
Origin is not the collection owner and is not permitted to perform the operation
Namespace
NoToken
The token does not exist
Namespace
NotTokenOwner
Origin does not own the NFT
Namespace
PublicMintDisabled
This collection has not allowed public minting
Namespace
RoyaltiesInvalid
Total royalties would exceed 100% of sale or an empty vec is supplied
Namespace
TokenLimitExceeded
The number of tokens have exceeded the max tokens allowed
Namespace
TokenLocked
Cannot operate on a listed NFT
Namespace
Constants
palletId
This pallet's Id, used for deriving a sovereign account ID
Namespace
Type
stringLimit
The maximum length of a collection name, stored on-chain
Namespace
Type
JSON-RPC Methods
ownedTokens
ownedTokens
Get all NFTs owned by an account
Interface
JSON
tokenUri
tokenUri
Get the URI of a token
Interface
JSON
Last updated