Skip to content

Conversation

@Philippoes
Copy link
Contributor

This pull request updates the Solana connector to improve transaction deserialization and support both legacy and versioned transactions. The main change is to handle both base64 and hex-encoded transaction payloads, and to correctly deserialize either a legacy Transaction or a VersionedTransaction before sending it.

Transaction deserialization improvements:

  • Updated the sendTransaction method to detect whether the input transaction is base64 or hex-encoded, and to deserialize it as either a VersionedTransaction or a legacy Transaction as appropriate. This ensures compatibility with both transaction formats and encoding types.
  • Added the VersionedTransaction import from @solana/web3.js to support the new deserialization logic.

@changeset-bot
Copy link

changeset-bot bot commented Jan 9, 2026

⚠️ No Changeset found

Latest commit: 7bbd18c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jan 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dashboard-finery Ready Ready Preview, Comment Jan 9, 2026 2:51pm
dashboard-utila Ready Ready Preview, Comment Jan 9, 2026 2:51pm
staging-widget Ready Ready Preview, Comment Jan 9, 2026 2:51pm
stakekit-widget Ready Ready Preview, Comment Jan 9, 2026 2:51pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request enhances the Solana connector to support both legacy and versioned transactions while handling multiple encoding formats. The implementation adds auto-detection of transaction encoding (base64 vs hex) and automatic fallback between VersionedTransaction and legacy Transaction deserialization.

Key changes:

  • Added encoding detection logic to handle both base64 and hex-encoded transaction payloads
  • Implemented try-catch pattern to deserialize VersionedTransaction first, falling back to legacy Transaction
  • Imported VersionedTransaction from @solana/web3.js

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Philippoes Philippoes merged commit 37c5314 into main Jan 9, 2026
11 checks passed
@Philippoes Philippoes deleted the feat/support-versioned-solana-txs branch January 9, 2026 14:52
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

Successfully merging this pull request may close these issues.

3 participants