Answer the question
In order to leave comments, you need to log in
How to get input addresses by txid?
I send currency to the address via sendtoaddress, in response I get txid.
How can I find out from which addresses funds were debited?
In a raw transaction for this address txid, only outgoing addresses have the amount..
txid 3bf63a40b601cb4242d00b1030cab805cf030718b874ed1d6bd702ba492dc308
hash 91fa63e059c71ccd31b38db7d5db1967071ef60f94a6ca4f81aea25f41920d67
version 2
size 420
vsize 257
locktime 1355530
vin
txid 55a7d167953f3c038a8fd2344bfd75db180ba56b548cea3f8f4b1f3dad966c01
vout 0
scriptSig {'asm': '0014840f3af7ccf347589a563aec1dfca6af09c85ffe', 'hex': '160014840f3af7ccf347589a563aec1dfca6af09c85ffe'}
txinwitness ['3045022100dbfa6f359fcbf0f0b29646ed9a579d2b0ab4875d14ba27e0dfbbcf117a560cd402202574ff450c066dfdb59406ab0bb5f33c57188b1a3a802ccce512479fa49051df01', '02b6ee00cc48674016b08a52a7ba28d74b04fb461d52de2511f71f11545f6e869d']
sequence 4294967294
txid d8046e76ebd5ebb913d644b8e1abba6f9aeefa8be98a871da1f599ce31547724
vout 1
scriptSig {'asm': '0014191ed29292b71dcebf9b651b16525de1700274cb', 'hex': '160014191ed29292b71dcebf9b651b16525de1700274cb'}
txinwitness ['3045022100f0e54429812e099f18d0a3063a03cbb60249c82a8122aa4401dd5456e0d8b94202201b0771d6266ff4b3b9deead0ab40d3460c8432b19523db874090832cdae772d101', '03d41f882e87236ca07831547409a35b10084bbd8c025b6468a870da0d52248d2e']
sequence 4294967294
vout
value 0.01777638
n 0
scriptPubKey {'asm': 'OP_HASH160 53523bc0d5d3c235a637885b62a5b1b5fd854ebd OP_EQUAL', 'hex': 'a91453523bc0d5d3c235a637885b62a5b1b5fd854ebd87', 'reqSigs': 1, 'type': 'scripthash', 'addresses': ['2MzqnatCC4LqeVer2awy5Rj6bKNeeDRutAy']}
value 0.5
n 1
scriptPubKey {'asm': 'OP_HASH160 471996ce2e34f2c8d5ac4ca5306238c8e2c2ecbf OP_EQUAL', 'hex': 'a914471996ce2e34f2c8d5ac4ca5306238c8e2c2ecbf87', 'reqSigs': 1, 'type': 'scripthash', 'addresses': ['2MyjAcs6o3HcSneDmBqfLg3p2Q33opEqHqf']}
Answer the question
In order to leave comments, you need to log in
if you understand the problem correctly.
You are using an RPC request to send bitcoins.
https://bitcoin.org/en/developer-reference#sendtoa...
and sendtoaddress
you cannot specify which outputs will be spent.
To do this, you need to block certain exits.
https://bitcoin.org/en/developer-reference#lockunspent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question