Sign inSign up

fomalhaut88/uqoin-node

By fomalhaut88

Updated 3 months ago

Image
0

1.2K

fomalhaut88/uqoin-node repository overview

uqoin-node

Node for Uqoin ecosystem.

Run in docker

Pull the image: docker pull fomalhaut88/uqoin-node

Run command:

sudo docker run \
    -p 5772:5772 \
    --restart always \
    --volume /var/lib/uqoin-node:/app/data \
    --name uqoin-node-app \
    --env PRIVATE_KEY=054A773A579D5F08817F1EFA5B19837C25DBB4A2D07C67D10D683A9A22B6D96A \
    --env NODES="http://165.232.85.150:5772 http://78.186.183.41:5772 http://89.179.245.236:5772 http://89.179.245.236:5773" \
    --env WORKERS=4 \
    --env MINING_THREADS=4 \
    --env MINING_GROUPS_MAX=20 \
    --env NODE_SYNC_TIMEOUT=10000 \
    --env FEE_MIN=D1 \
    -d fomalhaut88/uqoin-node

API description

PathMethodDescriptionParamsInput body exampleOutput body example
/versionGETGet version of the node.{"version": "1.0.0"}
/client/coinsGETGet coins of the client.wallet: str - wallet address{35: [...], ...}
/client/sendPOSTSend transaction to the node.[{"coin": "...", "addr": "...", "sign_r": "...", "sign_s": "..."}, ...]
/coin/infoGETGet creation information about the coin.coin: str - coin number{"order": ..., "tix": ..., "bix": ...}
/coin/ownerGETGet current owner wallet of the coin.coin: str - coin number{"wallet": ...}
/blockchain/block-infoGETGet short information about the block.bix: int - number of the block (last block if not specified){"bix": ..., "offset": ..., "hash": ...}
/blockchain/block-dataGETGet extended information about the block including transactions.bix: int - number of the block (last block if not specified){"bix": ..., "block": {...}, "transactions": [...]}
/blockchain/transactionGETGet transaction by the number.tix: int - number of the transaction{"coin": "...", "addr": "...", "sign_r": "...", "sign_s": "..."}
/node/listGETGet list of the nodes to sync.[...]
/node/infoGETGet node information.{"wallet": "...", "fee": "...", "lite_mode": "..."}

Environment variables

VariableDescriptionDefault
PRIVATE_KEYPrivate key of the wallet.-
NODESURL list of the nodes to sync.-
HOSTHost to deploy.localhost
PORTPort to deploy.5772
DATA_PATHPath to the directory for the data../tmp
WORKERSNumber of workers to process API.1
MINING_THREADSNumber of threads in mining.1
FEE_MINMinimum fee coin symbol to accept transactions.-
NODE_SYNC_TIMEOUTTimeout between node syncing (in milliseconds).5000
NODE_SYNC_BLOCK_COUNTMaximum allowed number of blocks to sync.1000
MINING_TIMEOUTTimeout between mining block attempts (in milliseconds).20000
MINING_UPDATE_COUNTNumber of transactions update while a new block is being mined.20
MINING_NONCE_COUNT_PER_ITERATIONNumber of mining attempts per thread in iteration.100000
MINING_GROUPS_MAXMaximum number of groups in mined blocks.-
FREE_SPLITAllow split transactions without fee.true

Tag summary

Content type

Image

Digest

sha256:c112ef604

Size

769.1 MB

Last updated

3 months ago

docker pull fomalhaut88/uqoin-node