getVaults
Returns all Intu Vaults and details for a user
import { getVaults } from "@intuweb3/web";
await getVaults("0x12345", provider, blockRange?)
Arguments:
Input | Type | Description |
---|---|---|
address | string | address of the user |
provider | object | ethers provider |
blockRange | number | OPTIONAL range of blocks to get logs from, default 10000 |
Returns:
An array of results, each containing an Intu smart contract's information for a particular account.
Name | Type | Description |
---|---|---|
adminThreshold | number | percentage of users required to change thresholds, name, etc. |
adminData | Proposition[] | Same as proposition below, but specifically for an admin proposition like a threshold change |
birthBlock | number | Block the smart contract was created in, used for log tracking |
createdDate | number | unix timestamp for vault creation. |
encryptionMessage | string | the message that needs to be signed for each user for encryption/decryption |
masterPublicKey | string | Master public key of the vault |
myInfo | VaultUser[] | The information specific to the signer |
name | string | Name of the vault |
propositions | Proposition[] |
|
registrationComplete | boolean | registration phase complete |
rotateData | Proposition[] | Same as proposition, but specifically for any rotation proposal |
rotateThreshold | number | percentage of users required to rotate a new user in or out of the account |
transactionCount | number | number of tx associated with vault |
transactionThreshold | number | percentage of users required to send a transaction for the account |
transactions | Transaction[] |
|
userAddresses | string[] | address[] |
users | VaultUser[] | address: string; |
vaultAddress | string | Vault Address |
(EXTRA INFO) | UserProposition[] | address: string; |