NFT

What is it?

NFT is an asset standard that exists in all popular chains, but not in every blockchain. This standard has basic common features across all blockchains, and with this NFT class, all NFT transactions can be done easily.

Methods

import { assets } from '@multiplechain/evm-chains'

const nft = new assets.NFT('0x')

const name = nft.getName()
const symbol = nft.getSymbol()
const owner = await nft.getOwner('0x')
const uri = await nft.getTokenURI('0x')
const balance = await nft.getBalance('0x')
const approved = await nft.getApproved('0x')

const transfer = await nft.transfer('0x', '0x', 1)
const approve = await nft.approve('0x', '0x', 1)
const transferFrom = await nft.transferFrom('0x', '0x', '0x', 1)

const txId = await (await transfer.sign('0x')).send()
const txId2 = await (await approve.sign('0x')).send()
const txId3 = await (await transferFrom.sign('0x')).send()

Last updated