@0xsequence/hooks
v6.0.2
Published
React hooks for Sequence Web SDK
Keywords
Readme
Sequence Hooks SDK
Use @0xsequence/hooks to query coin prices, swap routes, swap quotes, balances, transaction history, token information and more by leveraging the Sequence API and Indexer.
Key Features
- Coin prices
- Cross chain swap routes and quotes
- Multichain balances
- Transaction history
- Query multiple contracts at once
- Get current active wallet status and information
- Get NFT and token metadata
- Multiple filtering options
Quickstart
- Install the package:
npm install @0xsequence/hooks
# or
pnpm install @0xsequence/hooks
# or
yarn add @0xsequence/hooks- Wrap your app with the SequenceHooksProvider.
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { SequenceHooksProvider } from "@0xsequence/hooks";
function Dapp() {
return (
<SequenceHooksProvider config={{ projectAccessKey: "AQAAAAAAAABtDHG1It7lxRF_9bbxw4diip8" }}>
<App />
</SequenceHooksProvider>
);
}
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<Dapp />
</React.StrictMode>
);- Start using the hooks in your app.
