gettxout
BitcoinC2Returns information about a UTXO — value, scriptPubKey and confirmations — or null if it has been spent. The basis for balance and coin-selection logic.
Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpcParameters
| Name | Type | Description |
|---|---|---|
| txid | string | The transaction id. |
| n | number | The output index (vout). |
| include_mempool | boolean | Whether to include the mempool. |
Returns
object | null — the UTXO details, or null if spent.
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": "gettxout",
"params": ["6a9013b8684862e9…", 0, true]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "gettxout",
"params": ["6a9013b8684862e9…", 0, true]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "value": 0.0125, "confirmations": 12, "scriptPubKey": {} }
}Recarregue, pegue a chave e publique.
Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.
Obter chave de API