@siafoundation/hostd-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

hostd-js

SDK for interacting with hostd.

Installation

npm install @siafoundation/hostd-js

Usage

import { Hostd } from '@siafoundation/hostd-js'

export async function example() {
  const hostd = Hostd({
    api: 'http://localhost:9980/api',
    password: 'password1337',
  })
  const state = await hostd.stateHost()
  const volumes = await hostd.volumes()
  console.log(state.data, volumes.data)
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    43
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    43
  • 0.1.0
    2

Package Sidebar

Install

npm i @siafoundation/hostd-js

Weekly Downloads

45

Version

0.1.1

License

MIT

Unpacked Size

20.7 kB

Total Files

11

Last publish

Collaborators

  • alexfreska
  • alex_sia