Devnet docs

This commit is contained in:
Łukasz Magiera
2019-09-28 00:09:42 +02:00
parent 47bf759122
commit 08a1e211f5
2 changed files with 122 additions and 0 deletions
+22
View File
@@ -17,6 +17,7 @@ var stateCmd = &cli.Command{
statePowerCmd,
stateSectorsCmd,
stateProvingSetCmd,
statePledgeCollateralCmd,
},
}
@@ -172,3 +173,24 @@ var stateReplaySetCmd = &cli.Command{
return nil
},
}
var statePledgeCollateralCmd = &cli.Command{
Name: "pledge-collateral",
Usage: "Get minimum miner pledge collateral",
Action: func(cctx *cli.Context) error {
api, err := GetFullNodeAPI(cctx)
if err != nil {
return err
}
ctx := ReqContext(cctx)
coll, err := api.StatePledgeCollateral(ctx, nil)
if err != nil {
return err
}
fmt.Println(coll.String())
return nil
},
}