NftTransaction

What is it?

This class is used for NFT transfer operations extended from ContractTransaction and contains the following methods.

Methods

import { models, types } from '@multiplechain/evm-chains'

const tx = new models.NftTransaction('0x1234')

const receiver = await tx.getReceiver()

const sender = await tx.getSender()

const nftId = await tx.getNftId()

const status = await tx.verifyTransfer(types.AssetDirectionEnum.INCOMING, receiver, nftId)

Last updated