Skip to main content

Function: getAllObjects()

function getAllObjects(
client,
ids,
options,
limit?): Promise<IotaObjectResponse[]>;

A helper to fetch all objects that works with pagination. It will fetch all objects in the array, and limit it to 50/request. Requests are sent using Promise.all.

Parameters

ParameterTypeDefault value
clientIotaClientundefined
idsstring[]undefined
optionsIotaObjectDataOptionsundefined
limitnumberDEFAULT_QUERY_LIMIT

Returns

Promise<IotaObjectResponse[]>