# Sending methods

The two things a relay takes, a transaction or a bundle, and the ways to send each.

## Transaction submission

One signed transaction, forwarded unchanged to the current and upcoming leaders.

| Method | Send to | Body | Answer on success | Choose it when |
|---|---|---|---|---|
| [HTTP JSON-RPC](/docs/tx-landing/http/#sendtransaction) | `/v1/sendTransaction` | JSON-RPC `sendTransaction`, the transaction in base64 | The signature | Your code already calls `sendTransaction` on an RPC node. |
| [HTTP raw](/docs/tx-landing/http/#sendrawtransaction) | `/v1/sendRawTransaction` | The transaction's bytes, or the same in base64 text | The signature | You want a signature back without building JSON. |
| [QUIC](/docs/tx-landing/quic/) | UDP port 9000 | One transaction per unidirectional stream or per datagram | None | You keep a connection open and need no answer per transaction. |

HTTP is on TCP port 80 and takes your key in the `api-key` header. QUIC takes a client certificate made from your API key.

## Bundle submission

1 to 4 signed transactions that land atomically in order, or not at all.

| Method | Send to | Body | Answer on success |
|---|---|---|---|
| [HTTP JSON-RPC](/docs/tx-landing/bundles/) | `/v1/sendBundle` | JSON-RPC `sendBundle`, 1 to 4 transactions in base64 | Their signatures, in order |

Bundles need a [paid tier](/docs/tx-landing/rate-limits/#tiers). They are HTTP only, on the same port and with the same key; bundles over QUIC are not offered.

## Both

- A legacy or v0 transaction is at most 1232 bytes, a v1 transaction at most 4096.
- HTTP is plain: the key travels unencrypted, and HTTPS is not offered. QUIC runs over TLS.
- A signature in an HTTP answer means the relay accepted the request, not that it landed. QUIC sends no acknowledgment, and drops a rejected transaction without a word.
- The relay does not verify signatures or simulate, and does not deduplicate: a transaction or bundle sent twice is forwarded twice.
- One [rate limit](/docs/tx-landing/rate-limits/) per relay, shared by transactions over HTTP, transactions over QUIC and bundles. One bundle counts as 1 TPS unit.
