BatchTransferPacked
BatchTransferPacked function class

Parameters:

  1. 1.
    web3 (required) - Web3 instance
  2. 2.
    contractAddress (required) - string Address of FactoryProxy contract
import { BatchTransferPacked } from "fct";
​
const batchTransferPacked = new BatchTransferPacked(web3, contractAddress);

calls

Get all added transactions, which are ready to be signed.

Example:

const calls = batchTransferPacked.calls

Returns:

Returns array with batchCallPacked object:
  • signer - Transfer sender
  • token - Address of ERC-20 token in transfer. If value zero address - call is an ETH Transfer
  • to - Transfer receiver's address
  • value - Transfer value
  • sessionId - Bytes string, that contains groupId, nonce, afterTimestamp, beforeTimestamp, gasLimit, maxGasPrice and flags.
  • encodedMessage - Encoded message of transfer
  • inputData - Unedited input data

Example:

[
{
signer: '0x08B7d04533DfAe2d72e693771b339FA6DF08635d',
token: '0x0000000000000000000000000000000000000000',
to: '0xC1B72812552554873dEd3eaC0B588cE78C3673E1',
value: 10,
sessionId: '0x00000400000000010000000000ffffffffff0000000000000005D21DBA0000',
encodedMessage: '0x474d4fb5c9a443b9c37505aa0eb83659665585050acbc3c236df3d5803fc87310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e1000000000000000000000000000000000000000000000000000000000000000a0000000400000000010000000000ffffffffff0000000000000005d21dba0000',
unhashedCall: {
token: '0x0000000000000000000000000000000000000000',
groupId: 4,
nonce: 1,
to: '0xC1B72812552554873dEd3eaC0B588cE78C3673E1',
value: 10,
signer: '0x08B7d04533DfAe2d72e693771b339FA6DF08635d',
}
}
]
Last modified 3mo ago
Copy link
Outline
calls