TokenTransaction

What is it?

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

Methods

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

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

const receiver = await tx.getReceiver()

const sender = await tx.getSender()

const amount = await tx.getAmount()

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

Last updated