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

Last updated