@siafoundation/walletd-js
v0.2.5
Published
SDK for interacting with `walletd`.
Downloads
79
Readme
walletd-js
SDK for interacting with walletd
.
Installation
npm install @siafoundation/walletd-js
Usage
import { Walletd } from '@siafoundation/walletd-js'
const walletd = Walletd({
api: 'http://localhost:9980/api',
password: 'password1337',
})
const events = await walletd.walletEvents({
params: {
id: 'wallet-1',
limit: 10,
offset: 0,
},
})
const peers = await walletd.syncerPeers()
console.log(events.data, peers.data)