@saberhq/use-solana

Solana utilities for React applications.

Usage no npm install needed!

<script type="module">
  import saberhqUseSolana from 'https://cdn.skypack.dev/@saberhq/use-solana';
</script>

README

use-solana

Solana frontend library and TypeScript SDK. This SDK features:

  • React hooks and providers for adding a Solana connection to your app
  • Integrations with several popular wallets (full list here)
  • Helpers for fetching token account balances and performing mathematical operations on tokens

Installation

First, run:

# If using NPM

npm install --save @saberhq/use-solana

# If using Yarn

yarn add @saberhq/use-solana

Documentation

The best way to learn is by example. Some examples:

License

Apache 2.0