fetchJsonParsedAccount function
Future<MaybeAccount<Object> >
fetchJsonParsedAccount(
- Rpc rpc,
- Address address, {
- FetchAccountConfig? config,
Fetches a MaybeAccount from the provided RPC client and address by
using getAccountInfo under the hood with the jsonParsed encoding.
It may also return a MaybeEncodedAccount if the RPC client does not know how to parse the account at the requested address.
final myAccount = await fetchJsonParsedAccount(rpc, myAddress);
Implementation
Future<MaybeAccount<Object>> fetchJsonParsedAccount(
Rpc rpc,
Address address, {
FetchAccountConfig? config,
}) {
return createSolanaAccountClient(
rpc,
).fetchJsonParsedAccount(address, config: config);
}