🔥 LaserEyes Examples 🔥

Welcome to the examples section! Here you'll find practical, real-world examples of LaserEyes in action. Think of this as your cookbook for Bitcoin superpowers - no cape required.

Available Examples

Quick Example: Hello Bitcoin

Here's a simple example to get you started - the "Hello World" of LaserEyes:

import { useLaserEyes } from 'laser-eyes';

export function BitcoinGreeter() {
  const { network, blockHeight } = useLaserEyes();
  
  return (
    <div>
      <h1>Hello, Bitcoin!</h1>
      <p>Connected to: {network}</p>
      <p>Current block height: {blockHeight}</p>
    </div>
  );
}

⚡ Pro Tip:

All examples can be copied directly into your project. Just make sure you've installed LaserEyes first!