kAsky53 / sail

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

Home Page:https://sail.saber.so/ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>
);

Examples

The most prominent open source example is the Friktion frontend.

You can view a list of open source GitHub projects that use Sail here.

License

Sail is licensed under the Apache License, Version 2.0.

About

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

https://sail.saber.so/ts/

License:Apache License 2.0


Languages

Language:TypeScript 99.0%Language:Nix 0.6%Language:JavaScript 0.3%Language:Shell 0.1%