BatchMultiCallPacked
BatchMultiCallPacked function class

Parameters:

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

calls

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

Example:

const calls = batchMultiCallPacked.calls

Returns:

Returns array with batchCallPacked object:
  • encodedMessage - Whole message decoded
  • sessionId - Bytes string, that contains groupId, nonce, afterTimestamp, beforeTimestamp, gasLimit, maxGasPrice and flags.
  • signer - Transaction sender
  • unhashedCall - Unedited input data
  • mcall - Array with MultiCalls:
    • value - Call ETH value
    • to - Call address
    • data - Encoded parameters. If value is 0x - call is an ETH transfer
    • flags - Converted MultiCall flags
    • gasLimit - Max gas that can be spent in the specific transaction. If value is 0 - no gas limit.

Example:

[
{
"encodedMessage": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160444eefda9882e499826d10196c4b80b809917669702757807b2f8746f659da36000000000000000000000000e2de2e31c2e78e5c6d4e91ae121a39f34ff49d4a000000000000000000000000000000000000000000000000000000000000000000000600000000010000000000ffffffffff0000000000000005d21dba00f00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e1000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000444eefda9882e499826d10196c4b80b809917669702757807b2f8746f659da36000000000000000000000000e2de2e31c2e78e5c6d4e91ae121a39f34ff49d4a000000000000000000000000000000000000000000000000000000000000000000000600000000010000000000ffffffffff0000000000000005d21dba00f00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000044a9059cbb000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e1000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000",
"sessionId": "0x00000600000000010000000000ffffffffff0000000000000005D21DBA00f000",
"signer": "0x08B7d04533DfAe2d72e693771b339FA6DF08635d",
"mcall": [
{
"value": 0,
"to": "0xE2de2E31c2e78e5C6d4e91aE121a39f34ff49D4a",
"gasLimit": 0,
"flags": "0x01",
"data": "0xa9059cbb000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e10000000000000000000000000000000000000000000000000000000000000005"
},
{
"value": 0,
"to": "0xE2de2E31c2e78e5C6d4e91aE121a39f34ff49D4a",
"gasLimit": 0,
"flags": "0x01",
"data": "0xa9059cbb000000000000000000000000c1b72812552554873ded3eac0b588ce78c3673e1000000000000000000000000000000000000000000000000000000000000000c"
}
],
"unhashedCall": {...}
]
Copy link
Outline
calls