decoderawtransaction
BitcoinC1Decodes a serialized transaction hex string into its JSON structure without touching the chain — useful for inspecting a transaction before broadcast.
Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpcParameters
| Name | Type | Description |
|---|---|---|
| hexstring | string | The raw transaction hex. |
Returns
object — the decoded transaction (vin, vout, etc.).
Request
curl https://api.1st-node.com/v1/bitcoin/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "decoderawtransaction",
"params": ["0200000001abcd…"]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "decoderawtransaction",
"params": ["0200000001abcd…"]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "txid": "6a9013b8684862e9…", "vin": [], "vout": [] }
}More transactions methods on Bitcoin
Top up, get a key, ship.
Self-serve. Pay in crypto or card. Metered by credits — heavy primitives cost more, simple ones are cheap.
Get API key