getVaults
Returns all INTU Vaults and details associated with a user address
import { getVaults } from "@intuweb3";
await getVaults("0x123user456", 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 250000 |
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. |
birthBlock | number | Block the smart contract was created in, used for log tracking |
createdDate | number | unix timestamp for vault creation. |
masterPublicAddress | string | Master public key of the vault. Having a masterPublicAddress means that t he vault is 'complete' - that everyone proposed has registered. |
name | string | Name of the vault |
proposals | Proposal[] | Array of proposals made to the vault (user rotations, threshold changes, etc) |
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[] |
|
users | VaultUser[] | address: string; |
vaultAddress | string | Vault Address (smart contract address) |