Skip to main content

getVaults


Returns all INTU Vaults and details associated with a user address

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

Arguments:

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

NameTypeDescription
adminThresholdnumberpercentage of users required to change thresholds, name, etc.
birthBlocknumberBlock the smart contract was created in, used for log tracking
createdDatenumberunix timestamp for vault creation.
masterPublicAddressstringMaster public key of the vault. Having a masterPublicAddress means that t he vault is 'complete' - that everyone proposed has registered.
namestringName of the vault
proposalsProposal[]Array of proposals made to the vault (user rotations, threshold changes, etc)
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[]
chainId: string;
data: string;
gas: string;
gasPrice: string;
id: number
nonce: string;
signedTransactionsNeeded: number;
to: string;
transactionData: string;
userSignedTransactions: UserTransaction[];
value: string;
usersVaultUser[]

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

vaultAddressstringVault Address (smart contract address)