Type alias AccountNamespace<I>

AccountNamespace<I>: {
    [A in keyof AllAccountsMap<I>]: AccountClient<I, A>
}

The namespace provides handles to an [[AccountClient]] object for each account in a program.

Usage

account.<account-client>

Example

To fetch a Counter account from the above example,

const counter = await program.account.counter.fetch(address);

For the full API, see the [[AccountClient]] reference.

Type Parameters