@siafoundation/hostd-js
v0.4.0
Published
SDK for interacting with `hostd`.
Downloads
145
Readme
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)
}