You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Account struct {
// Number of lamports assigned to this account
Lamports uint64 `json:"lamports"`
// Pubkey of the program this account has been assigned to
Owner solana.PublicKey `json:"owner"`
// Data associated with the account, either as encoded binary data or JSON format {<program>: <state>}, depending on encoding parameter
Data *DataBytesOrJSON `json:"data"`
// Boolean indicating if the account contains a program (and is strictly read-only)
Executable bool `json:"executable"`
// The epoch at which this account will next owe rent
RentEpoch uint64 `json:"rentEpoch"`
}
how can I get data.parsed.info.owner?
too hard to use.
The text was updated successfully, but these errors were encountered:
I see the https://solscan.io/account/7N6Y6cYRdVuD2ViCk6imDMpjsvd8L83jM2hmY7GXVVXX
address = 7N6Y6cYRdVuD2ViCk6imDMpjsvd8L83jM2hmY7GXVVXX
const publicKey = new solanaWeb3.PublicKey(address);
const tokenAccountInfo = await connection.getAccountInfo(publicKey);
const owner = tokenAccountInfo.data.parsed.info.owner;
want owner = g6C2kzzxGa653aAiHmN8HTntAAPjeSD5C191h8rdqrQ
while when i see the golang sdk.
how can I get data.parsed.info.owner?
too hard to use.
The text was updated successfully, but these errors were encountered: