Delegation
Last updated
Last updated
POST /listMyDelegation HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 58
"delegationAddress='text'&delegationPrivateKey='text'"[
{
"_id": "62753bdeea4f5223164c4c37",
"delegationAddress": "PRTMR5pDravSYmAdohUNSoGoEgwyEg2mG8xbWuAfb47",
"nodeAddress": "PRTMQHyfM45WiYxPcL9GZtSB49GXUSufa8q2Wji4yF5",
"frozenAmount": 1000,
"frozenDateTime": "2022-05-06T15:16:46.715Z",
"txHash": "9adb25675bcb068f6834ed91b4d8f060b162ceb6a1ad0034a1e9cd560db28d8c",
"__v": 0
}
]POST /freezeCoin HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 91
"delegationAddress='text'&delegationPrivateKey='text'&duptyAddress='text'&amount=1"{
"error": 0,
"data": {
"error": 0,
"tx": "9adb25675bcb068f6834ed91b4d8f060b162ceb6a1ad0034a1e9cd560db28d8c",
"sign": "3045022100d45ce2cfbe574cb18733924d31da4a0ff7a458655ad723b7065740e29476c3b9022002dc79fca37a61ba332502a591b93384a2beb62c704d7d91cd92f8490da17fc7",
"timeStamp": 1651850206451
},
"delegationID": "62753bdeea4f5223164c4c37"
}POST /unFreezeCoin HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 95
"delegationAddress='text'&delegationPrivateKey='text'&nodeAddress='text'&txHash='text'"{
"error": 0,
"tx": "8d892c39d1300a300767ed9345e4d463436c1057a9f2beb9fd92bf6bdd739906",
"sign": "3045022100d45ce2cfbe574cb18733924d31da4a0ff7a458655ad723b7065740e29476c3b9022002dc79fca37a61ba332502a591b93384a2beb62c704d7d91cd92f8490da17fc7",
"timeStamp": 1651851391178
}POST /joinAsDeputy HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 70
"address='text'&privateKey='text'&alias='text'&website='text'"{
"error": 0,
"data": "Your Attemption of Been Deputy Result Successful.WELCOME TO PIRI SYSTEM. You May share your address to select to you. And Make Greater Chance To Top Deputies and Earn More PIRI COIN.",
"tx": "90cfe8c0eb528d07ae6c820e883390c44a523fccf1cf967a9d7cb1ed2b1e5cb4"
}POST /checkDeputy HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18
"address='text'"truePOST /verifyAddress HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18
"address='text'"truePOST /listDeputies HTTP/1.1
Host: core.pirichain.com
Accept: */*
[
{
"verified": false,
"_id": "6344399a401de78291c783cd",
"depAddress": "PRTMQSmLA34dDbRWdgJ992zYraKGRYDBdV1jtwHK3zu",
"depAlias": "Piri Tech&Sci Found.",
"depWebsite": null,
"frozenAmount": 593850.1,
"producedBlocks": 1088215
},
{
"verified": true,
"_id": "63a36d247f0d8ef727d57a2e",
"depAddress": "PRTMPHPPgApYGzuE55coK1hgdrgUzxAppMTT9btVGgx",
"depAlias": "Pirichain Docrypt #2",
"depWebsite": "https://pirichain.com",
"frozenAmount": 0,
"producedBlocks": 0
}
]POST /getMyRewardQuantity HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 37
"base58='text'&privateKey='text'"{
"error": 0,
"rewardAmount": 127.63191273465246
}POST /claimMyRewards HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 38
"address='text'&privateKey='text'"{
"error": 0,
"tx": "d357d39ab856bdf3f3abfad01c4cce6fa41f17e32dd2f0bbb13540b8d4d7830f",
"sign": "30450221009006eb64c124ddf557fd0e2c186c725674c04a92262717a5667820bd2fbba1130220535d99e95aae47b7c980eb593b387cabd2c49354ad636549fdf06cae1571d4e0",
"timeStamp": 1663766042014
}POST /listDelegationTopN HTTP/1.1
Host: core.pirichain.com
Accept: */*
[
{
"_id": "PRTMQqXYnvfs7QmjaDLEFoD4AmxiZAqF8yJhZW19rfr",
"totalFrozen": 144352
}
]