Bitcoin
Bitcoin
Bitcoin
Free tier covers personal projects. Pay-as-you-go scales without a card.
sendrawtransaction submits a fully signed Bitcoin transaction, given as serialized hex, to the node's mempool and relays it across the Bitcoin peer-to-peer network. On success it returns the transaction's txid, which you can then track until it is mined into a block — roughly every ten minutes under Bitcoin's Proof-of-Work. This is the broadcast step that actually moves BTC after a transaction has been built and signed. Send the request to the Bitcoin JSON-RPC endpoint at https://bitcoin.therpc.io/YOUR_API_KEY.
createrawtransaction once it has been funded, signed, and verified.| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | hexstring | string | Yes | Signed raw transaction in hex. |
| 2 | maxfeerate | number | string | No | Reject if the fee rate (BTC/kvB) is above this; 0 disables the check.Default: 0.10 |
| 3 | maxburnamount | number | string | No | Cap on provably-unspendable (OP_RETURN/burn) outputs (newer Core).Default: 0 |
| Type | Description |
|---|---|
| string | The transaction id (hex) of the broadcast transaction. |
| Code | Message | Cause |
|---|---|---|
-26 | Transaction rejected by mempool | A policy/consensus check failed — e.g. insufficient fee, dust, min relay fee not met, or a mempool conflict. |
-27 | Transaction already in block chain | This transaction is already confirmed in a block. |
-22 | TX decode failed | The hex string is not a valid serialized transaction. |
maxfeerate of 0.10 BTC/kvB is a guardrail that rejects accidentally over-fee transactions. Pass 0 only when you deliberately intend to send a very high fee rate.txid is returned only when the node accepts the tx; a rejection (error -26) means it never entered the mempool.