Skip to content

Conversation

@Erbsensuppee
Copy link
Contributor

Problem

The example examples/enhanced_websocket_transactions.rs fails to compile:

TransactionSubscribeFilter::standard(&key) expects &Pubkey but receives an incompatible type.

Closes #147

Fix

  • Construct TransactionSubscribeFilter manually via account_include
  • Use correct solana_sdk::pubkey! macro and pubkey::Pubkey
  • Add clear comments and structure

Verification

[dependencies]
helius = "0.3.2"
solana-sdk = "3.0.0"
tokio = { version = "1.48.0", features = ["full"] }
tokio-stream = "0.1.17"

- Replace use of TransactionSubscribeFilter::standard() with manual config
- Use correct solana_sdk::pubkey type
- Verified compilation and runtime with helius 0.3.2

Closes helius-labs#147
@Erbsensuppee Erbsensuppee force-pushed the fix/enhanced-websocket-example-type-mismatch branch from 5e3b1d6 to 47094b1 Compare November 19, 2025 12:08
Copy link
Collaborator

@0xIchigo 0xIchigo left a comment

Choose a reason for hiding this comment

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

Nice catch, ty! 🔥

@0xIchigo 0xIchigo merged commit 0e36f99 into helius-labs:dev Nov 19, 2025
1 check passed
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.

[Bug] Example enhanced_websocket_transactions.rs fails to compile: TransactionSubscribeFilter::standard type mismatch

2 participants