![](https://images.ecency.com/p/HNWT6DgoBc1692QWn5trsGLxi44TrGuNZJMEdibAsZaBjHvfShbBbqJnfdMTBcVP5pQz3C4GZ2dMdVfccahXJJEsRyfS5iCPijWfCyVsGhcqtJqL4a9uwwmpv3g.png?format=match&mode=fit) __Today the package `@onhive.io/astro-loader` has been released in version `0.2.1` with a brand new accounts loader!__

• • •
The new loader allows you to fetch information about a single or multiple accounts in one API call. The usage is very straightforward: ```ts import { defineCollection } from "astro:content"; import { hiveAccountsLoader } from "@onhive.io/astro-loader"; export const collections = { accounts: defineCollection({ type: "content_layer", loader: hiveAccountsLoader("hive.coding") // or ["hive.coding", "mciszczon"] for multiple accounts }) }; ``` The returned account(s) will have the following format (TypeScript definitions taken from the code of the library): ```ts export type Account = { id: string; name: string; created: Date; wallet: Wallet; postCount: number; profile: Profile; }; export type Wallet = { hive: { liquid: Money implements; frozen: Money; }; hbd: { liquid: Money; frozen: Money; }; }; export interface MoneyInterface { currency: string; amount: string; precision: number; asFloat(): number; } class Money implements MoneyInterface { ... } ``` More loaders are coming soon. Feel free to contribute to the code directly, report bugs or request features! The library is [available at npm](https://www.npmjs.com/package/@onhive.io/astro-loader). In order to contribute, head over to: [instytutfi/hive-astro-loader](https://github.com/instytutfi/hive-astro-loader/)

• • •
__Hive Coding:
Fueling Hive development through community effort__ Thank you for your support! @hive.coding • [OnHive.io](http://OnHive.io)
![](https://images.ecency.com/DQmZs1R9GRGPxKLUpdfpV3iZbhUXYqCm86gbZgsxS1zb9cp/hive_coding_school.png)