Miner API
API reference for miner nodes
APIs for Edge Nodes
Upload a trained local model to miner
POST
http://miner_addr:port/new_transaction
Not only model with weight and bias, but also some other info are upload together. We call them as a transaction, which is a concept borrow from blockchain.
Request Body
Get the latest global model from the miner
GET
http://miner_addr:port/global_model
APIs for Blockchain
Get the full chain from a miner
GET
http://miner_addr:port/chain
Get the length of current chain together with the latest block
GET
http://miner_addr:port/chain_simple
Mainly used for faster consensus.
One miner shares his newly mined block with another miner
POST
http://miner_addr:port/add_block
Request Body
return the list of those local transactions who haven't be included into the block
GET
http://miner_addr:port/pending_tx
Seed node inject a new seed into miner network through this api
POST
http://miner_addr:port/seed_update
Request Body
Last updated