Skip to content

adamant-console / queryStringToObject

Function: queryStringToObject()

queryStringToObject(queries): Record<string, any>

Defined in: get.js:282

Converts CLI query fragments into a plain object for adamant-api.

Commas are accepted as separators for interactive CLI convenience. Explicit and: and or: prefixes are converted into logical groups for adamant-api v3. Unprefixed transaction filters stay at the top level, where adamant-api combines them with AND by default.

Parameters

queries

string[]

Query fragments collected from CLI or RPC parameters

Returns

Record<string, any>

Query object passed to adamant-api

Released under the GPL-3.0 License.