Skip to content

feat: Add substreams-bitcoin skill#4

Open
PaulieB14 wants to merge 1 commit into
streamingfast:developfrom
PaulieB14:feat/substreams-bitcoin-skill
Open

feat: Add substreams-bitcoin skill#4
PaulieB14 wants to merge 1 commit into
streamingfast:developfrom
PaulieB14:feat/substreams-bitcoin-skill

Conversation

@PaulieB14
Copy link
Copy Markdown

Summary

Add expert knowledge skill for Bitcoin Substreams development. This fills the gap for Bitcoin-specific guidance, as existing skills focus on Ethereum/EVM chains.

What's Included

SKILL.md covers:

  • Bitcoin vs EVM model differences (UTXO vs accounts)
  • Core data structures (sf.bitcoin.v1.Block, Transaction, Vin, Vout)
  • Address extraction from script types
  • Witness data (SegWit) handling
  • Fee estimation patterns
  • Esplora API compatibility
  • Manifest and Cargo.toml configuration for Bitcoin

references/utxo-patterns.md includes:

  • UTXO lifecycle explanation
  • Per-block UTXO extraction
  • UTXO set store patterns
  • Address balance calculation
  • Fee calculation with UTXO lookup

Testing

Patterns are based on working code from Bitcoin Esplora Enhanced which successfully processes real Bitcoin blockchain data.

Checklist

  • SKILL.md has proper YAML frontmatter
  • Content under 5,000 tokens guideline
  • References directory with supporting documentation
  • Apache-2.0 license
  • Compatible with claude-code, cursor, vscode, windsurf

Add expert knowledge skill for Bitcoin Substreams development:

- Bitcoin vs EVM model differences (UTXO vs accounts)
- Core data structures (Block, Transaction, Vin, Vout)
- Address extraction patterns
- UTXO tracking patterns
- Witness data handling
- Fee estimation
- Esplora API compatibility
- Manifest and Cargo.toml configuration

References:
- utxo-patterns.md: Detailed UTXO tracking patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
substreams auth

# Run against Bitcoin endpoint
substreams run -e btc.substreams.pinax.network:443 \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
substreams run -e btc.substreams.pinax.network:443 \
substreams run -e bitcoin \

map_blocks -s 800000 -t +100

# GUI mode
substreams gui -e btc.substreams.pinax.network:443 \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
substreams gui -e btc.substreams.pinax.network:443 \
substreams gui -e bitcoin \

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.

2 participants