multiTransferFrom(contract, sender, currency, receiver, target, amount)

Feature

Returns raw operation to transfer point from target to receiver with multi items

Parameters

string | string[] contract address, // If given a string, it is automatically converted to an array filled with the same values. string sender, string currency ID, string[] array of account’s address to receive, string[] array of target account’s address, string[] | int[] array of amount to transfer

Return Value

object transferFrom point operation with multi item

example1. transfer point to account(0x40…) from target(0x4F…), account(0xC7…) from target(0x11…)

const contract = "0x04adb9825E50940E0722E795565a4f869e469005fca";
const sender = "0xF1858E0F9921ae2F1001F9B9132eFa15201E0318fca";
const currencyID = "MCC";
const receiver = ["0x403683b62188B7bbBdFF6668e1e04e5e48cc9b05fca", "0xC7b22225DDBD8af09f3c635C3b6b8300beaBa041fca"];
const target = ["0x4FbB44ddcD51a027849F3D23D7E2F15D0Bf1060efca", "0x1114B419Deb89ABA8cb6da2D12FE796217213a0efca"];
const amount = [100, 4000]

const Operation = mitum.point.multiTransferFrom(contract, sender, currencyID, receiver, target, amount);
console.log(Operation);

// output
BaseOperation {
  id: 'mitum',
  fact: TransferFromFact {
    hint: Hint { s: 'mitum-point-transfer-from-operation-fact' },
    token: Token { s: '2026-02-19 03:35:01.947 +0000 UTC' },
    _hash: <Buffer 81 04 a9 e3 81 30 a4 57 1f ee e2 0d ca b8 7f f8 ca f4 a5 44 87 56 39 50 01 4b ac 52 c7 c5 02 51>,
    sender: Address {
      s: '0xF1858E0F9921ae2F1001F9B9132eFa15201E0318fca',
      type: 'mitum'
    },
    items: [ [TransferFromItem], [TransferFromItem] ]
  },
  hint: Hint { s: 'mitum-point-transfer-from-operation' },
  _factSigns: [],
  _hash: <Buffer >
}

example2. transfer point on the contract(0x04…) and contract(0x1e…) to account(0x40…) from target(0x4F…)

Last updated