Feature request: an action for consuming x402 paywalled APIs

Aperta
#1,521 31 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@baianomarceloeduardo-jpg ci sta già lavorando.

Dal 30/9/2026.

  • #1525 di @baianomarceloeduardo-jpg — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, payments

Direzione di ricerca

Start by reviewing AgentKit's action model and the described x402 request flow: POST to an endpoint, handle the 402 Payment-Required challenge, sign the Base USDC payment, and retry with Payment-Signature. Done means an action or helper can consume an x402-protected endpoint and return its paid result.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is your feature request related to a problem?

Agents built with AgentKit often need to call third-party APIs that charge per request. There's no built-in way for an AgentKit action to consume a paywalled API and pay automatically.

Describe the solution you'd like

An action (or helper) that consumes an x402-protected endpoint: make the request, receive the 402 Payment-Required challenge, sign the Base USDC payment, and retry. x402 is the Coinbase HTTP payment protocol, so it would slot naturally into AgentKit's action model.

Describe alternatives you've considered

  • Pre-paid API keys (not pay-per-call).
  • A generic "fetch + pay" utility rather than a typed action.

Example flow

POST to an x402 endpoint → 402 with a Payment-Required header → sign with the agent's wallet → retry with Payment-Signature → paid result.

Lingua principale
TypeScript
Stelle
1.3k
Fork
889
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coinbase/agentkit

Tutte le issue di coinbase/agentkit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.