Skip to content
Alchemy Logo

Send Transaction (GET)

GET
/{apiKey}/api/v2/sendtx/{hex}

Broadcasts a signed raw Bitcoin transaction encoded as a hex string in the path. Returns the transaction ID on success. The example value below is the hex of a confirmed Bitcoin transaction; re-sending it will respond with a Bitcoin-Core RPC error (e.g. -25: bad-txns-inputs-missingorspent once the inputs are spent, or -27: transaction already in block chain for unspent re-broadcasts). Substitute your own signed raw-transaction hex to broadcast. For larger payloads, use the POST variant.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

stringrequired

Hex-encoded raw transaction bytes.

Responses

200

Transaction broadcast result.

400

Malformed request.

Was this page helpful?