Transaction

What is it?

Transaction class is the class that allows you to easily retrieve the data in a general transaction. With this class, you can get the data with "get" methods without the need to understand and read the different data formats of all blockchain networks.

Methods

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

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

const transactionId = tx.getId()

const transactionData = await tx.getData()

const transactionType = await tx.getType()

const transactionUrl = tx.getUrl()

const signer = await tx.getSigner()

const fee = await tx.getFee()

const status2 = await tx.getStatus()

const status = await tx.wait(4000)

const blockNumber = await tx.getBlockNumber()

const confirmationCount = await tx.getBlockConfirmationCount()

const blockTimestamp = await tx.getBlockTimestamp()

Last updated