magilogo

MAGI - New Added API Calls

Several added API calls for MAGI: getnetstakeweight, getmininginfo, getnewblockvaluebynumber, and getminingbykhps.

  1. Network stake weight

    getnetstakeweight

  2. Mining info

    getmininginfo

    
    {
        "Expected PoS (hours)" : 3
    }
    
    
  3. Block reward

    getnewblockvaluebynumber 122478

    
    {
        "flags" : "proof-of-work",
        "difficulty" : 1.62299710,
        "difficulty-V2" : 1.54876817,
        "blockvalue" : 5.36191184,
    }
    
    
  4. Mining calculator

    getminingbykhps 10

    
    {
        "hashrate (kh/s)" : 10.00000000,
        "difficulty" : 1.56666109,
        "difficulty(aver)" : 1.35112710,
        "blockvalue" : 5.23089843,
        "mining (XMG)" : {
            "1 hour" : 0.03245060,
            "1 day" : 0.77881439,
            "1 week" : 5.45170070
        }
    }