Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: walletd-js #616

Merged
merged 1 commit into from
May 3, 2024
Merged

feat: walletd-js #616

merged 1 commit into from
May 3, 2024

Conversation

alexfreska
Copy link
Member

@alexfreska alexfreska commented May 2, 2024

  • Adds a walletd-js library.
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)

Copy link

changeset-bot bot commented May 2, 2024

🦋 Changeset detected

Latest commit: c7bed67

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@siafoundation/walletd-js Minor
@siafoundation/walletd-types Patch
@siafoundation/walletd-mock Patch
@siafoundation/walletd-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alexfreska and the rest of your teammates on Graphite Graphite

@alexfreska alexfreska force-pushed the feat_walletd-js branch 2 times, most recently from f51f70f to ea2e2c3 Compare May 2, 2024 19:43
@alexfreska alexfreska merged commit 8769bf7 into main May 3, 2024
10 of 20 checks passed
@alexfreska alexfreska deleted the feat_walletd-js branch June 7, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants