Mediacoin Blockchain Node
Install Node
Install Golang (version ≥ 1.11)
for Linux
apt-get install golang
or
wget
https://dl.google.com/go/go1.11.5.linux-amd64.tar.gztar -C /usr/local -xzf go1.11.5.linux-amd64.tar.gz
or follow the installation instructions:
https://golang.org/doc/installInstall or update node
go get -u -v github.com/mediacoin-pro/node/cmd/mdcnode
go build -o mdcnode github.com/mediacoin-pro/node/cmd/mdcnode
Show Node version, arguments
./mdcnode -version
./mdcnode -help
Start Node
nohup ./mdcnode -http=127.0.0.1:8888 -dir=$HOME/mdc /var/log/mdcnode.log 2>&1 &
Node REST API
http://127.0.0.1:8888/? [&pretty] &=....
Get general node and blockchain information
GET /info
Get block
GET /block/
Get blocks
GET /blocks?offset=&limit=
Get transaction
GET /tx/
Get address info
GET /address/
GET /address/@
GET /address/0x
GET /address/?address=
Generate address with Memo
GET /address/?address&memo
Get address info + memo code
GET /address/?address=&memo=
Get transaction list by address (+memo)
GET /txs/?address= [&memo=] [&limit=] [&order="asc"|"desc"] [&offset=]
Generate new key pair, address by secret-phrase
GET /new-key?seed=
Register user in blockchain
POST /new-user?login=&password=
Transfer founds to address
POST /new-transfer? &(seed|login&password|private) &address= [&memo=] &amount= [&comment] [&nonce=]