pub fn query(
    deps: Deps<'_>,
    _env: Env,
    msg: QueryMsg
) -> Result<Binary, ContractError>
Expand description

The entry point used when an account invokes the contract to retrieve information. Allows access to the internal storage information in an immutable manner.

§Parameters

  • deps A dependencies object provided by the cosmwasm framework. Allows access to useful resources like contract internal storage and a querier to retrieve blockchain objects.
  • _env An environment object provided by the cosmwasm framework. Describes the contract’s details, as well as blockchain information at the time of the transaction. Unused by this function, but required by cosmwasm for successfully defined query entrypoint.
  • msg A custom query message enum defined by this contract to allow multiple different results to be determined for this route.