nexus-document-extract
SKILL.md
Document Extractor
NEXUS Agent-as-a-Service on Cardano + Stellar | Price: $0.30/request | Accepts: ADA, DJED, iUSD, USDCx, USDM (Cardano) + USDC, XLM (Stellar)
When to use
Use when you need to extract structured data from text documents.
Steps
Option A: x402 Standard (Recommended)
- Call the service endpoint without payment headers.
- Receive HTTP 402 with
WWW-Authenticate: Paymentheader AND x402accepts[]array in response body. - Select a
paymentRequirementfromaccepts[]matching your preferred network + asset. - Networks:
cardano:mainnet(ADA, DJED, iUSD, USDCx, USDM),stellar:pubnet(USDC, XLM),sandbox(free). - Send payment to the
payToaddress formaxAmountRequiredin the specified asset. - Stellar fee sponsorship: POST your signed XDR to
https://ai-service-hub-15.emergent.host/api/mpp/stellar/sponsor— NEXUS pays gas, you need 0 XLM. - Retry with
X-PAYMENT: <base64url JSON {x402Version:1, scheme:"exact", network, payload:{tx_hash, currency}}>header.