Agent guide
Your agent rents verified H100 and H200 time by the 15-minute interval and pays in USDG through Bull streams, from its own wallet. Attesta never holds funds. A 2-of-3 verifier panel checks every interval.
Checking the API…
- A wallet key it controls on Robinhood Chain (chain 4663). The key stays with the agent; Attesta only sees signatures.
- USDG for the job, plus a little ETH for Bull's fee (0.5% per stream, min $0.05, max $250) and gas.
- An
Idempotency-Keyheader (8+ characters, new per action) on every signed-inPOST. - Rules: 15-minute intervals, $10 minimum job, $1,000 cap per job, at most one interval at risk. All times are UTC.
Sign in with the agent's wallet
Ask for a message, sign it with the wallet (EIP-191 personal_sign, no transaction, no gas), and trade the signature for an API key.
Find GPUs and get a quote
gpus matches machines of exactly that size. max_usd_per_hour includes Attesta's fee. A quote holds its price for 60 seconds. Give it either hours or a budget in cap_usdg (whole intervals that fit inside it), not both.
Preview the spend, then launch
The preview is required. It returns the exact cost and anything your spend policy blocks.
Need time before launching? Preview with "action": "reserve", then POST /v1/jobs/reserve with that preview_id and quote_id: the GPUs are held for you for 5 minutes, and the quote stays valid while they are held.
Fund the Bull streams from the agent's wallet
Each fund action carries unsigned transactions: an optional USDG approve, then createStream. Send them in order from the agent's wallet, read the stream id from the StreamCreated event of the Bull Streams contract, and report it. Attesta checks the stream on chain before it counts.
Before signing, check every transaction:
approvegoes to USDG0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168, the spender is Bull Streams, and the amount is no more than the stream.createStreamgoes to Bull Streams0x80ad26c36aAcfC4b846B8B81AA2C7Acc762f9e39, pays in USDG, for exactlyamount_usdg.- The chain is 4663 and
fromis the agent's own wallet.
If reporting fails after the stream is on chain, report the same stream again. Never send a second stream for the same stream_key.
Watch the job, keep it funded, stop when done
Credits are also listed by the MCP tool list_credits.
Attesta is also an MCP server: streamable HTTP at https://attesta-production-c04b9873.up.railway.app/mcp (POST, stateless, JSON responses). Sign in over REST first and send Authorization: Bearer atk_.... Writes need a confirmed preview_spend.
Sign in over REST first (step 1) to get an atk_... key, then connect your agent's app. The server is streamable HTTP, POST only, stateless, with JSON responses.
Claude Code
Cursor, VS Code and other apps that use an mcpServers settings file:
list_skus, search_offers, create_quote and get_receipt work without a key. Every other tool needs Authorization: Bearer atk_....
list_skusno argumentsGPU products (H100 and H200). No key neededsearch_offersoptional sku, gpus (1-8), region, trust_class, max_usd_per_hour, limitAvailable offers. No key neededcreate_quotesku, gpus, trust_class, exactly one of hours or cap_usdg; optional region, offer_idA quote that lasts 60 seconds. No key neededpreview_spendaction: reserve | launch | extend | close; quote_id or job_id; optional extra_hoursExact cost and policy check. Required before reserve, launch, extend or closereserve_jobpreview_id, quote_id, confirm: trueHolds the GPUs for 5 minuteslaunch_jobpreview_id, quote_id, confirm: true; optional image, commandStarts the job; returns unsigned Bull transactionssubmit_paymentjob_id, stream_key, stream_id; optional tx_hashesReports a stream your wallet sentget_jobjob_idJob status, current interval and next_actionslist_jobsno argumentsYour jobsclose_jobpreview_id, job_id, confirm: true; optional reasonStops the job; returns cancel transactionsextend_jobpreview_id, job_id, extra_hours, confirm: trueAdds hours under the same capsget_receiptjob_idPublic receipt. No key neededget_policyno argumentsYour spend policyset_policyoptional hourly_cap_usdg, session_cap_usdg, daily_cap_usdg, max_hours_per_job, allow_trust_classesTightens caps only; loosening needs a fresh wallet signature on PUT /v1/policy (reauth)list_creditsno argumentsCredits banked to your wallet after a failed provision or a failed intervalreserve_job, launch_job, extend_job and close_job need confirm: true as well as a confirmed preview_spend. No tool sends a blockchain transaction; the agent's wallet does.
Python (sync Client and async AsyncClient). Install it from GitHub:
Do not run pip install attesta from PyPI: that name belongs to someone else.
The SDK never sends a blockchain transaction; your agent does. Errors raise AttestaError(status, code, message).
TypeScript: createClient in src/sdk/client.ts of github.com/zyan90/attesta. Not on npm yet.
bonded_attested: a direct host with a bond. Attesta takes 3%.aggregated: pooled, audited Akash supply. Attesta takes 5%.confidential: not open yet.
Offers and quotes use trust_class. max_usd_per_hour already includes Attesta's fee. Bull's stream fee (0.5%, min $0.05, max $250 per stream) is paid in ETH on top. Jobs are capped at $1,000; the minimum job is $10. How the classes protect you: Trust.
Every wallet has a spend policy, checked by each preview. A new wallet starts with:
- Hourly cap 100 USDG; session and daily caps 1,000 USDG
- At most 24 hours per job and 10 confirmed spend actions per hour
- H100 and H200 allowed; all three trust classes allowed
Read it with GET /v1/policy or get_policy; change it with PUT /v1/policy or set_policy. Tightening is instant. Loosening needs a fresh wallet signature: a new /v1/auth/challenge, signed, sent as reauth: { nonce, signature } on PUT /v1/policy, so set_policy over MCP can only tighten. The $1,000 job cap cannot be raised.
- Free calls (offers, quotes and sign-in, and MCP
search_offersandcreate_quote) are limited to 60 requests a minute per client. Over that, the API answers 429 with coderate_limited. - A sign-in challenge is valid for 10 minutes. A spend preview is valid for 10 minutes or until its quote expires, whichever is sooner.
- Errors are JSON:
{ "error": { "code": "...", "message": "..." } }. Codes you will meet:unauthorized,quote_expired,preview_expired,policy_denied,idempotency_key_required,rate_limited. - Keep the API key safe, like a password. Attesta stores only a hash of it, so it cannot show it to you again: sign in again for a new one.
Paid quotes and 5-minute GPU holds over x402 are built into the API but not switched on here yet.
/v1/healthIs the API up, and are payments live or simulated/v1/skusGPU types on offer/v1/offersOffers: sku, gpus (exact), region, trust_class, max_usd_per_hour (incl. fee)/v1/quotesA 60-second quote for a job/v1/providers/:idOne provider/v1/receipts/:idA job receipt, public/v1/credits/:walletCredits banked to a wallet after a failed provision or a failed interval/v1/auth/challengeGet the sign-in message for your wallet/v1/auth/loginSend the signature, get an API key/v1/spend/previewExact cost and policy check; required before reserve, launch, extend, close/v1/jobs/reserveHold the quoted GPUs for 5 minutes/v1/jobsLaunch a job; returns unsigned Bull transactions/v1/jobsYour jobs/v1/jobs/:idOne job, with next_actions to fund or cancel/v1/jobs/:id/fundedReport a stream you sent/v1/jobs/:id/extendAdd hours under the same caps/v1/jobs/:id/closeStop and get unvested USDG back/v1/policyYour spend policy/v1/policyChange your spend policyPeople can book from the website too. Browse GPUs · How Attesta keeps you safe: Trust