FedoraGold Technical Documentation

  1. Home
  2. Docs
  3. FedoraGold Technical Documentation
  4. API: fedoragold_daemon (http post: JSON req)
  5. getblock (both POST and GET)

getblock (both POST and GET)

curl -X GET -H "Content-type: application/json" -H "Accept: appliation/json" -d '{"height": 1934499}' http://localhost:30159/getblock

requestresponse
heightalreadyGeneratedCoins
blocksize
difficulty
currentmediansize
hash
transactionHashes
major_version
minor_version
timestamp
prev_hash
nonce
depth
reward
status

sample:

{"alreadyGeneratedCoins":420580228773105952,"blocksize":7534,"currentmediansize":100000,"depth":949558,"difficulty":31042766,"hash":"0e6b3c9365a56f199c0d7a73593add1489b26aa6cbbe01c03df8466644111c4c","major_version":1,"minor_version":0,"nonce":1154489723,"prev_hash":"215e4e0228c0532e63c919669ca588ad878f40a88b56290c76729e3e0ce80884","reward":145278050116,"status":"OK","timestamp":1589195024,"transactionHashes":["9ed34d8ca750e272dcfd4673a721aba166995c545871e7edc5e5287c53bdebe8"]}

Was this article helpful to you? Yes No

How can we help?