WSS blockSubscribe gives UnsupportedTransactionVersion

Hello… im using wss to do blockSubscribe for solana. but im getting this:

Received data: {"jsonrpc":"2.0","method":"blockNotification","params":{"result":{"context":{"slot":236493909},"value":{"slot":236493910,"block":null,"err":{"UnsupportedTransactionVersion":0}}},"subscription":335042}}
Received data: {"jsonrpc":"2.0","method":"blockNotification","params":{"result":{"context":{"slot":236493910},"value":{"slot":236493910,"block":null,"err":{"UnsupportedTransactionVersion":0}}},"subscription":335042}}

with instructions:

{
        "jsonrpc": "2.0",
        "id": 1,
        "method": "blockSubscribe",
        "params": [
          "all",
          {
            "commitment": "finalized",
            "transactionDetails": "full",
            "encoding": "jsonParsed"
          }
        ]
      }

In the websocket. Why am i receiving this instead of finalized blocks with detailed transactions?
Documentation: blockSubscribe RPC Method | Solana Documentation

Best regards

Maybe try SlotSubscribe and then load the block data in a separate call.
It’s more stable, blockSubscribe is

1 Like

I got it to work, the solution is to set the “maxSupportedTransactionVersion” to 0

full settings:

{
        jsonrpc: "2.0",
        id: "1",
        method: "blockSubscribe",
        params: [
          "all",
          {
            encoding: "json",
            maxSupportedTransactionVersion: 0,
            transactionDetails: "full",
            rewards: false,
          },
        ],
      }