GetDynamicStoreValue
Retrieves the boolean value for a specific address in a dynamic store.
Proto Definition
message QueryGetDynamicStoreValueRequest {
string storeId = 1; // ID of dynamic store to query
string address = 2; // Address to get value for
}
message QueryGetDynamicStoreValueResponse {
DynamicStoreValue value = 1;
}
message DynamicStoreValue {
string storeId = 1; // The dynamic store ID
string address = 2; // The address this value applies to
bool value = 3; // The boolean value (true/false)
}
Usage Example
# CLI query
bitbadgeschaind query badges get-dynamic-store-value [store-id] [address]
# REST API
curl "https://lcd.bitbadges.io/bitbadges/bitbadgeschain/badges/get_dynamic_store_value/1/bb1..."
Response Example
{
"value": {
"storeId": "1",
"address": "bb1...",
"value": true
}
}
Last updated