multiTransfer(contract, sender, currency, receiver, amount)

Feature

Returns raw operation to transfer point with multi item.

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[] | int[] array of amount to transfer

Return Value

object transfer point operation with multi item.

example1. transfer point to account(0x40…), account(0xC7…)

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

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

// output
BaseOperation {
  id: 'mitum',
  fact: TransferFact {
    hint: Hint { s: 'mitum-point-transfer-operation-fact' },
    token: Token { s: '2026-02-19 03:31:40.616 +0000 UTC' },
    _hash: <Buffer 07 23 f2 76 ae 02 3b 6f aa cc d4 f4 62 53 27 46 5b 2b c9 da ca 23 c8 34 fb fd 74 23 14 d3 d4 c6>,
    sender: Address {
      s: '0xF1858E0F9921ae2F1001F9B9132eFa15201E0318fca',
      type: 'mitum'
    },
    items: [ [TransferItem], [TransferItem] ]
  },
  hint: Hint { s: 'mitum-point-transfer-operation' },
  _factSigns: [],
  _hash: <Buffer >
}

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

Last updated