Skip to content

RPC method "pushMiningObject"

Mikhail Fedosov edited this page Sep 15, 2022 · 1 revision

This method is being used by miner for pushing mining 3D objects to the Node in hope of getting lucky to guess the rewarded one. 100 Kb is the max weight for the object allowed.

curl -H "Content-Type: application/json" -d 
'{
    "jsonrpc":"2.0",
    "id":"1",
    "method":"poscan_pushMiningObject",
    "params": [
        1,
        "o\n
v 0.05508197844028473 0.7671535015106201 -0.14178061485290527\n
v 0.05349433422088623 0.764365017414093 -0.10946107655763626\n
v 0.04743874818086624 0.7608485817909241 -0.07884219288825989\n
        "
            ]
}' http://localhost:9933/

Where as one of the parameters is the content of 3D model in .obj format, but with \n added at the end of each line.

o\n
v 0.05508197844028473 0.7671535015106201 -0.14178061485290527\n
v 0.05349433422088623 0.764365017414093 -0.10946107655763626\n
v 0.04743874818086624 0.7608485817909241 -0.07884219288825989\n
...
Clone this wiki locally