net.corda.node.internal / APIServerImpl / queryStates

queryStates

fun queryStates(query: StatesQuery): List<StateRef>
Overrides APIServer.queryStates

Query your "local" states (containing only outputs involving you) and return the hashes & indexes associated with them to probably be later inflated by fetchLedgerTransactions() or fetchStates() although because immutable you can cache them to avoid calling fetchLedgerTransactions() many times.

Parameters

query - Some "where clause" like expression.

Return
Zero or more matching States.