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. Services

TransactionSigner

What is it?

TransactionSigner is actually the class that is returned directly from methods such as transfer, approve etc. and contains the prepared transacion. With this class, this transaction can be signed and sent to the node.

Methods

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

const txSigner = await new assets.Coin().transfer('0x123', '0x456', 0.1)

const txId = await (await txSigner.sign('0x123')).send()

const rawTxData = txSigner.getRawData()

// Only after signing
const signedData = txSigner.getSignedData()
PreviousProviderNextTransactionListener

Last updated 11 months ago

📬