Predexon Prediction Market Data
BlockRunAI/ClawRouter
Reads structured prediction market data for Polymarket, Kalshi and other venues through a local BlockRun gateway: markets, search, leaderboards, wallet analytics and odds.
Purchase API keys from iAutoPay Fact API using USDC on Base chain.
$ npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills iauotpay-api --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/iautopay .claude/skills/iauotpay-api && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "iauotpay-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopay into .claude/skills/iauotpay-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "iauotpay-api", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopayType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills iauotpay-api --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/iautopay .agents/skills/iauotpay-api && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "iauotpay-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopay into .agents/skills/iauotpay-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "iauotpay-api", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills iauotpay-api --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/iautopay .cursor/skills/iauotpay-api && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "iauotpay-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopay into .cursor/skills/iauotpay-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "iauotpay-api", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/iautopay--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills iauotpay-api --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/iautopay .gemini/skills/iauotpay-api && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "iauotpay-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopay into .gemini/skills/iauotpay-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "iauotpay-api", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills iauotpay-apiInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/iautopay .github/skills/iauotpay-api && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "iauotpay-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopay into .github/skills/iauotpay-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "iauotpay-api", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills iauotpay-api --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/iautopay .opencode/skills/iauotpay-api && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "iauotpay-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/iautopay into .opencode/skills/iauotpay-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "iauotpay-api", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
iauotpay-apiPurchase API keys from iAutoPay Fact API using USDC on Base chain.
Iauotpay API is an agent skill from LeoYeAI/openclaw-master-skills. Purchase API keys from iAutoPay Fact API using USDC on Base chain. Use this skill when: - Buying API keys for AI agent payment services - Managing API key subscriptions (1/7/30 days) - Checking user account information and usage statistics - Checking server information and pricing - Integrating crypto payments for API access
Its SKILL.md is about 6.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `_meta.json`).
It sits in Data & Analytics, covering Statistics and Crypto and DeFi analysis. It works with Circle USDC. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlbunpythonpipFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
apipaymcp.okart.funipaynapi.gpuart.cnsepolia.base.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Iauotpay API loads about 6.5k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 911 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
# Or in .env fileecho "AUTOPAY_PKEY=0x..." > .env- Use `dotenv` to load from `.env` fileAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 911 words, ~6,463 tokens.
.claude/skills/iauotpay-api/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Base URLs:
https://apipaymcp.okart.fun (Payment API)http://ipaynapi.gpuart.cn (User Management & API Keys)0x036CbD53842c5426634e7929541eC2318f3dCF7e (USDC)0x1a85156c2943b63febeee7883bd84a7d1cf0da0c| Duration | Price (USDC) |
|---|---|
| 1 day | 0.09 |
| 7 days | 0.49 |
| 30 days | 0.99 |
Get current server status, pricing, and configuration.
curl "https://apipaymcp.okart.fun/info"Response:
{
"name": "iAutoPay Fact API",
"version": "0.1.0",
"environment": "dev",
"network": "eip155:84532",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"prices": {
"1day": "90000",
"1dayUsdc": 0.09,
"7days": "490000",
"7daysUsdc": 0.49,
"30days": "990000",
"30daysUsdc": 0.99
},
"payee": "0x1a85156c2943b63febeee7883bd84a7d1cf0da0c",
"bypassPayment": false,
"paymentScheme": "exact"
}Buy an API key with specified duration. Payment is handled via EIP-3009 signed payment in the request header.
curl -X POST "https://apipaymcp.okart.fun/v1/buy-apikey" \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: '{\"from\":\"0x...\",\"to\":\"0x...\",\"value\":\"90000\",\"validAfter\":\"0\",\"validBefore\":\"1738368000\",\"nonce\":\"0x...\",\"v\":27,\"r\":\"0x...\",\"s\":\"0x...\"}'" \
-d '{"duration": 7}'Request Body:
{
"duration": 7
}Headers:
| Header | Type | Required | Description |
|---|---|---|---|
| Content-Type | string | Yes | "application/json" |
| PAYMENT-SIGNATURE | string | Yes | EIP-3009 signed payment payload (JSON string) |
PAYMENT-SIGNATURE Payload:
{
"from": "0x1234567890abcdef1234567890abcdef12345678",
"to": "0x1a85156c2943b63febeee7883bd84a7d1cf0da0c",
"value": "490000",
"validAfter": "0",
"validBefore": "1738368000",
"nonce": "0xabc123...",
"v": 27,
"r": "0x...",
"s": "0x..."
}Duration Options:
| Value | Duration | Price |
|---|---|---|
| 1 | 1 day | 0.09 USDC |
| 7 | 7 days | 0.49 USDC |
| 30 | 30 days | 0.99 USDC |
Response:
{
"apiKey": "sk-7ac3d7c8fed74b0a8ae8f949e017e9f5",
"txHash": "0x1f62f45e5ae6e8cd637048d0f099d324f749f61d35906ffe481e36e92689769b",
"payState": "paid",
"durationDays": 7,
"transactionId": "ed66d250-7353-473d-bc73-0bd7541f40c0"
}Response Fields:
| Field | Type | Description |
|---|---|---|
| apiKey | string | Your API key (use this for authentication) |
| txHash | string | Blockchain transaction hash |
| payState | string | Payment status ("paid") |
| durationDays | number | API key duration in days |
| transactionId | string | Unique transaction ID |
Pay USDC to any address using EIP-3009 off-chain signature.
Get your user account information, API keys, and usage statistics. Requires authentication with your API key.
curl "http://ipaynapi.gpuart.cn/user/me" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"success": true,
"data": {
"user": {
"id": "user_xxx",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"createdAt": 1772072451317,
"lastPurchasedAt": 1772072457962,
"status": "active",
"totalPurchases": 2
},
"activeApiKeys": 2,
"totalSpent": 1480000,
"apiKeys": [
{
"apiKey": "sk-xxx",
"durationDays": 7,
"createdAt": "2026-02-26T02:01:12.904Z",
"expiresAt": "2026-03-05T02:01:12.904Z",
"status": "active"
}
],
"recentTransactions": [...]
}
}Note: The first purchase automatically creates your user account. No separate registration is required!
Get all API keys for your user account. Requires authentication with your API key.
curl "http://ipaynapi.gpuart.cn/user/my-keys" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"success": true,
"count": 2,
"data": [
{
"apiKey": "sk-xxx",
"durationDays": 7,
"createdAt": "2026-02-26T02:01:12.904Z",
"expiresAt": "2026-03-05T02:01:12.904Z",
"status": "active"
}
]
}Pay USDC to any address using EIP-3009 off-chain signature.
curl -X POST "https://apipaymcp.okart.fun/v1/transfer" \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: '{\"from\":\"0x...\",\"to\":\"0x...\",\"value\":\"10000\",\"validAfter\":\"0\",\"validBefore\":\"1738368000\",\"nonce\":\"0x...\",\"v\":27,\"r\":\"0x...\",\"s\":\"0x...\"}'" \
-d '{"to": "0x1234567890abcdef1234567890abcdef12345678", "amount": "10000", "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"}'Request Body:
{
"to": "0x1234567890abcdef1234567890abcdef12345678",
"amount": "10000",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
}Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | Recipient wallet address |
| amount | string | Yes | Amount in smallest unit (10000 = 0.01 USDC) |
| asset | string | Yes | Token contract address (USDC on Base Sepolia) |
Headers:
| Header | Type | Required | Description |
|---|---|---|---|
| Content-Type | string | Yes | "application/json" |
| PAYMENT-SIGNATURE | string | Yes | EIP-3009 signed payment payload (JSON string) |
Response:
{
"success": true,
"transactionHash": "0x1234567890abcdef...",
"from": "0xabcdef1234567890abcdef1234567890abcdef12",
"to": "0x1234567890abcdef1234567890abcdef12345678",
"amount": "0.010000",
"deductedAmount": "0.010000 USDC",
"currentBalance": "9.990000 USDC"
}The iAutoPay system now includes automatic user registration. When you purchase an API key for the first time, a user account is automatically created and linked to your wallet address.
/v1/buy-apikey with your signed payment/user/me to view account detailsNo separate registration step is required!
Get your user account information, API keys, and usage statistics.
curl "http://ipaynapi.gpuart.cn/user/me" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"success": true,
"data": {
"user": {
"id": "user_xxx",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"createdAt": 1772072451317,
"lastPurchasedAt": 1772072457962,
"status": "active",
"totalPurchases": 2
},
"activeApiKeys": 2,
"totalSpent": 1480000,
"apiKeys": [
{
"apiKey": "sk-xxx",
"durationDays": 7,
"createdAt": "2026-02-26T02:01:12.904Z",
"expiresAt": "2026-03-05T02:01:12.904Z",
"status": "active"
}
],
"recentTransactions": [...]
}
}Get all API keys for your user account.
curl "http://ipaynapi.gpuart.cn/user/my-keys" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"success": true,
"count": 2,
"data": [
{
"apiKey": "sk-xxx",
"durationDays": 7,
"createdAt": "2026-02-26T02:01:12.904Z",
"expiresAt": "2026-03-05T02:01:12.904Z",
"status": "active"
}
]
}Refresh pricing information from server (cached).
curl "https://apipaymcp.okart.fun/refresh_pricing"Response:
{
"success": true,
"prices": {
"1day": "90000",
"1dayUsdc": 0.09,
"7days": "490000",
"7daysUsdc": 0.49,
"30days": "990000",
"30daysUsdc": 0.99
},
"updatedAt": "2026-02-25T12:00:00Z"
}
Get your user account information, API keys, and usage statistics. Requires authentication with your API key.
curl "http://ipaynapi.gpuart.cn/user/me" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"success": true,
"data": {
"user": {
"id": "user_xxx",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"createdAt": 1772072451317,
"lastPurchasedAt": 1772072457962,
"status": "active",
"totalPurchases": 2
},
"activeApiKeys": 2,
"totalSpent": 1480000,
"apiKeys": [
{
"apiKey": "sk-xxx",
"durationDays": 7,
"createdAt": "2026-02-26T02:01:12.904Z",
"expiresAt": "2026-03-05T02:01:12.904Z",
"status": "active"
}
],
"recentTransactions": [...]
}
}Note: The first purchase automatically creates your user account. No separate registration is required!
Get all API keys for your user account. Requires authentication with your API key.
curl "http://ipaynapi.gpuart.cn/user/my-keys" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"success": true,
"count": 2,
"data": [
{
"apiKey": "sk-xxx",
"durationDays": 7,
"createdAt": "2026-02-26T02:01:12.904Z",
"expiresAt": "2026-03-05T02:01:12.904Z",
"status": "active"
}
]
}The Fact API uses EIP-3009 (Transfer With Authorization) for off-chain payment signing. This means you don't need to send an on-chain transaction first - you sign a payment authorization and include it in the API request.
Steps:
/info to get the payee address and USDC contract address/v1/buy-apikey with signed payment in the PAYMENT-SIGNATURE header/user/me endpoint with your API key to check account detailsImportant: Auto-Registration
User Management Endpoints (napi-ser):
GET /user/me - Get user information, API keys, and statisticsGET /user/my-keys - List all API keys for your accountEIP-3009 Signature Requirements:
USDC Contract: 0x036CbD53842c5426634e7929541eC2318f3dCF7e (Base Sepolia)
Payee: 0x1a85156c2943b63febeee7883bd84a7d1cf0da0c
This skill includes ready-to-use CLI scripts for all endpoints.
Dependencies:
# TypeScript/Bun
bun add viem dotenv
# Python
pip install web3 requests python-dotenv# Python
python scripts/info.py
# TypeScript/Bun
bun run scripts/info.ts# Python
python scripts/get_address.py
# TypeScript/Bun
bun run scripts/get_address.ts# Python
python scripts/buy_apikey.py --duration 7
# TypeScript/Bun
bun run scripts/buy_apikey.ts --duration 7# Python
python scripts/refresh_pricing.py
# TypeScript/Bun
bun run scripts/refresh_pricing.tsimport requests
def get_info():
response = requests.get("https://apipaymcp.okart.fun/info")
return response.json()
if __name__ == "__main__":
info = get_info()
print(f"Environment: {info['environment']}")
print(f"Network: {info['network']}")
print(f"Payee: {info['payee']}")
print(f"Asset: {info['asset']}")
print(f"Pricing:")
for key, value in info['prices'].items():
print(f" {key}: {value}")from web3 import Web3
import os
def get_address(private_key: str = None):
if private_key is None:
private_key = os.environ.get('AUTOPAY_PKEY')
if not private_key:
raise ValueError("AUTOPAY_PKEY environment variable not set")
w3 = Web3()
account = w3.eth.account.from_key(private_key)
return account.address
if __name__ == "__main__":
address = get_address()
print(f"Your Wallet Address: {address}")import requests
from web3 import Web3
import json
import time
import os
def buy_apikey(duration: int, private_key: str = None):
if private_key is None:
private_key = os.environ.get('AUTOPAY_PKEY')
if not private_key:
raise ValueError("AUTOPAY_PKEY environment variable not set")
w3 = Web3(Web3.HTTPProvider("https://sepolia.base.org"))
account = w3.eth.account.from_key(private_key)
# Step 1: Get payment quote
info_response = requests.get("https://apipaymcp.okart.fun/info")
info = info_response.json()
payee_address = info['payee']
usdc_address = info['asset']
price_in_usdc = info['prices'][f'{duration}daysUsdc']
# USDC uses 6 decimals
amount = int(price_in_usdc * 10 ** 6)
# Step 2: Create EIP-3009 signature
# For Base Sepolia USDC: name="USDC", version="2"
domain = {
"name": "USDC",
"version": "2",
"chainId": 84532,
"verifyingContract": usdc_address
}
message_types = {
"TransferWithAuthorization": [
{"name": "from", "type": "address"},
{"name": "to", "type": "address"},
{"name": "value", "type": "uint256"},
{"name": "validAfter", "type": "uint256"},
{"name": "validBefore", "type": "uint256"},
{"name": "nonce", "type": "bytes32"}
]
}
nonce = os.urandom(32).hex()
now = int(time.time())
valid_after = 0
valid_before = now + 28800 # 8 hours
message = {
"from": account.address,
"to": payee_address,
"value": amount,
"validAfter": valid_after,
"validBefore": valid_before,
"nonce": f"0x{nonce}"
}
# Sign typed data
signed_message = w3.eth.account.sign_typed_data(
private_key=private_key,
domain=domain,
message_types=message_types,
message=message
)
signature_payload = {
"from": account.address,
"to": payee_address,
"value": str(amount),
"validAfter": str(valid_after),
"validBefore": str(valid_before),
"nonce": f"0x{nonce}",
"v": signed_message.v,
"r": signed_message.r.hex(),
"s": signed_message.s.hex()
}
# Step 3: Call buy-apikey with EIP-3009 signature
buy_response = requests.post(
"https://apipaymcp.okart.fun/v1/buy-apikey",
headers={
"Content-Type": "application/json",
"PAYMENT-SIGNATURE": json.dumps(signature_payload)
},
json={"duration": duration}
)
if buy_response.status_code != 200:
raise Exception(f"Buy API key failed: {buy_response.text}")
return {
"apiKey": buy_response.json()['apiKey'],
"txHash": buy_response.json()['txHash'],
"payState": buy_response.json()['payState'],
"durationDays": buy_response.json()['durationDays'],
"transactionId": buy_response.json()['transactionId']
}
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--duration", type=int, choices=[1, 7, 30], required=True)
args = parser.parse_args()
result = buy_apikey(args.duration)
print(json.dumps(result, indent=2))import requests
def refresh_pricing():
response = requests.get("https://apipaymcp.okart.fun/refresh_pricing")
return response.json()
if __name__ == "__main__":
pricing = refresh_pricing()
print(f"Pricing updated at: {pricing.get('updatedAt', 'N/A')}")
if 'prices' in pricing:
print(f"1 day: ${pricing['prices']['1dayUsdc']} USDC")
print(f"7 days: ${pricing['prices']['7daysUsdc']} USDC")
print(f"30 days: ${pricing['prices']['30daysUsdc']} USDC")async function getInfo() {
const response = await fetch("https://apipaymcp.okart.fun/info");
return response.json();
}
const info = await getInfo();
console.log(`Environment: ${info.environment}`);
console.log(`Network: ${info.network}`);
console.log(`Payee: ${info.payee}`);
console.log(`Asset: ${info.asset}`);
console.log("Pricing:");
Object.entries(info.prices).forEach(([key, value]) => {
console.log(` ${key}: ${value}`);
});import { privateKeyToAccount } from "viem/accounts";
function getAddress(privateKey?: `0x${string}`): string {
const key = privateKey || (process.env.AUTOPAY_PKEY as `0x${string}`);
if (!key) {
throw new Error("AUTOPAY_PKEY environment variable not set");
}
const account = privateKeyToAccount(key);
return account.address;
}
const address = getAddress();
console.log(`Your Wallet Address: ${address}`);import { createWalletClient, http, parseUnits } from "viem";
import { baseSepolia } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";
import crypto from "crypto";
const transferWithAuthorizationTypes = {
TransferWithAuthorization: [
{ name: "from", type: "address" },
{ name: "to", type: "address" },
{ name: "value", type: "uint256" },
{ name: "validAfter", type: "uint256" },
{ name: "validBefore", type: "uint256" },
{ name: "nonce", type: "bytes32" },
],
} as const;
async function buyApikey(duration: number, privateKey: `0x${string}` | undefined = undefined) {
const key = privateKey || (process.env.AUTOPAY_PKEY as `0x${string}`)
if (!key) {
throw new Error("AUTOPAY_PKEY environment variable not set")
}
const account = privateKeyToAccount(key);
const client = createWalletClient({
account,
chain: baseSepolia,
transport: http()
});
// Step 1: Get payment quote
const infoResponse = await fetch("https://apipaymcp.okart.fun/info");
const info = await infoResponse.json();
const payeeAddress = info.payee as `0x${string}`;
const usdcAddress = info.asset as `0x${string}`;
const priceInUsdc = info.prices[`${duration}daysUsdc`];
// USDC uses 6 decimals
const amount = parseUnits(priceInUsdc.toString(), 6);
// Step 2: Create EIP-3009 signature
// For Base Sepolia USDC: name="USDC", version="2"
const nonce = `0x${crypto.randomBytes(32).toString("hex")}` as `0x${string}`;
const now = Math.floor(Date.now() / 1000);
const validAfter = BigInt(0);
const validBefore = BigInt(now + 28800); // 8 hours
const signature = await client.signTypedData({
domain: {
name: "USDC",
version: "2",
chainId: 84532,
verifyingContract: usdcAddress,
},
types: transferWithAuthorizationTypes,
primaryType: "TransferWithAuthorization",
message: {
from: account.address,
to: payeeAddress,
value: amount,
validAfter,
validBefore,
nonce,
},
});
const signaturePayload = {
from: account.address,
to: payeeAddress,
value: amount.toString(),
validAfter: validAfter.toString(),
validBefore: validBefore.toString(),
nonce,
v: Number((signature.slice(-2) as `0x${string}`)),
r: signature.slice(0, 66) as `0x${string}`,
s: `0x${signature.slice(66, 130)}` as `0x${string}`
};
// Step 3: Call buy-apikey with EIP-3009 signature
const buyResponse = await fetch("https://apipaymcp.okart.fun/v1/buy-apikey", {
method: "POST",
headers: {
"Content-Type": "application/json",
"PAYMENT-SIGNATURE": JSON.stringify(signaturePayload)
},
body: JSON.stringify({ duration })
});
if (buyResponse.status !== 200) {
throw new Error(`Buy API key failed: ${await buyResponse.text()}`);
}
const buyData = await buyResponse.json();
return {
apiKey: buyData.apiKey,
txHash: buyData.txHash,
payState: buyData.payState,
durationDays: buyData.durationDays,
transactionId: buyData.transactionId
};
}async function refreshPricing() {
const response = await fetch("https://apipaymcp.okart.fun/refresh_pricing");
return response.json();
}
const pricing = await refreshPricing();
console.log(`Updated: ${pricing.updatedAt}`);
if (pricing.prices) {
console.log(`1 day: $${pricing.prices['1dayUsdc']} USDC`);
console.log(`7 days: $${pricing.prices['7daysUsdc']} USDC`);
console.log(`30 days: $${pricing.prices['30daysUsdc']} USDC`);
}// 1. Check server info and pricing
const info = await fetch("https://apipaymcp.okart.fun/info").then(r => r.json());
console.log(`Current pricing: ${JSON.stringify(info.prices)}`);
console.log(`Payee address: ${info.payee}`);
console.log(`USDC contract: ${info.asset}`);
// 2. Create EIP-3009 signature
const privateKey = process.env.AUTOPAY_PKEY as `0x${string}`
const account = privateKeyToAccount(privateKey);
const client = createWalletClient({
account,
chain: baseSepolia,
transport: http()
});
const nonce = `0x${crypto.randomBytes(32).toString("hex")}`;
const now = Math.floor(Date.now() / 1000);
const validAfter = BigInt(0);
const validBefore = BigInt(now + 28800); // 8 hours
const amount = parseUnits("0.49", 6); // for 7-day key
const signature = await client.signTypedData({
domain: {
name: "USDC",
version: "2",
chainId: 84532,
verifyingContract: info.asset,
},
types: transferWithAuthorizationTypes,
primaryType: "TransferWithAuthorization",
message: {
from: account.address,
to: info.payee,
value: amount,
validAfter,
validBefore,
nonce,
},
});
const signaturePayload = {
from: account.address,
to: info.payee,
value: amount.toString(),
validAfter: validAfter.toString(),
validBefore: validBefore.toString(),
nonce,
v: Number((signature.slice(-2) as `0x${string}`)),
r: signature.slice(0, 66) as `0x${string}`,
s: `0x${signature.slice(66, 130)}` as `0x${string}`
};
// 3. Buy API key with EIP-3009 signature
const purchase = await fetch("https://apipaymcp.okart.fun/v1/buy-apikey", {
method: "POST",
headers: {
"Content-Type": "application/json",
"PAYMENT-SIGNATURE": JSON.stringify(signaturePayload)
},
body: JSON.stringify({
duration: 7
})
}).then(r => r.json());
console.log(` API Key: ${result.apiKey}`);
console.log(` TX Hash: ${result.txHash}`);
console.log(` Pay State: ${result.payState}`);
console.log(` Duration: ${result.durationDays} days`);
console.log(` Transaction ID: ${result.transactionId}`);All endpoints return errors as:
{
"code": "PAYMENT_FAILED",
"message": "Insufficient USDC balance",
"details": { "required": "0.49", "available": "0.25" }
}Common error codes:
INVALID_DURATION (400) - Duration must be 1, 7, or 30PAYMENT_FAILED (402) - Payment transaction failedINSUFFICIENT_BALANCE (402) - Not enough USDC in walletRATE_LIMITED (429) - Too many requestsINTERNAL_ERROR (500) - Server errorNever commit private keys to version control!
Auto-Registration Security:
/user/me endpoint with your API keyRecommended approaches:
Environment Variables (Recommended)
# Set in shell
export AUTOPAY_PKEY="0x..."
# Or in .env file
echo "AUTOPAY_PKEY=0x..." > .envCLI Arguments (For testing)
# Use AUTOPAY_PKEY environment variable
export AUTOPAY_PKEY="0x..."
python scripts/buy_apikey.py --duration 7
bun run scripts/buy_apikey.ts --duration 7For Skill Implementation
dotenv to load from .env fileBest Practices:
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/iautopay of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Iauotpay API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Iauotpay API this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~6.5k | Automated safety check: Notes | MIT | |
| Predexon Prediction Market DataBlockRunAI/ClawRouter | 6.6k | — | ~4.7k | Automated safety check: Pass | MIT | |
| Stablecoin Flow AnalysisHKUDS/Vibe-Trading | 35k | — | ~2.5k | Automated safety check: Pass | MIT | |
| Surf Crypto Data APIBlockRunAI/blockrun-mcp | 391 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Sandbox Benchvercel/next.js | 143k | — | ~4.1k | Automated safety check: Pass | MIT | |
| Statistical Analysisspacering-net/codeg | 3.9k | 3 repos | ~5k | Automated safety check: Pass | MIT |
BlockRunAI/ClawRouter
Reads structured prediction market data for Polymarket, Kalshi and other venues through a local BlockRun gateway: markets, search, leaderboards, wallet analytics and odds.
HKUDS/Vibe-Trading
Reads crypto market liquidity from stablecoin supply changes, USDT and USDC mint and burn events, exchange reserves and velocity, to time capital rotation.
BlockRunAI/blockrun-mcp
Routes crypto market, on-chain, wallet and prediction-market lookups to the Surf data API through a local ClawRouter, paid per call.
vercel/next.js
Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…
spacering-net/codeg
Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.
zLanqing/codex-claude-academic-skills
Statistical models library for Python. An agent skill from zLanqing/codex-claude-academic-skills.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Works with
Categories
Purchase API keys from iAutoPay Fact API using USDC on Base chain. Iauotpay API is an agent skill from LeoYeAI/openclaw-master-skills. Purchase API keys from iAutoPay Fact API using USDC on Base chain.
Iauotpay API fits situations like: tasks that involve Statistics; tasks that involve Crypto and DeFi analysis.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a claude-code`. Or copy the skill folder (skills/iautopay in LeoYeAI/openclaw-master-skills) into .claude/skills/iauotpay-api in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a codex`. Or copy the skill folder (skills/iautopay in LeoYeAI/openclaw-master-skills) into .agents/skills/iauotpay-api in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill iauotpay-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/iauotpay-api, .gemini/skills/iauotpay-api, .github/skills/iauotpay-api and .opencode/skills/iauotpay-api in your project.
Going by SKILL.md and its folder, Iauotpay API needs the command-line tools its instructions call (curl, bun, python and pip). Our summary lists: Python 3; A credential in YOUR_API_KEY.
SKILL.md names 3 domains. In commands or code: apipaymcp.okart.fun, ipaynapi.gpuart.cn and sepolia.base.org; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Iauotpay API is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.5k tokens (SKILL.md is roughly 26k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Iauotpay API: Predexon Prediction Market Data (BlockRunAI/ClawRouter, 6.6k stars), Stablecoin Flow Analysis (HKUDS/Vibe-Trading, 35k stars), Surf Crypto Data API (BlockRunAI/blockrun-mcp, 391 stars) and Sandbox Bench (vercel/next.js, 143k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,160 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.