MultiCall call

Options:

  • value (required) - ETH value in the transaction
  • to (required) - Transaction address
  • toEnsHash (optional) - Transaction ENS Address
  • method (optional) - Smart Contract function name
  • params (optional) - Array with Params​
  • flow (optional) - Flow constant, describes how batch transaction has to be executed.
  • jump (optional) - How many transactions to skip (works only if the right Flow is provided).
  • validator (optional) - Validator object.

Example (ERC20 Transfer):

{
value: 0,
to: "0xB1191F691A355b43542Bea9B8847bc73e7Abb137", // KIRO
method: "transfer",
params: [
{ name: "to", type: "address", value: "0x0388aedc924a373b28562884458f51dec5dbacbd" },
{ name: "token_amount", type: "uint256", value: "5000000000000000000" }, // 5 KIRO
],
flow: Flow.OK_CONT_FAIL_JUMP,
jump: 1,
gasLimit: 49000,
},
Copy link
Outline