1.9 KiB
1.9 KiB
Blockchain : Bitcoin
how setup node
First, install bitcoind (Daemon for connecting main Bitcoin Blockchain), follow below guide sites:
so run daemon and must be uptodate and contains all of blocks
** Start bitcoind as daemon**
bitcoind --daemon
then create wallet or if created before, must load them:
for loading wallet
first ssh on btc server , then:
bitcoin-cli loadwallet btc-hot
bitcoin-cli -testnet loadwallet btc-dep
for create walelt
bitcoin-cli -testnet createwallet btc-fee
bitcoin-cli createwallet btc-dep
btc-dep or btc-hot is optional name
So, create new address by each wallet and keep them for next step (create wallet in panel)
- bitcoin-cli -testnet -rpcwallet=btc-fee getnewaddress
- bitcoin-cli -rpcwallet=btc-dep getnewaddress
- bitcoin-cli -testnet -rpcwallet=btc-fee getnewaddress
Now create relative blockchain, currency and wallet record in the panel
example for blockchain server field:
example for wallet uri field:
- http://rpcuser:rpcpass@185.194.78.52:#{port}/wallet/#{wallet_name}
- http://user1:changeme@46.209.13.2:18332/wallet/btc-dep
18332, 8332 these are ports that daemon listen on it, and the Peatio talks to it with jsonrpc.
ports, user and password can be set in this file : bitcoin.conf
- regtest ports are 18443, 18444
- testnet ports are 18332, 18333
- mainnet ports are 8332, 8333