chainweb-node icon indicating copy to clipboard operation
chainweb-node copied to clipboard

RPC API instruction

Open rlinxy opened this issue 6 years ago • 1 comments

We would like make a mining pool for Kadena, is there any instruction about the RPC interface? Such as getblocktemplate and submitblock etc... I went through the FAG and Wiki, but couldn't find one. Thanks.

rlinxy avatar Dec 14 '19 12:12 rlinxy

The mining API is defined here:

https://github.com/kadena-io/chainweb-node/blob/master/src/Chainweb/Miner/RestAPI.hs#L47

There is also swagger documentation for it if you hit /swagger.json.

We have a standalone miner here https://github.com/kadena-io/chainweb-miner and the README has more in-depth documentation on mining with some info about the node's mining API.

mightybyte avatar Jan 02 '20 19:01 mightybyte