check masternode status #
GET
/ping
Check if a masternode is online
Example https://masternode-01.lamden.io/ping
JSON response #
{
"status": "online"
}
get masternode id #
GET
/id
Get the vk of a masternode
Example https://masternode-01.lamden.io/id
JSON response #
{
"verifying_key": "5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a"
}
get contract variable value #
GET
/contracts/:contract_name/:variable_name?key=:key_value
Returns the Current State
value for a key in a hash variable.
- floats are retunred as
fixed objects
with a __fixed__
key and a string value representing the float. - all other values are returned as they are
Example https://masternode-01.lamden.io/contracts/currency/balances?key=0000803efd5df09c75c0c6670742db5074e5a011b829dfd8a0c50726d263a345
JSON response #
{
"value": {"__fixed__":"272966785.977944444444444444444444443506"}}
}
get network constitution #
GET
/constitution
The ids of all masternodes
and delegates
currently participating in consensus.
Example https://masternode-01.lamden.io/constitution
JSON response #
{
"masternodes":[
"5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a",
"a2ce0217d08e0cf5718d36fc3b7b59d7bb5e4c6e3140a04e02da1d28a6fea56f"
],
"delegates":[
"2bdb7a98d65a469dacd93873ce3f8b6bb5284414348cab17ade738f913d35e32",
"555100f02ef3bdc469e866140c35955e137624f4a1284bbcb999cd7fb576c869",
"207c4da519414b5330df945c3c5405ba6e0a7b6ddf576256cb6f6aca43b8a8ee",
"b0fc27299da14bc08834df9c70d73074f3e511a5a91321d4fa413f3401144918"
]
}