Broadcast UTXO transaction (ZEC)
Endpoint Details
Broadcast Transaction
Broadcast a signed UTXO transaction via LeoKit’s NowNodes proxy (currently ZEC only)
POST
Broadcast UTXO transaction (ZEC)
Overview
/leokit/broadcast is a server-side proxy for broadcasting signed UTXO transactions on chains where public APIs don’t allow CORS from a browser. Currently the only supported chain is Zcash (ZEC), where the most reliable public node (NowNodes) requires a server-side API key.
Use this endpoint when your client-side ZEC swap flow needs to push a signed transaction without exposing your NowNodes key.
Endpoint
Request
Headers
| Header | Value |
|---|---|
Content-Type | application/json |
Api-Key | Your API key |
Body
| Field | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain identifier. Currently only zcash |
tx_hex | string | Yes | Hex-encoded signed transaction |
Response
Success (200)
| Field | Description |
|---|---|
txid | Confirmed transaction ID returned by the upstream node |
Errors
| Status | Code | Description |
|---|---|---|
400 | BAD_REQUEST | Missing/invalid tx_hex, or chain not in the supported list |
405 | METHOD_NOT_ALLOWED | Non-POST request |
502 | BROADCAST_FAILED | Upstream node rejected the broadcast (returned in error body) |
503 | SERVICE_UNAVAILABLE | Server has no NowNodes API key configured |
Example
Notes
- Successful broadcasts return immediately once the upstream node accepts the transaction. Use
/leokit/statusto track confirmation. - ZEC transparent (
t-) transactions are forwarded to NowNodes’ BlockBooksendtxendpoint. Shielded (z-) transactions are not yet supported by this proxy. - This endpoint is a thin pass-through: the same
txidyou’d get by calling NowNodes directly.
Authorizations
Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4
Body
application/json