API docs
limit()

limit(limitNumber)

Limits the maximum number of results returned. This overrides the default value of 1000 results when searching Irys and 100 when searching Arweave directly.

Parameters

  • limitNumber: The number of results desired
const results = await myQuery
	.search("irys:transactions")
	.ids(["xXyv3u9nHHWGiMJl_DMgLwwRdOTlIlQZyqaK_rOkNZw", 
	      "_xE7tG1kl2FgCUDgJ5jNJeVA6R5kuys7A6f1qfh9_Kw"])
	.limit(20);