Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

2xx without a readable receipt: make on-chain confirmation the default when an RPC is available

Abierto
#35 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

The payload names no files. Start from the SDK code that handles a 2xx response, the confirmAuthorization option and usdcAuthorizationCheck, and the payment.confirmed field. The issue calls for auto-wiring the on-chain check when a public client or RPC URL is given, and returning a 2xx without a receipt as confirmed = false instead of resending. Done means Glim-style, CoinMarketCap-style and genuine-failure tests pass, and the settlement_pending / settlement_unknown invariant still holds. Treat this as design work and discuss the approach before coding.

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

Descripción

Some merchants deliver the resource with a 200 but no standard PAYMENT-RESPONSE:

  • Glim (surf.cascade.fyi) sends none;
  • CoinMarketCap and JustaName send non-standard ones.

Without confirmAuthorization, the client resends the same proof. The merchant then refuses it (402 invalid_payload / "nonce already used"), and the content that was already paid for is lost. With confirmAuthorization, the SDK checks authorizationState on-chain and returns the response (confirmedOnChain: true).

The MCP server now enables this by default (agent-pay-mcp 0.2.0, confirmOnChain). Proposal for the SDK:

  • When the caller passes a public client or RPC URL for the network, wire usdcAuthorizationCheck automatically.
  • Otherwise, return a 2xx without a receipt with payment.confirmed = false instead of resending. The resource was delivered, and a resend can only be refused.

This needs care with the never-sign-twice invariant (settlement_pending / settlement_unknown). Tests should cover Glim-style (no header), CoinMarketCap-style (non-standard) and a genuine failure.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
3 h 51 min
PR fusionados (30 d)
3

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 DeepFirstHQ/deepfirstsearch

Todos los issues de DeepFirstHQ/deepfirstsearch

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.