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

CoinTransaction

What is it?

This class is used for Coin transfer operations extended from Transaction and contains the following methods.

Methods

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

const tx = new models.CoinTransaction('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)
PreviousTransactionNextNftTransaction

Last updated 11 months ago

📝