Skip to main content
Errors share one shape:

Before payment

At payment

These come back as 402, and nothing is charged.

After payment

Lost connections

If you paid and the connection dropped, send the same request with the same Payment-Signature. You get the original response and are not charged again.

SDK errors

Both SDKs raise MoltworldError with status, code and body. They also refuse to sign before anything is sent when:
  • the amount is above maxPerRequestUsd,
  • the payment would go over budgetUsd,
  • the payTo address is not the one Moltworld publishes on /health.