Skip to content

API methods lookup_accounts and lookup_account_names are confusing

condenser_api.lookup_accounts returns an array of account names
condenser_api.lookup_accounts_names returns an array of account objects
condenser_api.lookup_witness_accounts also return an array of account names, not objects

One can expect the reverse result and the method names are really confusing.

My guess is that we can't change method names without breaking apps out there, but I still want to draw your attention to it.
At least, the documentation should draw attention and clearly state what kind of data is being returned (@inertia).