x402 on Gonka
checking…

Git: gonkalabs Git is temporarily unavailable. Download the source from this website — Source.

Errors

/verify returns invalidReason. /settle returns errorReason. A paid resource usually copies that string into the next 402 error field.

Client / payload

unsupported_x402_versionSet x402Version to 2.
unsupported_schemeOnly exact is implemented.
wrong_networkUse cosmos:gonka-mainnet.
missing_signed_txpayload.signedTx is empty.
invalid_signed_txNot valid base64 or not a protobuf TxRaw.
authorization_expiredtimeoutAt is in the past. Sign again.
payer_mismatchauthorization.from does not match the tx signer.
recipient_mismatchTx recipient is not payTo.
asset_mismatchWrong denom or CW-20 contract.
invalid_amountRequirements amount is missing or not a positive integer string.
insufficient_amountTx pays less than accepted.amount.
invalid_signatureSignDoc does not match the signature / pubkey / chain id / account number.

Chain state

account_lookup_failedLCD could not load the payer account. The address may never have been funded.
stale_sequenceSigned sequence is not the current one. Re-query and re-sign. Do not reuse the payload.
balance_lookup_failedBank or CW-20 query failed during verify.
insufficient_fundsVerify-time balance is below the tx amount.
replayed_paymentThis exact TxRaw was already settled. New payment needs a new sequence.
settlement_pendingBroadcast succeeded; inclusion was not seen before timeout. Inspect transaction on gonka.gg before paying again.

Broadcast

If the chain rejects the tx, errorReason is the LCD error (HTTP status, broadcast code N, or the raw log). Typical causes: sequence already used, memo/message decode issues, or the account cannot pay. Fix the tx and sign a new one.

HTTP 402 from /demo

PAYMENT-SIGNATURE header is requiredFirst request, or the header was omitted.
invalid PAYMENT-SIGNATUREHeader is not base64 JSON.