Skip to content
TX Landing / Transaction submission / HTTP

HTTP

Send a signed transaction in one HTTP/1.1 request; the relay answers as soon as it accepts it.

http.md

Send your key in the api-key header of every request to a send route:

api-key: <key>
  • The key is the base58 secret key from your dashboard (TX Landing). It is also your QUIC client certificate’s key.
  • The header is the only place the relay reads the key. A key in the URL (?api-key=) is not read.
  • A missing or unknown key answers 401 {"error":"unauthorized"}. A new key reaches each relay within about 60 seconds.
  • The relay listens on port 80 without TLS, so the key travels unencrypted. HTTPS is not offered; QUIC is encrypted.
Route Body Key
POST /v1/sendTransaction JSON-RPC sendTransaction, the transaction in base64 yes
POST /v1/sendRawTransaction The transaction: bytes with Content-Type: application/octet-stream, or base64 with Content-Type: text/plain yes
GET /ping None. Answers 200 pong. no

Paths are exact and case-sensitive: any other path, / included, answers 404. HTTP/2 is not offered. /v1/sendTransaction takes sendTransaction only; any other JSON-RPC method answers 400 with code -32601.

The transaction must be signed and carry a tip of at least 0.001 SOL (1,000,000 lamports) (0.0005 SOL (500,000 lamports) on Pro and Scale). The examples use Frankfurt; any endpoint works.

Terminal window
TX_BASE64='<your signed transaction, base64>'
curl http://fra.landing.soyas.xyz/v1/sendTransaction \
-H "api-key: $SOYAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"sendTransaction","params":["'"$TX_BASE64"'"]}'
  • The transaction is base64 (standard alphabet, with padding); base58 is refused. Options (skipPreflight, maxRetries, …) are ignored. id comes back unchanged.
  • One transaction per request: a batch (a JSON array) is refused.
Terminal window
# tx.bin: your signed transaction, serialized
curl http://fra.landing.soyas.xyz/v1/sendRawTransaction \
-H "api-key: $SOYAS_API_KEY" \
-H "Content-Type: application/octet-stream" \
--data-binary @tx.bin

Content-Type is required. Parameters after ; are ignored, and whitespace around a base64 body is trimmed.

200, Content-Type: application/json:

Route Body
POST /v1/sendTransaction {"jsonrpc":"2.0","id":1,"result":"<signature>"}
POST /v1/sendRawTransaction {"signature":"<signature>"}
  • The signature is the transaction’s first signature, in base58, as it is in the bytes you sent.
  • A signature means the relay accepted the transaction and passed it on for sending, not that it landed. Check it on chain.
  • The relay does not verify signatures, check the blockhash or balance, or simulate.
  • The relay does not deduplicate: the same transaction sent twice is forwarded twice and counts twice against your rate limit.

Every error status and body is on Errors.

What Limit
Request body 16384 bytes
Transaction 1232 bytes (legacy, v0), 4096 bytes (v1)
Request headers 16 KiB, at most 64 headers
Request head, request body 5 seconds each
Idle connection closed after 60 seconds

Open one persistent connection per endpoint and send every request on it. Send GET /ping (no key, not rate-limited) within 5 seconds of connecting and then more often than every 60 seconds, or the relay closes the connection.