Skip to content

Latest commit

 

History

History

walletd-js

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)