blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
366 stars 95 forks source link

Expose `LoadedAddresses`, `ReturnData` and `ComputeUnitsConsumed`. #116

Closed omarkilani closed 1 year ago

omarkilani commented 1 year ago

Expose v0 tx meta on Client TransactionMeta.

yihau commented 1 year ago

Thank you!

omarkilani commented 1 year ago

@yihau do you think we should 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?

omarkilani commented 1 year ago

@yihau any chance you could cut a release with this change? 🫡