The namespace provides handles to an [[AccountClient]] object for each account in a program.
account.<account-client> Copy
account.<account-client>
To fetch a Counter account from the above example,
Counter
const counter = await program.account.counter.fetch(address); Copy
const counter = await program.account.counter.fetch(address);
For the full API, see the [[AccountClient]] reference.
The namespace provides handles to an [[AccountClient]] object for each account in a program.
Usage
Example
To fetch a
Counteraccount from the above example,For the full API, see the [[AccountClient]] reference.