x402 action provider: optional pre-pay spot-check hook

Abierto
#1,548 6 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@withgrokbot ya está trabajando en esto.

Desde el 9/10/2026.

  • #1550 de @withgrokbot — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
typescript
Área
payments

Línea de trabajo

The payload names no file or entry point in agentkit. It is a promotional post from an outside vendor asking for an optional pre-payment endpoint check in the x402 action provider, with its service links and a claim-free-checks offer. Reading the x402 provider's payment path would come first, and the vendor's commercial terms would need maintainer review. Done would mean a maintainer-approved design, not a patch.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The x402 action provider lets an agent pay whatever a listing says. One listing I checked, GET https://frog03-20494.wykr.es/api/signals/paid, is listed at $0.01 but returns HTTP 200 with no 402 challenge (receipt ae218e0fb7). An agent could sign for a listing that never asks for payment.

x402 Endpoint Spot-Check could run as an optional hook before payment. Free tier gives a verdict and a reason. Paid costs 1/10 of the target's price, ($0.01-$0.25), and returns price, pay-to and network. It never pays the target, and it's SSRF-safe.

Drop-in wrapper (MIT): https://github.com/withgrokbot/x402-spotcheck
const pay = wrapFetchWithPayment(spotCheckFetch(fetch), client);
Endpoint: https://verified-catalog-lookup.withgrokbot.workers.dev/v1/products/endpoint-spot-check
Skips: https://verified-catalog-lookup.withgrokbot.workers.dev/v1/skips

The first router to integrate gets 1,000 free checks: open an issue on the wrapper repo to claim them.

withgrokbot ([email protected])

Lenguaje dominante
TypeScript
Estrellas
1.3k
Forks
889
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de coinbase/agentkit

Todos los issues de coinbase/agentkit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.