@helium/data-credits-sdk
v0.12.1
Published
Interface to the data-credits smart contract
Downloads
2,854
Keywords
Readme
@helium/data-credits-sdk
TypeScript SDK for the data-credits program. Data credits are a non-transferable SPL token burned to pay for hotspot data transfer; this SDK builds mint-DC, burn-DC, and HNT-to-DC swap instructions against the HNT price oracle.
import { init } from "@helium/data-credits-sdk"
const program = await init(provider)