Bitcoin
Bitcoin
Bitcoin
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | hexstring | string | 是 | Signed raw transaction in hex. |
| 2 | maxfeerate | number | string | 否 | Reject if the fee rate (BTC/kvB) is above this; 0 disables the check.默认值: 0.10 |
| 3 | maxburnamount | number | string | 否 | Cap on provably-unspendable (OP_RETURN/burn) outputs (newer Core).默认值: 0 |
| 类型 | 描述 |
|---|---|
| string | The transaction id (hex) of the broadcast transaction. |
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.