0.7.2 • Published 1 month ago

@siafoundation/explored-react v0.7.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

explored-react

React hooks for interacting with the explored API.

installation

npm install @siafoundation/explored-react

usage

import { useTxpoolFee } from '@siafoundation/explored-react'
import { LoadingSpinner } from 'some-component-library'

export function TransactionPoolFeeIndicator() {
  const { data: fee, isValidating, error } = useTxpoolFee()

  if (fee) {
    return <span>{fee}<span>
  }
  if (isValidating) {
    return <LoadingSpinner />
  }
  return <span>{error.message}</span>
}

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

2 months ago

0.7.1-beta.1

2 months ago

0.7.2

1 month ago

0.6.3

4 months ago

0.7.1

1 month ago

0.6.2

4 months ago

0.5.0

7 months ago

0.4.0

7 months ago

0.7.0

2 months ago

0.6.1

4 months ago

0.6.0

5 months ago

0.5.1

6 months ago

0.3.1

8 months ago

0.3.0

9 months ago

0.2.1

10 months ago

0.2.2

9 months ago

0.2.0

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

11 months ago

0.0.1

11 months ago