Martin Okello

Martin Okello

  • NA
  • 28
  • 431

Stratis Block Chain. Calling Stratis blockchain Api mine block

Aug 12 2020 6:22 PM
I am new to Stratis Blockchain, and cloned the StratisFullNode project from github. 
 
Having started the test node on localhost, I have created and loaded a wallet and got 300 TStuct crypto test currency in my wallet at a given address.
 
I then tried to mine giving all required parameters: {description: blockContentToMine,blockCount:1} and tried to mine using the api end point on Swagger with the server at localhost running under the correct port.
 
When I post to the end point correct data, the response is a 405, "This is a POS (proof of Stake) chain, and mining cannot go past 12500 blocks I presume". Which beggers the question, how do you mine or test your api integration locally?
 
I even called the startStaking End point and it responded with a 200 response OK.
 
There is very thin documentation and Stratis seem to have occult forums where everybody is a recluse. No messages are replied to, nor ability to post messages. And worst everybody seems to only accept messages from friends they know. Great!! Learning capablity is limited considerably yet have a project where I need to consume end points especially the "mine" end point. Does anybody know how to get this working so I get a 200 Ok Status Code response? Very frustrating.