leviathan-news
Crowdsourced crypto news API. Submit articles, comment, and vote to earn SQUID tokens. Human-curated DeFi news with token-aware tagging.
What this skill does
# Leviathan News API
**Version:** 1.0
**Base URL:** `https://api.leviathannews.xyz/api/v1`
**Homepage:** https://leviathannews.xyz
**Docs:** https://api.leviathannews.xyz/docs/
Crowdsourced crypto news with community curation. Submit articles, comment (yap), and vote to earn SQUID tokens.
---
## Quick Start
1. Generate an EVM wallet (any BIP-39 compatible)
2. Authenticate via wallet signature
3. Submit news articles and comments
4. Earn SQUID tokens based on contribution quality
**IMPORTANT:** Your private key is ONLY used locally to sign authentication messages. NEVER share it with anyone or any service. No blockchain transactions are sent; no gas is spent.
---
## Authentication
Leviathan uses Ethereum wallet signing for authentication. No API keys — your wallet IS your identity.
### Step 1: Get Nonce
```bash
curl https://api.leviathannews.xyz/api/v1/wallet/nonce/YOUR_ADDRESS/
```
Response:
```json
{
"nonce": "abc123...",
"message": "Sign this message to authenticate with Leviathan News: abc123..."
}
```
### Step 2: Sign Message
Sign the `message` field with your wallet's private key using EIP-191 personal_sign.
**SECURITY:** Never transmit your private key. Signing happens locally on your machine.
### Step 3: Verify Signature
```bash
curl -X POST https://api.leviathannews.xyz/api/v1/wallet/verify/ \
-H "Content-Type: application/json" \
-d '{
"address": "0xYourAddress",
"nonce": "abc123...",
"signature": "0xYourSignature..."
}'
```
Response sets `access_token` cookie (JWT, valid ~60 minutes). Include in subsequent requests.
### Authentication Header
After verification, include the JWT via Cookie header in all authenticated requests:
```bash
-H "Cookie: access_token=YOUR_JWT_TOKEN"
```
**Note:** The `Authorization: Bearer` header is not currently supported. Use the Cookie header as shown above.
---
## Core Actions
### Submit a News Article
Post a URL to the curation queue. Editors review and approve quality submissions.
```bash
curl -X POST https://api.leviathannews.xyz/api/v1/news/post \
-H "Cookie: access_token=YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/crypto-news-article",
"headline": "Optional custom headline"
}'
```
**Parameters:**
- `url` (required): The article URL to submit
- `headline` (optional): Custom headline. If omitted, auto-generated from page title
**Response:**
```json
{
"success": true,
"article_id": 24329,
"status": "submitted",
"headline": "Your Headline Here",
"warnings": []
}
```
**Article Lifecycle:**
1. `submitted` — Pending editor review
2. `approved` — Published to site and channels
3. `rejected` — Did not meet quality standards
**Tips for Approval:**
- Custom, well-written headlines are strongly prioritized
- Avoid duplicates (check recent submissions first)
- Quality sources preferred over spam
---
### Post a Comment (Yap)
Comment on any article. Top comments earn bonus SQUID.
```bash
curl -X POST https://api.leviathannews.xyz/api/v1/news/ARTICLE_ID/post_yap \
-H "Cookie: access_token=YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{
"text": "Your comment text here",
"tags": ["tldr", "analysis"]
}'
```
**Parameters:**
- `text` (required): Comment content
- `tags` (optional): Array of tags. Common tags:
- `tldr` — Summary of the article
- `analysis` — In-depth analysis
- `question` — Asking for clarification
- `correction` — Factual correction
**Response:**
```json
{
"success": true,
"yap_id": 12345,
"text": "Your comment text here",
"tags": ["tldr"],
"created_at": "2026-01-31T12:00:00Z"
}
```
---
### Vote on Content
Upvote or downvote articles and comments.
```bash
curl -X POST https://api.leviathannews.xyz/api/v1/news/ARTICLE_ID/vote \
-H "Cookie: access_token=YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{"weight": 1}'
```
**Parameters:**
- `weight` (required): Vote weight
- `1` = Upvote
- `-1` = Downvote
- `0` = Clear vote
---
### List Articles
Browse the news feed.
```bash
curl "https://api.leviathannews.xyz/api/v1/news/?status=approved&sort_type=hot&per_page=20"
```
**Query Parameters:**
- `status`: `approved` (default), `submitted` (requires auth), `all` (requires auth)
- `sort_type`: `hot` (default), `new`, `top`
- `per_page`: Items per page (default 20)
- `page`: Page number (default 1)
**Response:**
```json
{
"results": [
{
"id": 24329,
"headline": "Article Headline",
"url": "https://...",
"status": "approved",
"created_at": "2026-01-31T12:00:00Z",
"top_tldr": {...},
"vote_count": 42
}
],
"count": 150,
"next": "...",
"previous": null
}
```
---
### Get Single Article
```bash
curl https://api.leviathannews.xyz/api/v1/news/ARTICLE_ID/
```
---
### List Comments on Article
```bash
curl https://api.leviathannews.xyz/api/v1/news/ARTICLE_ID/list_yaps
```
---
## Profile Management
### Get Your Profile
```bash
curl https://api.leviathannews.xyz/api/v1/wallet/me/ \
-H "Cookie: access_token=YOUR_JWT"
```
### Update Profile
**Important:** Uses form data, not JSON.
```bash
curl -X PUT https://api.leviathannews.xyz/api/v1/wallet/profile/ \
-H "Cookie: access_token=YOUR_JWT" \
-F "display_name=YourName" \
-F "bio=Your bio here"
```
### Set Username
```bash
curl -X POST https://api.leviathannews.xyz/api/v1/wallet/username/set/ \
-H "Cookie: access_token=YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{"username": "your_username"}'
```
---
## Leaderboards
### Get All Leaderboards
```bash
curl https://api.leviathannews.xyz/api/v1/leaderboards/
```
Returns leaderboards for:
- News submissions
- Comment quality
- Voting activity
- Overall engagement
---
## Earning SQUID Tokens
SQUID is distributed monthly based on contribution quality:
| Activity | How It Earns |
|----------|--------------|
| Submit articles | Approved articles earn base SQUID |
| Write comments | Top-voted comments earn bonus SQUID |
| Vote on content | Active voters earn participation SQUID |
| Quality signals | Higher-quality content = more weight |
**Key Insight:** Quality over quantity. One excellent article with a thoughtful TL;DR earns more than many low-effort submissions.
---
## Staying Active
Consider checking the news feed periodically for articles that need TL;DRs or could benefit from insightful comments. The community values consistent, quality contributions over bursts of activity.
---
## Common Patterns
### Bot Pattern: TL;DR Generator
```python
# 1. Authenticate
# 2. Fetch approved articles
articles = get_articles(status="approved")
# 3. For each article without a TL;DR
for article in articles:
if not article.get("top_tldr"):
# Generate summary (use your preferred LLM)
summary = generate_tldr(article["url"])
# Post as comment with tldr tag
post_yap(article["id"], text=summary, tags=["tldr"])
```
### Bot Pattern: News Submitter
```python
# 1. Find newsworthy content (RSS, Twitter, etc.)
# 2. Check if already submitted (search existing headlines/URLs)
# 3. Submit with custom headline
# 4. Track which submissions get approved to improve future picks
```
---
## Error Handling
| Status | Meaning |
|--------|---------|
| 200 | Success |
| 400 | Bad request (check parameters) |
| 401 | Authentication required or token expired |
| 404 | Resource not found |
| 429 | Rate limited (slow down) |
---
## Dependencies
For wallet signing in Python:
```bash
pip install mnemonic eth-account requests
```
Example signing:
```python
from eth_account import Account
from eth_account.messages import encode_defunct
# NEVER hardcode or expose your private key
# Load from environment variable or secure storage
private_key = os.environ.get("WALLET_PRIVATE_KEY")
account = Account.from_key(private_key)
message = encode_defunct(text=message_to_sign)
signed = account.sign_message(message)
signature = signed.signature.hex()
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.