secondlayer

Generate operational metadata and guidance for Secondlayer Stacks indexing and subgraph workflows.

6|3|Updated May 25, 2025
One-click install
npx skills add https://github.com/ryanwaits/secondlayer --skill secondlayer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secondlayer
Source: https://github.com/ryanwaits/secondlayer/tree/main/skills/secondlayer
Command: npx skills add https://github.com/ryanwaits/secondlayer --skill secondlayer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you work with the Secondlayer platform for Stacks by turning blockchain activity into usable queries, live feeds, and webhook-driven workflows instead of hand-rolling indexing and contract plumbing.

Core Features & Use Cases

  • Decoded chain data: Query raw event streams, decoded index data, blocks, transactions, contract calls, and stacking actions.
  • Subgraphs and subscriptions: Author TypeScript subgraphs, deploy them, query their tables, and trigger webhook deliveries from row changes or chain events.
  • Stacks contract workflows: Read and call Clarity contracts, use the viem-style Stacks SDK, and work with BNS, PoX, sBTC, and StackingDAO extensions.
  • Use case: Build a Stacks analytics dashboard that tracks token transfers, reacts to whale activity, and sends alerts when a contract emits a specific print event.

Quick Start

Ask the assistant to use the secondlayer skill to help you query Stacks events, scaffold a subgraph, or create a webhook subscription for a contract you care about.

Frequently Asked Questions about secondlayer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I index Stacks blockchain events and query decoded transaction data?

To index Stacks blockchain events, you can query raw event streams, decoded index data, blocks, and transactions through the Secondlayer platform, avoiding the need to hand-roll your own indexing and contract plumbing.

How do I create a webhook subscription to monitor Clarity contract events?

You can create a webhook subscription to monitor Clarity contract events by triggering webhook deliveries directly from row changes or specific chain events using the Secondlayer platform's subscription features.

What is the best way to author and deploy a TypeScript subgraph for Stacks?

The best way to author and deploy a Stacks subgraph is using the Secondlayer platform, which allows you to write TypeScript subgraphs, deploy them, and query their resulting tables for analytics.

Can I use a viem-style SDK to read and call Clarity smart contracts?

Yes, you can read and call Clarity smart contracts using the viem-style Stacks SDK provided by the platform, which also includes extensions for BNS, PoX, sBTC, and StackingDAO.

Does this platform support building automated alerts for whale token transfers?

Yes, the platform supports building automated alerts for whale token transfers by querying decoded event streams and triggering webhook deliveries when specific contract print events are emitted.