Skip to content

GetDynamicStore returns a dynamic store's creator, default value, global kill switch, and metadata.

Returns the configuration of a dynamic store.

Example

bash
bb query tokenization dynamic-store 1
bash
curl https://lcd.bitbadges.io/bitbadges/bitbadgeschain/tokenization/get_dynamic_store/1

Request

FieldTypeDescription
storeIdstringStore ID.

Response

json
{
  "store": {
    "storeId": "1",
    "createdBy": "bb1p0rrel3365scadq5k9pv0x0zp9j22js6dnw70d",
    "defaultValue": false,
    "globalEnabled": true,
    "uri": "",
    "customData": "{\"name\":\"Demo Membership allowlist\"}"
  }
}
FieldTypeDescription
storeIdUintID assigned by the chain.
createdBystringOwner. Only this address can modify the store.
defaultValueboolValue for addresses without an explicit entry.
globalEnabledboolKill switch. When false, every approval that checks this store fails, regardless of per-address values.
uristringMetadata URI. Empty when unset.
customDatastringCustom data. Empty when unset.

Behavior

  • New stores are created with globalEnabled: true. Stores that predate the field were migrated to true.
  • Change any field with MsgUpdateDynamicStore; read it first, because that message overwrites every field.

Edit this page on GitHub