pyth-network / pyth-network/pyth-crosschain
Transaction version (0) is not supported by the requesting client, set maxSupportedTransactionVersion
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 247
- Forks
- 348
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 27
Description
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
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at pythPush.ts:63 and trace the AnchorProvider.sendAll call shown in the stack trace. Inspect the installed @pythnetwork/pyth-solana-receiver, @coral-xyz/anchor, and @solana/web3.js paths, then verify that the transaction fetch no longer reports the unsupported version-0 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100