blocto/solana-go-sdk

Consider exposing all "resolved" addresses on `Transaction`

omarkilani opened this issue · 1 comments

Should solana-go-sdk expose something like this on the Client interface?

https://github.com/solana-labs/solana/pull/27552/files

The way this seems to work is (in order of "resolved" accounts array):

  1. Message (static) accounts have source = Transaction.
  2. ALT writable accounts with source = LookupTable.
  3. ALT readonly accounts with source = LookupTable.

I'm not sure where in the struct hierarchy this belongs as LoadedAddresses are in Meta, while Accounts is on Transaction.Message), so possibly at the Transaction level?

yihau commented

We should have this but I would like to keep type.Transaction more primitive atm. Maybe I will declare a new struct ParsedTransaction to implement this. Let me think about it.