BatchTransfer
BatchTransfer function class

Parameters:

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

calls

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

Example:

const calls = batchTransfer.calls

Returns:

Returns array with batchCallPacked object:
  • signer - Signer address
  • token - Address of ERC-20 token in transfer. If value is zero address - call is an ETH Transfer
  • tokenEnsHash - Hash of ENS token address. If none has been provided, returns 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
  • to - Transfer receiver
  • toEnsHash - Hash of ENS receiver address. If none has been provided, returns 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
  • 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',
tokenEnsHash: '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470',
to: '0xC1B72812552554873dEd3eaC0B588cE78C3673E1',
toEnsHash: '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470',
value: 10,
sessionId: '0x00000300000000010000000000ffffffffff0000000000000005D21DBA0001',
encodedMessage: '0xcb2ff227442ab797614902ddc7bf18311d5d58e6c88f06db87ab3f928c7718c60000000000000000000000000000000000000000000000000000000000000000c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e1c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000300000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005d21dba000000000000000000000000000000000000000000000000000000000000000000',
typedData: {...},
unhashedCall: {...}
}
]
Last modified 3mo ago
Copy link
Outline
calls