0.7.2 • Published 10 days ago

@siafoundation/explored-js v0.7.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 days ago

explored-js

A Typescript SDK for interacting with the explored API.

installation

npm install @siafoundation/explored-js

usage

import { Explored } from '@siafoundation/explored-js'

export async function exampleExploredDataFetch() {
  const explored = Explored({
    api: 'http://localhost:9980/api',
    password: 'password1337',
  })

  try {
    const transactionFeeResponse = await explored.txpoolFee()

    if (transactionFeeResponse.status !== 200)
      throw new Error(transactionFeeResponse.statusText)

    const transactionFee = transactionFeeResponse.data
    // Do Transaction Fee things.
    console.log(transactionFee)
  } catch (e) {
    // Handle the error
    console.log(e)
  }
}

explored libraries

API documentation

https://api.sia.tech/explored

The Sia Foundation

This library is brought to you by The Sia Foundation, Inc.--a registered 501(c)(3) non-profit dedicated to revolutionizing data storage through decentralization.

0.7.1-beta.0

1 month ago

0.7.1-beta.1

1 month ago

0.7.2

10 days ago

0.6.3

3 months ago

0.7.1

19 days ago

0.6.2

3 months ago

0.5.0

6 months ago

0.4.0

6 months ago

0.7.0

1 month ago

0.6.1

3 months ago

0.6.0

4 months ago

0.5.1

5 months ago

0.3.1

8 months ago

0.3.0

8 months ago

0.2.1

9 months ago

0.2.2

8 months ago

0.2.0

9 months ago

0.1.2

9 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.1

10 months ago