michaelhly / solana-py

Solana Python SDK
https://michaelhly.github.io/solana-py
MIT License
981 stars 252 forks source link

How to check if account is writable in get tx response #362

Closed jxad closed 8 months ago

jxad commented 1 year ago

Hi, how do I check if an account involved in a transaction is writable?

get_transaction response have a "account_keys" of type Pubkey | ParsedAccount ParsedAccount has writable property.

The returned type is only Pubkey. What do I have to do to return account_keys of type ParsedAccount?

jxad commented 8 months ago

Passing "jsonParsed" to the encoding parameter in get_transaction, is going to return Parsed objects