gettxout RPC Method
Parameters
txid
string
REQUIRED
Loading...
n
integer
REQUIRED
Loading...
include_mempool
boolean
Loading...
Returns
bestblock
string
Loading...
confirmations
integer
Loading...
value
number
Loading...
scriptPubKey
object
Loading...
asm
string
Loading...
hex
string
Loading...
type
string
Loading...
reqSigs
integer
Loading...
addresses
array
Loading...
address
string
Loading...
version
integer
Loading...
coinbase
boolean
Loading...
error
string
Loading...
Request
1curl -X POST "https://docs-demo.zec-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "gettxout",6"params": [7"61fceaf442e56fca9c888f5fb5fd5d99cb4291602f6fd8e66b48fa9a5fe70aae",809],10"id": 111}'
1curl -X POST "https://docs-demo.zec-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "gettxout",6"params": [7"61fceaf442e56fca9c888f5fb5fd5d99cb4291602f6fd8e66b48fa9a5fe70aae",809],10"id": 111}'
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"bestblock": "0000000000998e72deba8744e77d0ad36667e8de0615c5eec17bcae469b32132",6"confirmations": 5,7"value": 1.25,8"scriptPubKey": {9"asm": "OP_DUP OP_HASH160 0d87ca39eb9cabbfdb6c91de1baab82a7addca7f OP_EQUALVERIFY OP_CHECKSIG",10"hex": "76a9140d87ca39eb9cabbfdb6c91de1baab82a7addca7f88ac",11"reqSigs": 1,12"type": "pubkeyhash",13"addresses": [14"t1K79TgQbqu74d6rBmsMu2oFEXEwAmdYiT7"15]16},17"version": 5,18"coinbase": true19}20}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"bestblock": "0000000000998e72deba8744e77d0ad36667e8de0615c5eec17bcae469b32132",6"confirmations": 5,7"value": 1.25,8"scriptPubKey": {9"asm": "OP_DUP OP_HASH160 0d87ca39eb9cabbfdb6c91de1baab82a7addca7f OP_EQUALVERIFY OP_CHECKSIG",10"hex": "76a9140d87ca39eb9cabbfdb6c91de1baab82a7addca7f88ac",11"reqSigs": 1,12"type": "pubkeyhash",13"addresses": [14"t1K79TgQbqu74d6rBmsMu2oFEXEwAmdYiT7"15]16},17"version": 5,18"coinbase": true19}20}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free