Gets service limits (information about available unspent units)

 

CLI Example

Command syntax:

net_srv get_limits 
-net <net_name> 
-srv_uid <Service_UID> 
-provider_pkey_hash <Service_provider_public_key_hash> 
-client_pkey_hash <Client_public_key_hash>

Options:

-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list (optional)
-srv_uid - UID of the service 
-provider_pkey_hash - hash of the service providers public key
-client_pkey_hash - hash of the clients public key
 

Example:

Command:

cellframe-node-cli net_srv get_limits 
-net riemann 
-srv_uid 0x0000000000000001 
-provider_pkey_hash 0xE23EF5A0EA0604EADD74EB2F365809AE222EB88B7EA72C9ADA7AF8B78EA4E21E 
-client_pkey_hash 0xF5B9D0C675D671E05198812F40B8C0AF4CBE5C477BAA2940AE751F6B37E1F335

Response:

Provider 0xE23EF5A0EA0604EADD74EB2F365809AE222EB88B7EA72C9ADA7AF8B78EA4E21E. Client 0xF5B9D0C675D671E05198812F40B8C0AF4CBE5C477BAA2940AE751F6B37E1F335 remain service values:
 
SEC: 0
 
BYTES: 0

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"net_srv", "params":["net_srv;get_limits;-net;riemann;-srv_uid;0x0000000000000001;-provider_pkey_hash;0xE23EF5A0EA0604EADD74EB2F365809AE222EB88B7EA72C9ADA7AF8B78EA4E21E;-client_pkey_hash;0xF5B9D0C675D671E05198812F40B8C0AF4CBE5C477BAA2940AE751F6B37E1F335"],"id":"1"}'

Response:

{ 
"type": 0,
"result": "Provider 0xE23EF5A0EA0604EADD74EB2F365809AE222EB88B7EA72C9ADA7AF8B78EA4E21E. Client 0xF5B9D0C675D671E05198812F40B8C0AF4CBE5C477BAA2940AE751F6B37E1F335 remain service values:\nSEC: 0\nBYTES: 0\n",
"errors": null,
"id": 1
}