3

When calling getParsedTransaction, in the tokenBalances here I get an undefined owner even though the token account has an owner?

Here is example

getting the transaction info for 4XiDd3MBPd3cfNacyxCecx5SaJu6KNCtzUQcQSVqYM3bsMHvGYaM65iZ34RLaAsQXCVzzH7C2Wftnbv1dXM1WuKY

in postTokenBalances I get

accountIndex: 2
mint: "Ar3T1wiyJREhuRVb4FdXCuEFCZECGpfhUCYiZT4Hv2GT"
owner: undefined
2
  • Did you manage to find an answer?
    – Tomvkgames
    Mar 2 at 13:39
  • I did not find an answer sadly.
    – vicyyn
    Mar 2 at 13:40

1 Answer 1

5
+50

Those fields were not present in the tokenBalances maps when we started saving that metadata into the foundation BigTable storage. The change that started storing the owner field landed in master on October 13, 2021, and the change that started storing the programId field landed on master on April 20, 2022. In both cases, it would have taken some additional time for those features to be rolled out on mainnet-beta.

Your example transaction was processed Sept 27, 2021, before both changes.

2
  • This would be an awesome addition to the docs. Want to send a PR, @vicyyn? :) Mar 6 at 21:48
  • Definitely! Will do.
    – vicyyn
    Mar 7 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.