gettxout RPC Method
Parameters
txid
string
REQUIRED
Loading...
n
numeric
REQUIRED
Loading...
include_mempool
boolean
Loading...
Returns
bestblock
Loading...
confirmations
Loading...
value
Loading...
scriptPubKey
Loading...
asm
Loading...
hex
Loading...
reqSigs
Loading...
type
Loading...
addresses
Loading...
str
Loading...
coinbase
Loading...
Request
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"id": 1, "jsonrpc": "2.0", "method": "gettxout", "params": ["be3c84aa440779532a48232a67bea63e6756d614e194388a3e0102680fd69475", 1]}'5
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"id": 1, "jsonrpc": "2.0", "method": "gettxout", "params": ["be3c84aa440779532a48232a67bea63e6756d614e194388a3e0102680fd69475", 1]}'5
Response
1{2"result": {3"bestblock": "000000000000000000011050b8dbf7d6f1e10d60cb45860ade919f6301183449",4"confirmations": 1,5"value": 0.00195638,6"scriptPubKey": {7"asm": "0 18651960dd1597fbd2412868b4ccc01a560ee3f3",8"desc": "addr(bc1qrpj3jcxazktlh5jp9p5tfnxqrftqaclne06gz7)#5vx4g7e8",9"hex": "001418651960dd1597fbd2412868b4ccc01a560ee3f3",10"address": "bc1qrpj3jcxazktlh5jp9p5tfnxqrftqaclne06gz7",11"type": "witness_v0_keyhash"12},13"coinbase": false14},15"error": null,16"id": null17}
1{2"result": {3"bestblock": "000000000000000000011050b8dbf7d6f1e10d60cb45860ade919f6301183449",4"confirmations": 1,5"value": 0.00195638,6"scriptPubKey": {7"asm": "0 18651960dd1597fbd2412868b4ccc01a560ee3f3",8"desc": "addr(bc1qrpj3jcxazktlh5jp9p5tfnxqrftqaclne06gz7)#5vx4g7e8",9"hex": "001418651960dd1597fbd2412868b4ccc01a560ee3f3",10"address": "bc1qrpj3jcxazktlh5jp9p5tfnxqrftqaclne06gz7",11"type": "witness_v0_keyhash"12},13"coinbase": false14},15"error": null,16"id": null17}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free