Doichain dApp and Doichain node to run a "Doichain validator" or "Doichain Send dApp"
1.3K
git clone https://github.com/Doichain/docker.git doichain-docker; cd doichain-dockermake testnet-[my-doichain] HTTP_PORT=81 PORT=18338 RPC_PORT=18339make test_testnetmake regtest-[my-doichain] HTTP_PORT=81 PORT=18338 RPC_PORT=18339docker attach testnet-[my-doichain] in order to connect to your docker containertail -f /home/doichain/.doichain/testnet/debug.log in order to watch blockchain downloaddoichain-cli getnewaddress and send your testnet address to [email protected] with subject "send me money"Install docker run -it --rm -e DAPP_SEND='true' -p 3000:3000 doichain/dapp:v0.0.9.73
Get auth token with: curl -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"password"}' http://localhost:3000/api/v1/login
Output should be something like:
{
"status": "success",
"data": {
"authToken": "Y1z8vzJMo1qqLjr1pxZV8m0vKESSUxmRvbEBLAe8FV3",
"userId": "a7Rzs7KdNmGwj64Eq"
}
Give your Send - dAPP some funding: (during alpha test, please send your doichain address to [email protected])
DOI-Request Take the authToken and userId from above and paste it into the appropriate header fields below.
curl -X POST -H 'X-User-Id: a7Rzs7KdNmGwj64Eq' -H 'X-Auth-Token: Y1z8vzJMo1qqLjr1pxZV8m0vKESSUxmRvbEBLAe8FV3' -i 'http://SEND_DAPP_HOST:3000/api/v1/opt-in?recipient_mail=<[email protected]>&[email protected]'
Output should be:
```
{
"status": "success",
"data": {
"message": "Opt-In added. ID: SyXPehQz6utWnacRa"
}
```
Install docker run --name=doichain-<your-host> --hostname=doichain-<your-host> -it --rm -e DAPP_CONFIRM='true' -e DAPP_VERIFY='true' -e DAPP_SEND='true' -e RPC_USER='admin' -e RPC_PASSWORD='<your-password>' -e RPC_HOST=localhost -e DAPP_HOST=<dAppHostFromTheInternet:Port> -e DAPP_SMTP_HOST=<smtp-host> -e DAPP_SMTP_USER=<smtp-username> -e DAPP_SMTP_PASS=<smtp-password> -e DAPP_SMTP_PORT=25 -p 3000:3000 -p 8338:8338 -v doichain.org:/home/doichain/data doichain/dapp:latest
Update the DNS of your mail domain(s) :
docker ps and docker attach <your-cointainer>doichain-cli listaccountsdoichain-cli getaccountaddress "" or use:doichain-cli getaddressesbylabel ""pubkey from doichain-cli validateaddress <your-address>doichain-opt-in-provider:<your-email-domain e.g. doichain.org>doichain-opt-in-key:<your pubkey from above> -e CONFIRM_ADDRESS=<your-address> (or modify `/home/doichain/data/dapp/settings.json ``) which is the address of you found under 2.3check if your blockchain receive blocks with: doichain-cli getblockcount
check your balance with doichain-cli getbalance (send some coins with doichain-cli sendtoaddress )
docker run --name=doichain-<your-host> --hostname=doichain-<your-host> -it --rm -e DAPP_CONFIRM='true' -e DAPP_VERIFY='true' -e DAPP_SEND='true' -e RPC_USER='admin' -e RPC_PASSWORD='<rpc-password>' -e RPC_HOST=localhost -e DAPP_HOST=<dAppHostFromTheInternet:Port> -e DAPP_SMTP_HOST=<smtp-host> -e DAPP_SMTP_USER=<smtp-username> -e DAPP_SMTP_PASS=<smtp-password> -e DAPP_SMTP_PORT=25 -p 3000:3000 -p 8338:8338 -v doichain.org:/home/doichain/data doichain/dapp:latestContent type
Image
Digest
Size
1.6 GB
Last updated
over 4 years ago
docker pull doichain/dapp