getrawtransaction
BitcoinC1Returns the raw transaction data for a txid. With verbose true you get the decoded transaction; historic lookups resolve against archive nodes with full txindex.
Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpcParameters
| Name | Type | Description |
|---|---|---|
| txid | string | The transaction id. |
| verbose | boolean | true for decoded JSON, false for hex. |
Returns
string | object — hex or the decoded transaction.
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": "getrawtransaction",
"params": ["6a9013b8684862e9…", true]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "getrawtransaction",
"params": ["6a9013b8684862e9…", true]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "txid": "6a9013b8684862e9…", "vin": [], "vout": [] }
}More transactions methods on Bitcoin
Frequently asked
Do you index all transactions (txindex)?
Yes — our archive nodes run with txindex, so any historic txid resolves.
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