BatchCallPacked
BatchCallPacked function class

Parameters:

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

calls

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

Example:

const calls = batchCallPacked.calls

Returns:

Returns array with batchCallPacked object:
  • to - Call target address
  • value - Call ETH value
  • sessionId - Bytes string, that contains groupId, nonce, afterTimestamp, beforeTimestamp, gasLimit, maxGasPrice and flags.
  • signer - Signer address
  • data - Encoded method and params. If method and params haven't been provided, value will be 0x
  • encodedMessage - Encoded message
  • inputData - Unedited input data

Example:

[
{
to: '0xE2de2E31c2e78e5C6d4e91aE121a39f34ff49D4a',
value: 0,
sessionId: '0x00000200000000010000000000ffffffffff0000000000000005D21DBA00f0',
signer: '0x08B7d04533DfAe2d72e693771b339FA6DF08635d',
data: '0xa9059cbb000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e10000000000000000000000000000000000000000000000000000000000000005',
encodedMessage: '0x81c5bff76a96e0093ada8bfbd51b146363f06e8d332662da98b2ba079018e370000000000000000000000000e2de2e31c2e78e5c6d4e91ae121a39f34ff49d4a00000000000000000000000000000000000000000000000000000000000000000000000200000000010000000000ffffffffff0000000000000005d21dba00f000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e1000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000',
unhashedCall: {
method: 'transfer',
params: [
{ name: "to", type: "address", value: "0x6fcca7af09fa2bf3392d580582d04231813e6b17" },
{ name: "token_amount", type: "uint256", value: "5000000000000000000" }, // 5 KIRO
],
groupId: 2,
nonce: 1,
value: 0,
to: '0xE2de2E31c2e78e5C6d4e91aE121a39f34ff49D4a',
signer: '0x08B7d04533DfAe2d72e693771b339FA6DF08635d'
}
}
]
Last modified 3mo ago
Copy link
Outline
calls