Bitcoin
Bitcoin
Bitcoin
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
decoderawtransaction parses a serialized Bitcoin transaction hex and returns its structure as a JSON object — version, size, vsize, weight, locktime, and the full vin[] and vout[] arrays — along with the computed txid. It is a stateless decoder: it reads only the bytes you hand it and performs no lookup against the chain or mempool, so it works for transactions that have never been broadcast. Outputs report amounts in BTC. Call it on the Bitcoin JSON-RPC endpoint at https://bitcoin.therpc.io/YOUR_API_KEY to turn opaque hex into a readable transaction.
createrawtransaction to confirm its inputs and outputs before you sign or broadcast it.txid of an unsigned transaction so you can track or reference it before it ever hits the network.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | hexstring | string | Oui | Serialized transaction hex to decode. |
| 2 | iswitness | boolean | Non | Whether the hex is a witness transaction (auto-detected if omitted). |
| Type | Description |
|---|---|
| object | txid, hash, version, size, vsize, weight, locktime, vin[], vout[]. |
| Code | Message | Cause |
|---|---|---|
-22 | TX decode failed | The hex string is not a valid serialized transaction. |
getrawtransaction at verbosity 2 if you need fee and prevout data.iswitness explicitly to force the correct interpretation.