When requesting multiple invocations, you can set abortOnFail
to true on some invocations so the VM will abort the rest of the calls if this invocation returns false
The parameters to be sent to the method
The SmartContract's method name
The SmartContract ScriptHash
A simple interface that defines the MultiInvoke options
The array of invocations
the signing options
A simple interface that defines the Signed Message format
encrypted message
message hex
signer's public key
salt used to encrypt
A simple interface that defines the signing options, which privileges the user needs to give for the SmartContract.
Usually the default signer is enough: { scopes: WitnessScope.CalledByEntry }
But you may need additional authorization, for instance, allow the SmartContract to invoke another specific contract:
{
scopes: WitnessScope.CustomContracts,
allowedContracts: ['0xf970f4ccecd765b63732b821775dc38c25d74f23']
}
When the scopes is WitnessScope.CustomContracts
, you need to specify which contracts are allowed
When the scopes is WitnessScope.CustomGroups
, you need to specify which groups are allowed
The level of permission the invocation needs
A list of types supported by wallets
Generated using TypeDoc
A simple interface that defines the invocation options