โ† All skills
Tencent SkillHub ยท Developer Tools

x402 Singularity Layer

This skill should be used when the user asks to "create x402 endpoint", "deploy monetized API", "pay for API with USDC", "check x402 credits", "consume API c...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

This skill should be used when the user asks to "create x402 endpoint", "deploy monetized API", "pay for API with USDC", "check x402 credits", "consume API c...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
requirements.txt, SKILL.md, scripts/manage_webhook.py, scripts/awal_cli.py, scripts/wallet_signing.py, scripts/erc8004_wallet_client.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.4.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 20 sections Open source page

x402 Singularity Layer

x402 is a Web3 payment layer where humans and agents can sell/consume APIs and products. This skill covers the full Singularity Layer lifecycle: pay/consume services create/manage/list endpoints receive and verify webhook payment events register agents and submit on-chain reputation feedback Networks: Base, Ethereum, Polygon, BSC, Monad, Solana Currency: USDC Protocol: HTTP 402 Payment Required

Intent Router

Use this routing first, then load the relevant reference doc. User intentPrimary scriptsReferencePay/consume endpoint or productpay_base.py, pay_solana.py, consume_credits.py, consume_product.pyreferences/pay-per-request.md, references/credit-based.mdDiscover/search marketplacediscover_marketplace.pyreferences/marketplace.mdCreate/edit/list endpointcreate_endpoint.py, manage_endpoint.py, list_on_marketplace.py, topup_endpoint.pyreferences/agentic-endpoints.md, references/marketplace.mdConfigure/verify webhooksmanage_webhook.py, verify_webhook_payment.pyreferences/webhooks-verification.mdRegister/discover/manage/rate agents (ERC-8004/Solana-8004)register_agent.py, list_agents.py, list_my_endpoints.py, update_agent.py, submit_feedback.pyreferences/agent-registry-reputation.md

1) Install Skill Dependencies

pip install -r {baseDir}/requirements.txt

2) Choose Wallet Mode

Option A: private keys export PRIVATE_KEY="0x..." export WALLET_ADDRESS="0x..." # Solana optional export SOLANA_SECRET_KEY="base58-or-[1,2,3,...]" Option B: Coinbase AWAL # Install Coinbase AWAL skill (shortcut) npx skills add coinbase/agentic-wallet-skills export X402_USE_AWAL=1 Use private-key mode for ERC-8004 wallet-first registration. AWAL remains useful for x402 payment flows. Security note: scripts read only explicit process environment variables. .env files are not auto-loaded.

Consumer

ScriptPurposepay_base.pyPay endpoint on Basepay_solana.pyPay endpoint on Solanaconsume_credits.pyConsume using creditsconsume_product.pyPurchase digital products/filescheck_credits.pyCheck credit balancerecharge_credits.pyBuy endpoint credit packsdiscover_marketplace.pyBrowse/search marketplaceawal_cli.pyRun AWAL auth/pay/discover commands

Provider

ScriptPurposecreate_endpoint.pyDeploy endpoint ($1 one-time, includes 4,000 credits)manage_endpoint.pyList/update endpoint settingstopup_endpoint.pyRecharge provider endpoint creditslist_on_marketplace.pyList/unlist/update marketplace listingmanage_webhook.pySet/remove/check endpoint webhook URLverify_webhook_payment.pyVerify webhook signature + receipt genuineness (PyJWT/JWKS)

Agent Registry + Reputation

ScriptPurposeregister_agent.pyRegister ERC-8004/Solana-8004 agent with image/version/tags and endpoint binding supportlist_agents.pyList ERC-8004 agents owned by the configured wallet or linked dashboard userlist_my_endpoints.pyList platform endpoints that can be linked to ERC-8004 agentsupdate_agent.pyUpdate existing ERC-8004/Solana-8004 agent metadata, visibility, and endpoint bindingssubmit_feedback.pySubmit on-chain reputation feedback

API Key Verification at Origin (mandatory)

When x402 proxies traffic to your origin, verify: x-api-key: <YOUR_API_KEY> Reject requests when missing/invalid.

Credit Economics (provider side)

Endpoint creation: $1 one-time Starting credits: 4,000 Top-up rate: 500 credits per $1 Consumption: 1 credit per request If credits hit 0, endpoint stops serving until recharged

A) Pay and Consume

python {baseDir}/scripts/pay_base.py https://api.x402layer.cc/e/weather-data python {baseDir}/scripts/pay_solana.py https://api.x402layer.cc/e/weather-data python {baseDir}/scripts/consume_credits.py https://api.x402layer.cc/e/weather-data

