sp3nd
БесплатноБез исполняемых скриптовНе проверенBuy Amazon and eBay products with USDC on Solana via SP3ND x402 payments. Use when paying for real-world goods with crypto (e.g. order this Amazon listing…
от Starchild-ai-agent★ 34 звезды на GitHubОб этом скилле
SP3ND — Autonomous Amazon/eBay Shopping with USDC on Solana
SP3ND lets an AI agent buy real products from Amazon and eBay using USDC on Solana. No KYC, no accounts, 0% platform fee, free Prime shipping on eligible Amazon items.
Full API docs: https://sp3nd.shop/partner-api/docs
SKILL.md: https://sp3nd.shop/skill.md
Base URL: https://us-central1-sp3nddotshop-prod.cloudfunctions.net
Prerequisites
- Solana wallet with USDC balance (mint:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) soldersandsolanaPython packages (pip install solders solana)- SP3ND API credentials in
.env(obtained via Step 1 below)
Step 1: Register Agent (one-time)
Self-registration — no approval queue. Credentials are shown once; save immediately.
import urllib.request, json
BASE_URL = "https://us-central1-sp3nddotshop-prod.cloudfunctions.net"
wallet_pubkey = "<your Solana wallet pubkey>"
payload = json.dumps({
"agent_name": "My Agent",
"solana_public_key": wallet_pubkey,
"contact_email": "[email protected]",
"description": "Autonomous shopping agent"
}).encode()
req = urllib.request.Request(
f"{BASE_URL}/registerAgent",
data=payload,
headers={"Content-Type": "application/json"},
method="POST"
)
with urllib.request.urlopen(req, timeout=15) as r:
d = json.loads(r.read())
print(d["api_key"], d["api_secret"]) # save both to .env
Save to .env:
SP3ND_API_KEY=sp3nd_...
SP3ND_API_SECRET=sp3nd_sec_...
Step 2: Pick the Correct Amazon/eBay TLD
Critical: Use the marketplace TLD that matches the shipping country. Wrong TLD = failed order or wrong pricing.
Amazon TLD by Region
| TLD | Countries covered |
|---|---|
amazon.com |
US, and default fallback |
amazon.co.uk |
GB, IE |
amazon.de |
DE, AT, CH, and much of Europe |
amazon.fr |
FR |
amazon.it |
IT |
amazon.es |
ES |
amazon.nl |
NL, BE |
amazon.pl |
PL |
amazon.se |
SE |
amazon.com.tr |
TR |
amazon.co.jp |
JP |
amazon.com.au |
AU, NZ |
amazon.in |
IN |
amazon.sg |
SG, MY, TH, VN, ID, PH, MM, BN, KH, LA |
amazon.ae |
AE, OM, BH, KW, QA, JO, IQ, LB |
amazon.sa |
SA, YE |
amazon.eg |
EG |
amazon.com.br |
BR |
amazon.com.mx |
MX |
amazon.ca |
CA |
eBay TLD by Region
| TLD | Countries |
|---|---|
ebay.com |
US (default) |
ebay.co.uk |
GB |
ebay.de |
DE, AT, CH |
ebay.fr |
FR |
ebay.it |
IT |
ebay.es |
ES |
ebay.com.au |
AU |
ebay.ca |
CA |
Step 3: Create Cart
API_KEY = os.environ["SP3ND_API_KEY"]
API_SECRET = os.environ["SP3ND_API_SECRET"]
HEADERS = {"Content-Type": "application/json", "X-API-Key": API_KEY, "X-API-Secret": API_SECRET}
payload = json.dumps({
"items": [{"product_url": "https://www.amazon.sg/dp/ASIN", "quantity": 1}]
}).encode()
req = urllib.request.Request(f"{BASE_URL}/createPartnerCart", data=payload, headers=HEADERS, method="POST")
with urllib.request.urlopen(req, timeout=20) as r:
cart = json.loads(r.read())
cart_id = cart["cart"]["cart_id"]
total = cart["cart"]["total_amount"] # in USD = USDC amount needed
Step 4: Create Order
payload = json.dumps({
"cart_id": cart_id,
"customer_email": "[email protected]", # required
"shipping_address": {
"name": "Full Name",
"address_line1": "Street address",
"address_line2": "Unit/suburb", # optional
"city": "City",
"state": "State/province",
"zip": "Postal code",
"country": "ISO 2-letter code (e.g. MY, US, GB)",
"phone": "+1234567890"
}
}).encode()
req = urllib.request.Request(f"{BASE_URL}/createPartnerOrder", data=payload, headers=HEADERS, method="POST")
with urllib.request.urlopen(req, timeout=20) as r:
order = json.loads(r.read())
order_id = order["order"]["order_id"]
order_number = order["order"]["order_number"]
total_amount = order["order"]["total_amount"]
Step 5: Build & Sign the Payment Transaction
This is the tricky part. SP3ND uses x402 v2 protocol. When you call payAgentOrder it returns HTTP 402 with payment requirements. You must:
- Find the treasury's actual USDC token account (ATA) on-chain — do NOT derive it, fetch it
- Build a transaction with two instructions: USDC
transferChecked+ a Memo withSP3ND Order: <order_number> - The Memo is mandatory — without it SP3ND's webhook cannot match the payment to your order
- Sign and broadcast directly via Solana RPC
import base64, struct, urllib.request, json
from solders.pubkey import Pubkey
from solders.hash import Hash
from solders.message import Message
from solders.transaction import Transaction
from solders.instruction import Instruction, AccountMeta
from solana.rpc.api import Client
USDC_MINT = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEG
Установить sp3nd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sp3nd?
Buy Amazon and eBay products with USDC on Solana via SP3ND x402 payments. Use when paying for real-world goods with crypto (e.g. order this Amazon listing, buy eBay item, ship to Tokyo with USDC).
Как установить скилл sp3nd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sp3nd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic