def get_addresses(self, context, addresses): """Get the deserialized state entries given a list of blockchain addresses""" state_entries = {} records = state_client.get_addresses(context=context, addresses=addresses) if not records: return state_entries for record in records: state_entries[record.address] = addresser.deserialize( address=record.address, data=record.data ) return state_entries
def get_addresses(self, context, addresses): """Get the list of blockchain addresses""" return state_client.get_addresses(context=context, addresses=addresses)