useAccounts

Get all accounts

Example

const { data: accounts, isLoading, error } = useAccounts(contract);
function useAccounts(
contract: RequiredParam<SmartContract<BaseContract>>,
): UseQueryResult<Array<string>>;

Parameters

Instance of a account factory contract

Type

let contract: RequiredParam<SmartContract<BaseContract>>;

Returns

let returnType: UseQueryResult<Array<string>>;

Query result object that includes an array of all accounts with their associated admin