MultipleChain Docs V0.4
  • OVERVIEW
    • 👋Welcome
    • 😇Doc Logic
  • STRUCTURE
    • 🪙Assets
      • Common
      • Coin
      • NFT
      • Token
      • Contract
    • 📝Models
      • Common
      • Transaction
      • CoinTransaction
      • NftTransaction
      • TokenTransaction
      • ContractTransaction
    • 📬Services
      • Provider
      • TransactionSigner
      • TransactionListener
    • 💻Browser
  • NETWORKS
    • 🔗Etherem (EVM)
    • 🔗Solana
    • 🔗Bitcoin
    • 🔗Tron
  • LANGUAGES
    • 💻JavaScript (TS)
      • Node
      • Browser
    • 💻PHP
Powered by GitBook
On this page
  • What is it?
  • Methods
  1. STRUCTURE
  2. Models

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()
PreviousCommonNextCoinTransaction

Last updated 10 months ago

📝