Skip to content
/ sail Public
forked from saber-hq/sail

⛵️ A React library for Solana account management and transaction processing.

License

Notifications You must be signed in to change notification settings

delta-hq/sail

 
 

Repository files navigation

sail ⛵️

NPM License Build Status Contributors

A React library for Solana account management and transaction handling.

Setup

Run:

yarn add @saberhq/sail react-query

Usage

You will need to first set up React Query.

Then:

import { SailProvider } from "@saberhq/sail";
import { QueryClient, QueryClientProvider } from "react-query";

const queryClient = new QueryClient();

const MyApp: React.FC = () => (
  <QueryClientProvider client={queryClient}>
    <SailProvider initialState={{ onTxSend, onSailError }}>
      {/* stuff */}
    </SailProvider>
  </QueryClientProvider>
);

About

⛵️ A React library for Solana account management and transaction processing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.3%
  • Other 0.7%