Skip to main content

Storage Used

Description:

Get storage consumption of network, developer, app and enduser

Request

https://api.moinet.io/moibit/v1/storageused

Request type - POST

Headers#

Header KeyHeader ValueOptional
nonce<developer_nonce> No
signature<signature gotten after signing developer_nonce by developer> No
developerKeypublic id of the developerNo
networkIDID of the network Yes
appIDID of the app Yes
enduser_nonce<enduser nonce> where enduser has moi_idNo if enduser has moi_id
enduser_signature<signature gotten after signing enduser_nonce by enduser> where enduser has moi_idNo if enduser has moi_id
enduserIDId of the enduser if end-user doesn't have moi_id Yes

Parameters#

Param KeyParam TypeDescriptionOptional
networkLevel BooleanNetwork storage information Yes
devLevel BooleanDeveloper storage information Yes
appLevel BooleanApp storage information Yes
endUserLevel BooleanEndUser storage information Yes

Response Array#

FieldDescription
consumedStorage Consumption value in specified level
lastUpdated Time interval the information updated

Sample Response#

{
"meta": {
"code": 200,
"requestId": "1ebb3014-824d-41d7-9374-c6b521418559",
"message": "got storage successfully"
},
"data": {
"consumedStorage": 42029526,
"lastUpdated": "2021-05-24T14:08:45.459543369+02:00"
}
}