metaplex-foundation / SolanaKT

This is a open source library on kotlin for Solana protocol.
MIT License
71 stars 36 forks source link

Exception: Transaction version (0) is not supported by the requesting client. #112

Open MirekR opened 2 years ago

MirekR commented 2 years ago

When we try to request block what contains new versioned transaction, client throws exception:

Transaction version (0) is not supported by the requesting client. Please try the request again with the following configuration parameter: "maxSupportedTransactionVersion": 0 java.lang.Error: Transaction version (0) is not supported by the requesting client. Please try the request again with the following configuration parameter: "maxSupportedTransactionVersion": 0

How to reproduce exception: In the Methods.TestGetConfirmedBlock change slot number to 169877549L

It's related to the changes around transaction version, see description for parameter maxSupportedTransactionVersion - https://docs.solana.com/developing/clients/jsonrpc-api#getblock