Skip to content

Releases: Akord-com/akord-js

Release v4.23.1

13 Nov 16:11
Compare
Choose a tag to compare

fix docs note.uploadRevision()

Release v4.23.0

13 Nov 15:45
Compare
Choose a tag to compare

add nft asset getters

Release v4.22.0

09 Nov 13:29
Compare
Choose a tag to compare

minting Atomic NFTs

The new NFT module enables the creation of atomic NFTs compliant with the Atomic Asset standard.

The atomic asset can be minted with the option to attach the Universal Data License (UDL), and can be listed on the Universal Content Marketplace (UCM).

akord.nft.mint(vaultId, asset, metadata, options)

  • vaultId (string, required)
  • asset ([FileLike][file-like], required) - asset data
  • metadata (NFTMetadata, required) - NFT metadata: name, ticker, description, owner, creator, etc.
  • options (FileUploadOptions, optional) - ex: UDL terms
  • returns Promise<{ nftId, transactionId }> - Promise with new nft id & corresponding transaction id
// Mint an atomic NFT with the UDL attached

// First, let's define our NFT metadata
const nftMetadata = {
  name: "Golden Orchid - Flora Fantasy #1",
  creator: "xxxx", // should be a valid Arweave address
  owner: "yyyy", // should be a valid Arweave address
  collection: "Flora Fantasy",
  description: "A rare digital representation of the mythical Golden Orchid",
  type: "image",
  topics: ["floral", "nature"]
};

// Then, let's define UDL terms
const udlTerms = {
  licenseFee: {
    type: "One-Time",
    value: 10
  },
  derivations: [{ type: "Allowed-With-Credit" }]
};

// Finally, let's mint the NFT by passing the path to the asset data, NFT metadata, and UDL terms
const { nftId } = await akord.nft.mint(vaultId, "path to your asset", nftMetadata, { udl: udlTerms });

// Let's retrieve the transaction uri containing the NFT
import { StorageType } from "@akord/akord-js";
const nft = await akord.nft.get(nftId);
const nftUri = nft.asset.getUri(StorageType.ARWEAVE);
// After few minutes, you should be able to view your NFT on: https://viewblock.io/arweave/tx/{nftUri}

Release v4.21.10

08 Nov 20:25
Compare
Choose a tag to compare
ci: version bump to v4.21.10

Release v4.21.9

06 Nov 10:40
Compare
Choose a tag to compare
ci: version bump to v4.21.9

Release v4.21.8

02 Nov 18:19
Compare
Choose a tag to compare
ci: version bump to v4.21.8

Release v4.21.7

02 Nov 17:13
Compare
Choose a tag to compare
ci: version bump to v4.21.7

Release v4.21.6

01 Nov 20:27
Compare
Choose a tag to compare
ci: version bump to v4.21.6

Release v4.21.5

01 Nov 19:55
Compare
Choose a tag to compare
ci: version bump to v4.21.5

Release v4.21.4

01 Nov 19:46
Compare
Choose a tag to compare
ci: version bump to v4.21.4