getVaults


Returns all Intu Vaults and details for a user

import { getVaults } from "@intuweb3/web";
await getVaults("0x12345", provider, blockRange?)

Arguments:

InputTypeDescription
addressstringaddress of the user
providerobjectethers provider
blockRangenumberOPTIONAL 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.

NameTypeDescription
adminThresholdnumberpercentage of users required to change thresholds, name, etc.
adminDataProposition[]Same as proposition below, but specifically for an admin proposition like a threshold change
birthBlocknumberBlock the smart contract was created in, used for log tracking
createdDatenumberunix timestamp for vault creation.
encryptionMessagestringthe message that needs to be signed for each user for encryption/decryption
masterPublicKeystringMaster public key of the vault
myInfoVaultUser[]

The information specific to the signer
address: string;
isRegistered: boolean;
encryptedShare: string;
publicEncryptionKey: string;

namestringName of the vault
propositionsProposition[]
id: number
voteForNeeded: number;
voteFor: number;
endTime: number;
executed: boolean;
type: PropositionType;
data: string;
users: UserProposition[];
signerVoted: boolean;
readableType: string;
adminOrRotate: string;
registrationCompletebooleanregistration phase complete
rotateDataProposition[]Same as proposition, but specifically for any rotation proposal
rotateThresholdnumberpercentage of users required to rotate a new user in or out of the account
transactionCountnumbernumber of tx associated with vault
transactionThresholdnumberpercentage of users required to send a transaction for the account
transactionsTransaction[]
id: number
transactionInfo: string
signedTransactionsNeeded: number;
userSignedTransactions: UserTransaction[];
chainId: string;
data: string;
gas: string;
gasFeeCap: string
gasTipCap: string;
nonce: string;
to: string;
value: string;
signerSignedtransaction?: boolean;
userAddressesstring[]address[]
usersVaultUser[]

address: string;
isRegistered: boolean;
publicEncryptionKey: string;

vaultAddressstringVault Address
(EXTRA INFO)UserProposition[]

address: string;
voteStatus: NO_VOTE VOTE_FOR VOTE_AGAINST