gettxout RPC Method
Parameters
txid
string
REQUIRED
Loading...
n
numeric
REQUIRED
Loading...
include_mempool
boolean
Loading...
Returns
result
object
Loading...
bestblock
string
Loading...
confirmations
integer
Loading...
value
number
Loading...
scriptPubKey
object
Loading...
asm
string
Loading...
hex
string
Loading...
reqSigs
integer
Loading...
type
string
Loading...
addresses
array
Loading...
coinbase
boolean
Loading...
error
string
Loading...
id
integer
Loading...
Request
1curl https://docs-demo.bch-mainnet.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.bch-mainnet.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": "000000000000000000673d5ea6054040c410841c3908f7cfb0cd45f5dae47466",4"confirmations": 1,5"value": 3.09711951,6"scriptPubKey": {7"asm": "OP_DUP OP_HASH160 0cd2ea9f98dd66dbe18e39f20c04f1b7956e1d9e OP_EQUALVERIFY OP_CHECKSIG",8"hex": "76a9140cd2ea9f98dd66dbe18e39f20c04f1b7956e1d9e88ac",9"reqSigs": 1,10"type": "pubkeyhash",11"addresses": [12"bitcoincash:qqxd965lnrwkdklp3culyrqy7xme2msancyrc6kt37"13]14},15"coinbase": true16},17"error": null,18"id": 119}
1{2"result": {3"bestblock": "000000000000000000673d5ea6054040c410841c3908f7cfb0cd45f5dae47466",4"confirmations": 1,5"value": 3.09711951,6"scriptPubKey": {7"asm": "OP_DUP OP_HASH160 0cd2ea9f98dd66dbe18e39f20c04f1b7956e1d9e OP_EQUALVERIFY OP_CHECKSIG",8"hex": "76a9140cd2ea9f98dd66dbe18e39f20c04f1b7956e1d9e88ac",9"reqSigs": 1,10"type": "pubkeyhash",11"addresses": [12"bitcoincash:qqxd965lnrwkdklp3culyrqy7xme2msancyrc6kt37"13]14},15"coinbase": true16},17"error": null,18"id": 119}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free