U
U
user.2019-11-23 01:43:56
bitcoin
user., 2019-11-23 01:43:56

A few questions about bitcoin?

Good evening,
I understand bitcoin a little, I’ll immediately clarify that I have never worked and I need to clarify some points for myself, if the format of some of my questions is not entirely technically competent, then I will be glad for adequate criticism.
1. How much should exchanges be trusted? After all, in fact, they have absolutely all the information about wallets and their owners. Actually, this crypto currency was originally (it is clear that then everyone became smart :) ) was presented as anonymous, but it turns out that the owners of the exchanges have compromising information on all their clients. How big is the chance that the wallet can be blocked? Can I, after blocking it on the exchange, continue to use it simply by downloading the bitcoin client and the entire blockchain to my computer?
2. If an exchange is used to receive payments and a new address is created for each new payment, how realistic is it for the recipient to find out whether the address belongs to the exchange or not? Or the user has downloaded the entire blockhain and installed bitcoin core directly on the computer.
3. I read that if you only need to accept payments, you can run Core with the -prune=551 option, which seems to download only the latest actual transactions from the blockchain and as a result, the database will take 8gb instead of 145, in fact, how true is this?
4. On most vds / vps, due to mining, is it forbidden to install bitcoin core?
5. Are exchange wallet holders prohibited from using so-called mixers?
For example, this client in python must connect to bitcoin Core, which in turn can be installed anywhere, and we will be able to perform any operations with the wallet, but if the Core is suddenly offline and we need to create a new address to accept or send a payment, then when trying to connect, as I understand it, we will get an error ... Actually, that's why I look towards exchanges that seem to have an API and everything is pretty clear, but the most important fact confuses me is that in fact I only have the illusion that I own my wallet.

#!/usr/bin/env python3

from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException

def main():
    rpc_user = "login"
    rpc_password = "password"
    rpc_connection = AuthServiceProxy("http://%s:%[email protected]:8332"%(rpc_user, rpc_password))

    address_type = "legacy" #starts with 1
    address_type = "p2sh-segwit" #starts with 3
    address_type = "bech32" #starts with "bc1q"
    newaddress = rpc_connection.getnewaddress ( "label", address_type )
    print(newaddress)

    balance = rpc_connection.getbalance()
    print(balance)

    addr = "34X5CJyukXPBvXhKonZBGfvBe1hsQfbaoC"
    print(rpc_connection.getreceivedbyaddress(addr))

    addr = "3LazkvJLeD39KoxGcJVkzjnGsi5Xs3Kuq2"
    print(rpc_connection.sendtoaddress(addr, 0.00001))

if __name__ == "__main__":
    main()

Sample code is taken from the topic: Where can I find a Python library or methods for working with Bitcoin RPC or CLI?
Regarding the exchange, I even found a library for work, all the examples they have are only in php.
https://github.com/blockchain/api-v1-client-python

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2019-11-23
@bacon

1. you can use them, but you shouldn’t store bitcoins there
2. you don’t need an exchange to accept payments, you can’t determine if it belongs to an exchange at a new address
3 though
4 it’s not prohibited on most, it’s better to read the rules of a particular hoster. Mining on vds is meaningless.
5. mixers and the exchange are not connected in any way.
An address can be created without a network connection, and even without a bitcoin core.
Ask questions one at a time, it's tedious to answer such a footcloth. And it’s better to read the Internet, everything has been chewed many times there for a long time, even in Russian.

L
lJser, 2019-11-27
@SteelJames

the base will take 8gb instead of 145

Now the entire blockchain occupies 350 gigabytes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question