Skip to content

Solana mainnet v2 transactions fail when signed with 3rd party wallets (e.g., phantom, backpack, coinbase) #828

@Max-the-dev

Description

@Max-the-dev

Context:

  • Solana devnet payments work fine
  • Base mainnet/testnet payments work fine
  • Only Solana mainnet fails
    • transaction_simulation_failed response from x402 verify endpoint
    • it appears the facilitator does not work unless using the official signer (programmatic signer with private keys)

Additional Context:

  • This flow was fully functional when on v1.
  • Key question: Did the signing scheme change between the two versions?

Discovery:

While debugging, observed that Phantom wallet modifies transactions on mainnet (not devnet). Specifically, it appears
to inject the Lighthouse program for user protection:

  • Transaction before Phantom signs: 7 accounts
  • Transaction after Phantom signs: 8 accounts (includes Lighthouse program)

Hypothesis:

The v2 SDK flow may not accommodate third-party wallets that modify transactions before signing. The signature
is valid for the modified transaction, but CDP simulation may be failing because:

  • It's validating against an expected transaction structure
  • Or reconstructing/simulating a transaction that doesn't match what was actually signed

Questions:

  1. Does CDP's Solana verification expect a specific transaction structure?
  2. Can the flow accommodate wallet-modified transactions ?
  3. Any known issues or guidance for Phantom on mainnet with v2?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions