Create New Instance/s
Last updated
Last updated
Create a new module instance.
Arguments:
account
- Viem account (Address for JSON-RPC accounts or Account for other types).
moduleId
- The module ID (implementation address).
hatId
- The hat ID for which the module is created.
saltNonce
- Optional salt nonce to use. If not provided, will be randomly generated.
Response:
status
- "success" if transaction was successful, "reverted" if transaction reverted.
transactionHash
- transaction's hash.
newInstance
- In case of success, the address of the new module instance.
Batch create new module instances.
Each module will be created according to the provided parameters, on the same corresponding array index.
Arguments:
account
- Viem account (Address for JSON-RPC accounts or Account for other types).
moduleIds
- The module IDs (implementation address).
hatIds
- The hat IDs for which the modules are created.
saltNonces
- Optional salt nonces to use. If not provided, will be randomly generated.
Response:
status
- "success" if transaction was successful, "reverted" if transaction reverted.
transactionHash
- transaction's hash.
newInstances
- The address of the new module instances.
Predict a module's address before/after it was created, using its creation arguments.
Arguments:
moduleId
- Module's ID.
saltNonce
- Salt nonce to use.
Response:
The predicted module address.
immutableArgs
- The module's immutable args. The arguments should be in the same order as in the object.
mutableArgs
- The module's mutable args. The arguments should be in the same order as in the object.
immutableArgsArray
- Each module's immutable arguments. For each module, the arguments should be in the same order as in the object.
mutableArgsArray
- Each module's mutable arguments. For each module, the arguments should be in the same order as in the object.
hatId
- The target hat ID, as provided to the .
immutableArgs
- The module's immutable args, as provided to the .