dogecoin

一、dogecoin core 配置

1. 下载

https://dogecoin.com/#wallets
https://github.com/dogecoin/dogecoin/releases/download/v1.14.3/dogecoin-1.14.3-x86_64-linux-gnu.tar.gz
下载,移到linux某目录,tar -xvf dogecoin-1.14.3-x86_64-linux-gnu.tar.gz

2. 初始化

cd dogecoin-1.14.3/bin
./dogecoind
ctrl + c 停止

3. dogecoin.conf

nano ~/.dogecoin/dogecoin.conf
addnode=testnets.chain.so
addnode=suchdig.com
addnode=testdoge.lionservers.de
addnode=dnf-1.gbf.re
addnode=dnf-2.gbf.re
addnode=dnf-3.gbf.re
addnode=dnf-4.gbf.re
addnode=dnf-beta.gbf.re
addnode=dnf-alpha.gbf.re
addnode=dnf-test.gbf.re
addnode=doge1-eu.langerhans.de
addnode=doge2-eu.langerhans.de
addnode=doge3-eu.langerhans.de
addnode=doge4-eu.langerhans.de
addnode=core0-de.dogecoin.gg
addnode=core1-de.dogecoin.gg
addnode=core0-sg.dogecoin.gg
addnode=core1-sg.dogecoin.gg
addnode=core0-gb.dogecoin.gg
addnode=core0-us.dogecoin.gg
addnode=core1-us.dogecoin.gg
addnode=doge1.minethat.com
addnode=doge2.minethat.com
addnode=eu1.5trubel.de
addnode=eu2.5trubel.de
addnode=seed.multidoge.org
addnode=seed2.multidoge.org

4. bootstrap

https://dogecoin.gg/

aria2c https://dogecoin.gg/bootstrap
下载完后,
cd dogecoin-bootstrap-2021-05-09
mv bootstrap.dat ~/.dogecoin/

5. 启动

cd xx/dogecoin-1.14.3/bin
./dogecoind # 启动服务器,运行了这条才能./dogecoin-cli

https://github.com/dogecoin/dogecoin/issues/1747
https://github.com/dogecoin/dogecoin/issues/1847
https://nguyenkhaclong.com/385/create-a-dogecoin-node-on-your-own-vps/

二、dogecoin core 使用

1. 钱包

~/.dogecoin/wallet.dat是钱包,要存好。

./dogecoin-cli getinfo
./dogecoin-cli getbalance

2. 密码

./dogecoin-cli encryptwallet <passphrase> # 然后server会关闭
./dogecoind # (在后台)重启server
在~/.dogecoin/dogecoin.conf中加上rpcpassword=<passphrase>

3. account和address

./dogecoin-cli listaccounts
./dogecoin-cli getaddressesbyaccount "account"
./dogecoin-cli getaccountaddress "account" # 如果account不存在就会新建该account并且给它一个address
./dogecoin-cli getnewaddress "account"

4. 交易

./dogecoin-cli listtransactions [account]
./dogecoin-cli sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]
./dogecoin-cli sendtoaddress <bitcoinaddress> <amount> [comment] [comment-to]

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list#Common_operations

posted on 2021-05-15 00:49  HolaWorld  阅读(639)  评论(1编辑  收藏  举报

导航