createIntuAccount
This stores a new INTU smart contract (in registration phase) on the network.
Users who have been included in the vault can then register, and once everyone has registered, they can interact with it.
*AN INTU ACCOUNTCURRENTLY REQUIRES 3 PARTICIPANTS WITH 2 SIGNERS -- IT CANNOT HAVE A 3 of 3 SIGNING SCHEME*
Arguments:
import { createIntuAccount } from "@intuweb3/exp-web";
/*
RotateThreshold = % of participants required to add or remove someone from the vault
TransactionThreshold = % of participants required to send a transaction from the vault
AdminThreshold = % of participants required to change a threshold %, change the name, etc.
*/
await createIntuAccount([arrayOfAddresses], "MyEasyToReadVaultName", rotateThreshold,txThreshold,adminThreshold, signer)
Input | Type of Input | Description |
---|---|---|
proposedAddresses | Array of addresses | Array of all the addresses you want to submit for the new vault [0x1, 0x2, 0x3 ... ] |
vaultName | String | Easy to read name for reference |
rotateThreshold | number | percentage required to rotate a user in or out of the account |
txThreshold | number | percentage required to send a transaction for the account |
adminThreshold | number | percentage required to change a threshold or name |
signer | Object | Signer object acquired from ethers or equivalent |
The function does not return any values.