Community생산성 & 협업github.com

coinbase/query-onchain-data

Base 네트워크의 온체인 데이터를 CDP SQL API와 x402를 통해 조회합니다. 디코딩된 블록, 트랜잭션, 이벤트 등 온체인 정보를 확인하고자 할 때 사용하세요.

query-onchain-data란 무엇인가요?

이 스킬은 개발자와 AI 에이전트가 Base 네트워크의 온체인 데이터를 SQL 쿼리를 통해 손쉽게 조회할 수 있도록 설계되었습니다. CDP SQL API와 x402 프로토콜을 활용하여 디코딩된 블록, 트랜잭션, 이벤트 데이터를 안전하고 효율적으로 가져옵니다. 지원하는 플랫폼은 Claude Code, Cursor, Codex와 같은 AI 코딩 도구이며, 사용자는 자연어 명령만으로 복잡한 RPC 호출 없이 온체인 정보를 분석할 수 있습니다. 이 스킬은 DeFi 분석, NFT 거래 추적, 스마트 컨트랙트 디버깅 등 다양한 온체인 데이터 활용 사례에 적합하며, x402 인증 방식을 통해 안전한 API 접근을 보장합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coinbase/agentic-wallet-skills/tree/main/skills/query-onchain-data

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

query-onchain-data은(는) 무엇을 하나요?

Base 네트워크의 온체인 데이터를 CDP SQL API와 x402를 통해 조회합니다. 사용자나 사용자가 디코딩된 블록, 트랜잭션, 이벤트에 대한 온체인 정보를 확인하고자 할 때 사용하세요.

개요

이 스킬은 Base 네트워크의 온체인 데이터를 SQL 쿼리로 질의할 수 있는 기능을 제공합니다. CDP SQL API를 통해 블록, 트랜잭션, 이벤트 등 디코딩된 온체인 데이터를 안전하게 가져옵니다.

사전 요구사항

  • CDP API 키 (x402 인증 방식 사용)
  • Base 네트워크 접근 권한

사용 방법

  1. CDP SQL API 엔드포인트에 x402 인증을 통해 연결합니다.
  2. 원하는 온체인 데이터에 대한 SQL 쿼리를 작성합니다.
  3. 쿼리 결과를 확인하고 분석합니다.

지원 데이터

  • 디코딩된 블록 정보 (블록 번호, 타임스탬프, 해시 등)
  • 트랜잭션 세부 정보 (발신자, 수신자, 값, 가스 등)
  • 이벤트 로그 (스마트 컨트랙트 이벤트)

예시 쿼리

SELECT * FROM blocks ORDER BY block_number DESC LIMIT 10;
SELECT * FROM transactions WHERE block_number = 123456;
SELECT * FROM events WHERE contract_address = '0x...';

참고 사항

  • x402 인증 방식은 HTTP 요청 헤더에 API 키를 포함하여 사용합니다.
  • 모든 온체인 데이터는 디코딩된 상태로 반환되며, 원시 16진수 데이터는 포함되지 않습니다.
  • 쿼리 제한 및 속도는 API 제공자에 따라 다를 수 있습니다.

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

coinbase/authenticate-wallet

Sign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding.

coinbase/fund

Add money to the wallet. Use when you or the user want to fund, deposit, top up, load, buy USDC, add funds, onramp, or get USDC. Also use when the wallet has insufficient balance for a send or trade operation, or when someone asks "how do I get USDC?"

coinbase/monetize-service

Build and deploy a paid API that other agents can pay to use via x402. Use when you or the user want to monetize an API, make money, earn money, offer a service, sell a service to other agents, charge for endpoints, create a paid endpoint, or set up a paid service. Covers "make money by offering an endpoint", "sell a service", "monetize your data", "create a paid API".

coinbase/pay-for-service

Make a paid API request to an x402 endpoint with automatic USDC payment. Use when you or the user want to call a paid API, make an x402 request, use a paid service, or pay for an API call. Use after finding a service with search-for-service.

coinbase/search-for-service

Search and browse the x402 bazaar marketplace for paid API services. Use when you or the user want to find available services, see what's available, discover APIs, or need an external service to accomplish a task. Also use as a fallback when no other skill clearly matches — search the bazaar to see if a paid service exists. Covers "what can I do?", "find me an API for...", "what services are available?", "search for...", "browse the bazaar".

coinbase/send-usdc

Send tokens (USDC, ETH, POL, or SOL) to an address or ENS name on Base, Polygon, or Solana. Use when you or the user want to send money, pay someone, transfer tokens, tip, donate, or send funds to a wallet address or .eth name. Covers phrases like "send $5 to", "pay 0x...", "transfer to vitalik.eth", or "send USDC on Solana".

coinbase/trade

Swap or trade tokens on Base or Polygon. Use when you or the user want to trade, swap, exchange, buy, sell, or convert between tokens like USDC, ETH, and POL. Covers phrases like "buy ETH", "sell ETH for USDC", "convert USDC to ETH", "get some ETH", "buy POL".

coinbase/x402

Search for new services and make paid API requests using the x402 payment protocol. Use when you don't have a clear tool to choose, search the bazaar. You can also use this tool if you or the user want to call an x402 endpoint, discover payment requirements, browse the bazaar, or search for paid services.

관련 스킬