B) Discover/Search Marketplace

python {baseDir}/scripts/discover_marketplace.py python {baseDir}/scripts/discover_marketplace.py search weather

C) Create and Manage Endpoint

python {baseDir}/scripts/create_endpoint.py my-api "My API" https://api.example.com 0.01 python {baseDir}/scripts/manage_endpoint.py list python {baseDir}/scripts/manage_endpoint.py update my-api --price 0.02 python {baseDir}/scripts/topup_endpoint.py my-api 10

D) List/Update in Marketplace

python {baseDir}/scripts/list_on_marketplace.py my-api \ --category ai \ --description "AI-powered analysis" \ --logo https://example.com/logo.png \ --banner https://example.com/banner.jpg

E) Webhook Setup and Genuineness Verification

python {baseDir}/scripts/manage_webhook.py set my-api https://my-server.com/webhook python {baseDir}/scripts/manage_webhook.py info my-api python {baseDir}/scripts/manage_webhook.py remove my-api Webhook verification helper: python {baseDir}/scripts/verify_webhook_payment.py \ --body-file ./webhook.json \ --signature 't=1700000000,v1=<hex>' \ --secret '<YOUR_SIGNING_SECRET>' \ --required-source-slug my-api \ --require-receipt

F) Agent Registration + Reputation

python {baseDir}/scripts/list_my_endpoints.py python {baseDir}/scripts/register_agent.py \ "My Agent" \ "Autonomous service agent" \ --network baseSepolia \ --image https://example.com/agent.png \ --version 1.4.0 \ --tag finance \ --tag automation \ --endpoint-id <ENDPOINT_UUID> \ --custom-endpoint https://api.example.com/agent python {baseDir}/scripts/list_agents.py --network baseSepolia python {baseDir}/scripts/update_agent.py \ --network baseSepolia \ --agent-id 123 \ --version 1.4.1 \ --tag finance \ --tag automation \ --endpoint-id <ENDPOINT_UUID> \ --public # The same EVM flow also supports: # --network ethereum # --network polygon # --network bsc # --network monad python {baseDir}/scripts/submit_feedback.py \ --network base \ --agent-id 123 \ --rating 5 \ --comment "High quality responses"

References

Load only what is needed for the user task: references/pay-per-request.md: EIP-712/Solana payment flow and low-level signing details. references/credit-based.md: credit purchase + consumption behavior and examples. references/marketplace.md: search/list/unlist marketplace endpoints. references/agentic-endpoints.md: endpoint creation/top-up/status API behavior. references/webhooks-verification.md: webhook events, signature verification, and receipt cross-checks. references/agent-registry-reputation.md: ERC-8004/Solana-8004 registration, discovery, management, and feedback rules. references/payment-signing.md: exact signing domains/types/header payload details.

Environment Reference

VariableRequired forNotesPRIVATE_KEYBase private-key modeEVM signing keyWALLET_ADDRESSMost operationsPrimary walletSOLANA_SECRET_KEYSolana private-key modebase58 secret or JSON array bytesSOLANA_WALLET_ADDRESSSolana overrideoptionalWALLET_ADDRESS_SECONDARYdual-chain endpoint modeoptionalX402_USE_AWALAWAL modeset 1X402_AUTH_MODEauth selectionauto, private-key, awalX402_PREFER_NETWORKnetwork selectionbase, solanaX402_API_BASEAPI overridedefault https://api.x402layer.ccX_API_KEY / API_KEYprovider endpoint/webhook managementendpoint keyWORKER_FEEDBACK_API_KEYreputation feedbackworker auth key

API Base Paths

Endpoints: https://api.x402layer.cc/e/{slug} Marketplace: https://api.x402layer.cc/api/marketplace Credits: https://api.x402layer.cc/api/credits/* Agent routes: https://api.x402layer.cc/agent/*

Resources

Docs: https://studio.x402layer.cc/docs/agentic-access/openclaw-skill SDK docs: https://studio.x402layer.cc/docs/developer/sdk-receipts GitHub docs repo: https://github.com/ivaavimusic/SGL_DOCS_2025 x402 Studio: https://studio.x402layer.cc

Known Issue

Solana payments currently have lower reliability than Base due to facilitator-side fee payer infra. Use retry logic in pay_solana.py, and prefer Base for production-critical flows.

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Scripts1 Docs1 Files
  • SKILL.md Primary doc
  • scripts/awal_cli.py Scripts
  • scripts/erc8004_wallet_client.py Scripts
  • scripts/manage_webhook.py Scripts
  • scripts/wallet_signing.py Scripts
  • requirements.txt Files