Hot answers tagged

5

The blockchain does not see wallets at all. It only sees spent and unspent transaction outputs (txouts). A txout is either completely spent or completely unspent - it cannot be "partially" spent and so there is no notion of balance. (If you want to spend less than the full value of a transaction, you create a change output.) In your example, there are ...


4

When a sender creates a transaction, they explicitly define which pieces of bitcoin they spend. We call such pieces of bitcoin Unspent Transaction Outputs (UTXO) and you can think of the UTXO Set as the distributed ledger of Bitcoin's balances. The state of UTXO is ternary: they either don't exist yet, are available for spending, or have been spent. So, you ...


3

Bitcoin balances conceptually are not like bank account balances, but more akin to banknotes: uniquely identifiable, good for a specific amount, and can only be spent in full. The "account balance" shown by your wallet is simply the sum of funds that the wallet knows how to spend. In the case of your multisig example, if user1, user2, and user3 ...


3

The listunspent RPC command will provide a list of all unspent outputs in your wallet, along with the addresses.


2

Private Key is a 32 bytes data Apply ECDSA or Elliptic Curve Digital Signature Algorithm to the private key. The above step dervies the public key,. (Legacy)Now append 0x04 to the start of the public key. (Current Practise) Take X from derived public key. Now add byte 0x03 if the last byte of Y is odd or 0x02 if the last byte is even. Now, apply SHA-256 to ...


2

There isn't really a way to do this efficiently, as Bitcoin Core is not designed for that. You can search using the the scantxoutset RPC command, but all that is doing is iterating over the entire database and returning matching entries (it's more powerful than just by address though; it can for example search for an xpub + derivation path too). There is ...


2

What does getbalance give me? getbalance returns the total available balance according to your configuration. If you have -spendzeroconfchange set to 1 (the default), this is your total confirmed + unconfirmed balance. Whichever it gives me, I can then add or subtract the pending value to get the other value. By default getbalance - getunconfirmedbalance =...


2

Your bitcoin client must have used a full UTXO to paid for your transactions, since you didnt own the exact amount your bitcoin client created a new private key where it send the remaining ( 20-5 = 15 ) bitcoins, also you had to pay a fees to the miner who mined the block that got your transaction. To learn more about this process you should go there https:/...


2

You don't need to check the whole 62*62*62*62 addresses online through API. That would be an insanely long journey, and you'll get blacklisted at any free service before finding what you seek, no doubt. In your place I would: 1) download the daily balance snapshot from blockchair.com 2) either in Windows through Cygwin or in Linux shell, or in MacOS ...


1

If it wasn't you, it was very likely that you were hacked. There are many possibilities, a virus, a phishing site, etc. You could check the transactions and their destination addresses, so you can see where the funds have moved


1

As per my understanding of P2SH transactions, the concept of "account balance" does not really exist. But the fact that 2 out of the 3 users can unlock the corresponding redeem script with their signatures gives them the opportunity to spend the utxo (0.4BTC) of the said P2SH transaction. Independently, of course they could also spend the utxos of ...


1

You can use the command bitcoin-cli importaddress to watch addresses that your wallet does not control. This command will generally require a rescan of the chain, which can take some time depending on your computational resources. Note that if you happen to know which blocks contain transactions related to the address in question, you can turn off the ...


1

As far as I understand (but I did not double check the code) the answer is yes. The error messages in the onion seem to be encrypted in a way so that only the origanal sender of the onion can decrypt it. Since the error also had to be padded to keep the error onion of constant length the key derivation scheme for sending onions is kind of reused. In that ...


1

getbalance returns the balance that your node currently considers spendable. According to your console output, the transaction that sent you the output was flagged as "bip125-replaceable"=>"yes". Since a transaction flagged as replaceable can be amended or retracted by the sender until it gets confirmed, an output from such a transaction will not be ...


1

Electrum wallet requires a special Electrum compatible server where it can query the data needed. There are now several implementations eg: https://github.com/spesmilo/electrum-server https://github.com/chris-belcher/electrum-personal-server https://github.com/kyuupichan/electrumx ...code snippet that implements such funtionality https://github.com/...


1

If you are actually only trying to find the full address from the start of it, you could use walletexplorer.com. On that site you can input the first few (about 8-10) characters of a wallet address and it will find the address for you.


Only top voted, non community-wiki answers of a minimum length are eligible