Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction version (0) is not supported by the requesting client, set maxSupportedTransactionVersion #2148

Open
kskalski opened this issue Nov 27, 2024 · 2 comments

Comments

@kskalski
Copy link

This is probably due to old anchor dependency used by @pythnetwork/pyth-solana-receiver

node_modules/@solana/web3.js/src/connection.ts:5069
      throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
            ^

SolanaJSONRPCError: failed to get transaction: Transaction version (0) is not supported by the requesting client. Please try the request again with the following configuration parameter: "maxSupportedTransactionVersion": 0
    at Connection.getTransaction (node_modules/@solana/web3.js/src/connection.ts:5069:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at AnchorProvider.sendAll (node_modules/@pythnetwork/pyth-solana-receiver/node_modules/@coral-xyz/anchor/src/provider.ts:256:28)
    at <anonymous> (pythPush.ts:63:5) {
  code: -32015,
  data: undefined
}

@guibescos
Copy link
Contributor

guibescos commented Dec 6, 2024

I've seen this error before, and never understood how to fix it.

To validate your hypothesis that this is due to an outdated anchor dependency, could you try dispatching the transaction using some anchor-less logic like https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/sdk/js/solana_utils/src/transaction.ts#L416 ?

Also would be useful if you could provide more context.

@0xYudhishthra
Copy link

I faced this same error yesterday, and after upgrading @solana/web3.js to ^1.98.0, it seemed to have fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@kskalski @guibescos @0xYudhishthra and others