Fetch parsed account data for a given public key.
The expected shape of the parsed account data
HTTP transport instance
Base-58 encoded public key to query
Encoding, data-slice, commitment, and other call options
Context-wrapped account info, or null if the account does not exist
null
const { context, value } = await getAccountInfo(transport, pubkey);if (value) console.log(`Owner: ${value.owner}`); Copy
const { context, value } = await getAccountInfo(transport, pubkey);if (value) console.log(`Owner: ${value.owner}`);
1.0.0
Fetch parsed account data for a given public key.