ContractTransaction

What is it?

This class is extended from Transaction and, unlike the others, has only one method. There is also a method called decodeData for EVM and Tron. This method can be found as needed on many blockchain networks and decodes the input data of the respective contract transactions.

Methods

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

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

const address = tx.getAddress()

const decodeData = await tx.decodeData()

Last updated