@hol-org/adapter-hedera-rate
v0.1.2
Published
HOL Flora adapter that reads the Hedera exchange rate API for HBAR pricing (HCS-21 compliant).
Readme
@hol-org/adapter-hedera-rate
|
| HOL Flora adapter that pulls HBAR exchange rates from Hedera's mirror node API, emitting HCS-21 compatible records. Built and maintained by Hashgraph Online. |
| :-- | :-- |
Install
npm install @hol-org/adapter-hedera-rateUsage
import adapter from "@hol-org/adapter-hedera-rate";
const record = await adapter.discoverPrice();
// { entityId: "HBAR-USD", adapterId: "hedera-rate", payload: { price, source: "hedera", mirror: <url> }, timestamp }Links
- Homepage: https://github.com/hashgraph-online/flora-price-oracle
- Issues: https://github.com/hashgraph-online/flora-price-oracle/issues
- Publisher: Hashgraph Online (https://hol.org)
License
Apache-2.0
