Skip to content

Latest commit

 

History

History

hostd-js

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)
}