Each takes a fully signed legacy, v0 or v1 transaction that pays a tip to one of our
tip accounts. The examples below send with no key; to add yours, see Authentication.
JSON-RPC
POST / speaks the JSON-RPC of a Solana RPC node for these methods:
encodingisbase64orbase58. As on an RPC node, it isbase58when you leave it out. Sendbase64: it is smaller and faster to read. Base58 is accepted for transactions of up to 1,232 bytes.bundleOnly: truesends your transaction only inside bundles (bundleOnly).skipPreflight,maxRetries,preflightCommitmentandminContextSlotare accepted and ignored. We never simulate.- A batch, a JSON array of up to 32 calls, is answered as a batch: one answer per call.
- Any other method answers
-32601(method not found). Keep reads and confirmations on your own RPC node.
@solana/web3.js, use a second Connection for sends only. sendRawTransaction sends base64 by itself:
Jito-compatible paths
POST /api/v1/transactions and POST /api/v1/bundles answer the same JSON-RPC as POST /, at the paths of Jito’s
block engine. A client built on Jito’s SDKs switches by changing its base URL to https://sender.tracefall.xyz.
?bundleOnly=trueon/api/v1/transactionssends with bundleOnly.- Your transactions still tip one of our tip accounts. A Jito tip alone is refused with
tip_missing. - Methods we do not serve, such as
getBundleStatuses, answer-32601. The bundle idsendBundleanswers identifies the bundle to us only (Bundles).
Fast path
POST /v1/tx is the least there is to send. The body is the signed transaction, and nothing else is needed.
- The body is the transaction’s raw bytes, or the same in base64. We tell them apart ourselves: no
Content-Typeis read. - A key goes in the URL,
?api-key=<key>, so that no header is needed.?bundle-only=truesends it only inside bundles. - The answer is a status and one word, as text:
200 accepted,200 duplicate, or a refusal’s code alone under its status, such as400 tip_too_smallor429 rate_limited(Errors). It holds no JSON, no message and no signature: you have your transaction’s. - The rate headers come with every answer once your rate is checked, and a web page may read them (Limits).
Authorization header or a JSON or binary content type. A POST with no header of your own is not
asked about. A key in a web page is public: send keyless from a page, or with a key limited per visitor address
(Keys in a web page).
REST
POST /v1/transactions takes one transaction, as raw bytes or as JSON.
status is accepted, or duplicate when we already took this signature (Sending again). With raw
bytes, ?bundle-only=true sends it only inside bundles. A refusal answers an HTTP status and an error object, with
the transaction’s signature beside it when we could read one:
WebSocket
Connect once towss://sender.tracefall.xyz/v1/ws, with your key in a header or as ?api-key=<key>, and send one
message per transaction. A message is one of:
- a text frame with JSON:
{"id": 1, "transaction": "<base64 transaction>", "bundleOnly": false}.idis echoed in the answer, so you can match answers to requests. It may be a number or a string.bundleOnlymay be left out. - a binary frame holding the raw transaction. Its answer has
"id": null. - a text frame with a JSON-RPC call, answered as JSON-RPC.
- We ping every 30 seconds; standard clients answer by themselves. A connection with no frame for 120 seconds is closed. Reconnect and carry on.
- A message is held to the sizes of a request body (Limits).
- If your key is revoked, the next message is answered
unauthorized.
v1 and durable-nonce transactions
Both are accepted, and both travel on fewer paths than other transactions:- v1 transactions go only on the paths confirmed to take them, which may be RPC nodes alone. One larger than 1,232
bytes is never sent straight to leaders. Sent with
bundleOnlywhen no bundle can carry it, a v1 transaction is refused withbundle_unavailable. - Durable-nonce transactions are not carried in the bundles we send for you: they go out as plain copies. Sent with
bundleOnly, one is refused withnonce_not_bundled.