Skip to main content
Glama

obol

페리맨에게 지불하세요. x402를 통한 Solana 에이전트 게이트웨이.

Obol은 AI 에이전트를 위한 종량제 Solana API입니다. API 키도, 구독도 없습니다 — 에이전트는 x402 결제 프로토콜을 사용하여 요청당 USDC로 지불합니다. Solana의 센트 미만 거래 비용 덕분에 마이크로페이먼트가 처음으로 실현 가능해졌습니다.

죽은 자의 혀에 놓아 스틱스 강을 건너는 카론에게 통행료를 지불하는 동전에서 이름을 따왔습니다. 원조 마이크로페이먼트.

작동 방식

  1. 에이전트가 유료 엔드포인트에서 데이터를 요청합니다.

  2. Obol은 결제 요구 사항(금액, 수취인, 네트워크)과 함께 HTTP 402를 반환합니다.

  3. 에이전트는 요구 사항에 맞는 USDC를 Solana에서 전송합니다.

  4. 에이전트는 X-PAYMENT 헤더에 거래 증명을 포함하여 재시도합니다.

  5. Obol은 온체인에서 검증하고 데이터를 반환합니다.

계정 없음. 토큰 없음. 온보딩 없음. 그냥 지불하고 사용하세요.

Related MCP server: AgentWallet MCP Server

엔드포인트

지갑 분석

엔드포인트

가격

설명

GET /api/v1/wallet/:addr/overview

$0.01

SOL 잔액, 토큰 수, 총 가치

GET /api/v1/wallet/:addr/portfolio

$0.05

가격, NFT, 세부 내역을 포함한 전체 보유

GET /api/v1/wallet/:addr/activity

$0.05

분류된 거래 내역

GET /api/v1/wallet/:addr/risk

$0.10

다중 요인 위험 평가

GET /api/v1/wallet/:addr/pnl

$0.15

토큰 흐름 분석, 현재 가치, 손익

토큰 데이터

엔드포인트

가격

설명

GET /api/v1/token/:mint/price

$0.005

Jupiter를 통한 실시간 가격

GET /api/v1/token/:mint/metadata

$0.01

이름, 심볼, 공급량, 소수점

DeFi

엔드포인트

가격

설명

GET /api/v1/defi/swap/quote

$0.005

경로 계획이 포함된 Jupiter 스왑 견적

POST /api/v1/defi/swap/execute

$0.25

Jupiter 스왑 트랜잭션 빌더

GET /api/v1/defi/positions/:addr

$0.10

DeFi 포지션 — LST, LP, 대출

GET /api/v1/defi/lst/yields

$0.02

Solana 전역 LST 수익률 비교

무료

엔드포인트

설명

GET /

API 정보 및 가격

GET /health

서비스 상태

POST /api/v1/rpc

프록시된 Helius RPC (허용된 메서드만)

에이전트 예제

전체 참조 구현은 examples/agent-client.ts를 참조하세요. 핵심 흐름:

import { ObolAgent } from './examples/agent-client';

const agent = new ObolAgent();
await agent.discover();  // fetch pricing
agent.loadWallet(process.env.AGENT_PRIVATE_KEY);

// Auto-discovers price, pays, and returns data
const price = await agent.fetch('/api/v1/token/USDC_MINT/price');

탐색 전용 모드로 실행 (지갑 불필요):

npx tsx examples/agent-client.ts

MCP 서버

Obol은 MCP 서버로 제공됩니다 — Model Context Protocol을 지원하는 모든 AI 에이전트는 Obol의 도구를 기본적으로 발견하고 호출할 수 있습니다.

npm에서 설치

npm install -g obol-mcp

Claude Desktop / Claude Code

MCP 구성에 추가:

{
  "mcpServers": {
    "obol": {
      "command": "npx",
      "args": ["-y", "obol-mcp"],
      "env": {
        "OBOL_URL": "https://obol-production.up.railway.app"
      }
    }
  }
}

또는 로컬에서 개발하는 경우:

{
  "mcpServers": {
    "obol": {
      "command": "npx",
      "args": ["tsx", "/path/to/obol/src/mcp.ts"],
      "env": {
        "OBOL_URL": "http://localhost:3000"
      }
    }
  }
}

사용 가능한 MCP 도구

도구

설명

obol_wallet_overview

SOL 잔액, 토큰 수, 총 가치

obol_wallet_portfolio

가격과 세부 내역을 포함한 전체 보유

obol_wallet_activity

분류된 거래 내역

obol_wallet_risk

다중 요인 위험 평가

obol_wallet_pnl

토큰 흐름 분석 및 손익

obol_token_price

Jupiter를 통한 실시간 가격

obol_token_metadata

이름, 심볼, 공급량, 소수점

obol_swap_quote

라우팅이 포함된 Jupiter 스왑 견적

obol_swap_execute

서명용 스왑 트랜잭션 빌드

obol_defi_positions

LST, LP, 대출 포지션

obol_lst_yields

LST 수익률 비교

obol_health

API 상태 확인 (무료)

obol_info

엔드포인트 가격 및 정보 (무료)

로컬에서 실행

npm run mcp

스택

  • Fastify 5 — 고성능 HTTP

  • @x402/svm — Solana용 공식 x402 SDK

  • Helius — RPC + DAS API

  • Jupiter — 토큰 가격 + 스왑 실행

  • Upstash Redis — 캐시 + 결제 영수증

  • TypeScript — 전체 타입 안전성

  • Zod — 런타임 검증

설정

git clone https://github.com/halfkey/obol.git
cd obol
npm install
cp .env.example .env
# Edit .env with your Helius key and merchant wallet address
npm run dev

테스트

# Unit + integration tests (46 tests)
npm test -- --run

# Smoke test against live deployment
npx tsx scripts/smoke-test.ts https://obol-production.up.railway.app

# Manual payment test
npx tsx scripts/test-payment.ts <tx-signature>

환경

.env.example 참조. 주요 변수:

  • PAYMENT_MODEmock (개발, 자동 승인) 또는 onchain (프로덕션)

  • PAYMENT_RECIPIENT_ADDRESS — USDC를 받는 당신의 Solana 지갑

  • HELIUS_API_KEY — Helius RPC 접근

  • UPSTASH_REDIS_REST_URL / TOKEN — 캐시 레이어

로드맵

  • 유료 엔드포인트 11개 (지갑, 토큰, DeFi, LST, 손익)

  • 재생 방지가 포함된 온체인 USDC 검증

  • 테스트 스위트 (vitest 46개 + 20포인트 스모크 테스트)

  • 에이전트 클라이언트 참조 구현

  • GitHub Actions CI

  • 지갑 모니터링을 위한 WebSocket 구독

  • 동적 혼잡 기반 가격 책정

  • 멀티체인 지원

라이선스

MIT

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides permissionless wallet infrastructure for AI agents to manage wallets, sign transactions, and handle tokens across Solana and all EVM-compatible chains. It includes 29 specialized tools for on-chain operations, featuring built-in security guards and automated x402 payment processing without KYC requirements.
    29
    334
    3
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Provides 13 Solana DeFi intelligence tools for AI agents, paid per-call via micropayments (USDC). Enables pulling live DeFi data and automatic payment settlement.
    13
    63
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.

  • Token swaps and honeypot/rug checks for AI agents on 8 chains, paid per-call in USDC via x402.

  • 63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/halfkey/obol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server