Skip to content
TX Landing / Errors

Errors

Every HTTP status the relay answers, its exact body and what to do, and what QUIC does instead.

errors.md

On POST /v1/sendTransaction and POST /v1/sendBundle, a message with a JSON-RPC code comes as {"jsonrpc":"2.0","id":<your id or null>,"error":{"code":<code>,"message":"<message>"}}. Every other message on the send routes comes as {"error":"<message>"}. 404 and 405 are plain text.

Status Message (code) Cause What to do
400 invalid JSON (-32700) The body is not JSON. Send one JSON object.
400 invalid JSON-RPC request (-32600) The body is not an object, for example a batch. One transaction or one bundle per request.
400 jsonrpc must be "2.0" (-32600) jsonrpc is missing or not "2.0". Add "jsonrpc":"2.0".
400 unsupported JSON-RPC method (-32601) Any method other than sendTransaction on /v1/sendTransaction, or other than sendBundle on /v1/sendBundle. Send each method to its own route.
400 params must be an array, params[0] must be an encoded transaction string, params[0] must be an array of transactions, bundle must contain 1 to 4 transactions, bundle transactions must be encoded strings, params[1] must be an options object, encoding must be a string, unsupported transaction encoding (-32602) params is malformed or the bundle size is outside 1–4. Send params as on HTTP or Bundle submission.
400 unsupported Content-Type Raw route: Content-Type missing or not application/octet-stream or text/plain. Set one of the two.
400 invalid UTF-8 base64 payload Raw route: a text/plain body that is not UTF-8. Send base64 text.
400 invalid base64 transaction (-32602) The string does not decode: base58, for example. Standard base64 with = padding.
400 empty transaction payload (-32602) No transaction, or an empty entry in a bundle. Send the serialized transaction bytes.
400 invalid transaction (-32602) The bytes do not parse, or it is a versioned transaction other than v0 or v1. Send the serialized, signed transaction. The same bytes get the same answer.
400 duplicate transaction in bundle (-32602) Two entries in sendBundle share the same first signature. Remove the duplicate transaction from the bundle.
400 missing transaction signature, missing transaction signer (-32602) No signatures, or no static account keys. Sign the transaction.
400 missing required tip (-32602) No qualifying tip, or one too small (for sendBundle, no single transaction in the bundle meets the minimum). Add a tip.
400 request body timeout, with Connection: close The body did not arrive within 5 seconds. Send the whole body at once, on a new connection.
400 failed to read request body, with Connection: close Another error reading the body. Send again on a new connection.
401 unauthorized Missing, malformed, unknown or disabled key; a key sent in the URL instead of the api-key header. The third in a row on one connection also closes it. See Authentication.
403 bundles require a paid tier /v1/sendBundle with a key on the Free tier. It does not count against your limit. Buy a paid tier.
404 not found Any other path, / included. Paths are exact and case-sensitive. Check the path.
405 method not allowed Not POST on a send route, or not GET on /ping (HEAD included). POST to send, GET for /ping.
413 payload too large, with Connection: close The body is over 16384 bytes (/v1/sendTransaction, /v1/sendRawTransaction) or 32768 bytes (/v1/sendBundle). Shrink it, on a new connection.
413 transaction too large (-32602) The transaction is over 1232 bytes (legacy, v0) or 4096 bytes (v1). Make it smaller.
429 rate limit exceeded Over your rate limit on this relay. Send slower.
429 too many concurrent connections, with Connection: close Too many open connections from your IP address to this relay (/ping included). Reuse one persistent connection per endpoint.
503 relay busy, try again The relay is temporarily overloaded. Retry, or use another endpoint. It does not count against your limit.
none connection closed Too many open connections; request head not within 5 seconds; idle 60 seconds. Reuse one persistent connection; send the first request at once; GET /ping more often than every 60 seconds.

QUIC sends no acknowledgment: a finished stream only means QUIC took the bytes.

Case What happens
Accepted, or refused for any transaction error above, the rate limit, or a stream over 8192 bytes Nothing is sent back.
No client certificate, or an unknown key Closed after the handshake: application error code 0, reason NotWhitelisted.
Certificate key not Ed25519, or a bad handshake signature The TLS handshake fails.
Key disabled while connected The connection stays open; every transaction is dropped.
Too many open connections for your key The oldest connection is closed: application error code 0, reason TooManyConnections.
Idle 30 seconds The connection closes; the relay sends no keep-alives.