- Preparing search index...
- The search index is not available
cardano-sdk
Function fetchByAddressSequentially
- fetchByAddressSequentially<Item, Response>(props: {
address: PaymentAddress;
haveEnoughItems?: ((items: Item[]) => boolean);
paginationOptions?: PaginationOptions;
request: ((address: PaymentAddress, pagination: PaginationOptions) => Promise<Response[]>);
responseTranslator?: ((address: PaymentAddress, response: Response[]) => Item[]);
}): Promise<Item[]>
-
Parameters
-
props: {
address: PaymentAddress;
haveEnoughItems?: ((items: Item[]) => boolean);
paginationOptions?: PaginationOptions;
request: ((address: PaymentAddress, pagination: PaginationOptions) => Promise<Response[]>);
responseTranslator?: ((address: PaymentAddress, response: Response[]) => Item[]);
}
-
-
Optional
haveEnoughItems?: ((items: Item[]) => boolean)
-
- (items: Item[]): boolean
-
Returns boolean
-
Optional
paginationOptions?: PaginationOptions
-
request: ((address: PaymentAddress, pagination: PaginationOptions) => Promise<Response[]>)
-
- (address: PaymentAddress, pagination: PaginationOptions): Promise<Response[]>
-
Parameters
-
-
pagination: PaginationOptions
Returns Promise<Response[]>
-
Optional
responseTranslator?: ((address: PaymentAddress, response: Response[]) => Item[])
-
- (address: PaymentAddress, response: Response[]): Item[]
-
Returns Item[]
Returns Promise<Item[]>
Returns
true to indicate that current result set should be returned