Validator

  • method (string) - Validator method
  • params (object) - Object of value params
  • validatorAddress (string) - Address of validator

Example with batchMultiSigCall:

Call checks if the balanceOf KIRO for an account is greater than 5 KIRO
const call = {
value: 0,
to: "0xB1191F691A355b43542Bea9B8847bc73e7Abb137", // KIRO Address
method: "balanceOf",
params: [{ name: "account", type: "address", value: "0x0388aedc924a373b28562884458f51dec5dbacbd" }],
validator: {
method: "greaterThan",
params: {
valueToCompare: "5000000000000000000",
},
validatorAddress: "0x...", // Validator address
},
from: "0x9c4fe1c3d5975e5c5e493f24352969aa280b7cfc",
}
​
await batchMultiSigCall.create(call);
Last modified 1mo ago