fractionalize: TxDescriptor<{
    asset_id: number;
    beneficiary: MultiAddress;
    fractions: bigint;
    nft_collection_id: number;
    nft_id: number;
}>

Lock the NFT and mint a new fungible asset.

The dispatch origin for this call must be Signed. The origin must be the owner of the NFT they are trying to lock.

Deposit funds of sender are reserved.

  • nft_collection_id: The ID used to identify the collection of the NFT. Is used within the context of pallet_nfts.
  • nft_id: The ID used to identify the NFT within the given collection. Is used within the context of pallet_nfts.
  • asset_id: The ID of the new asset. It must not exist. Is used within the context of pallet_assets.
  • beneficiary: The account that will receive the newly created asset.
  • fractions: The total issuance of the newly created asset class.

Emits NftFractionalized event when successful.