@ecency/sdk
v1.3.6
Published
Ecency sdk
Readme
@ecency/sdk
Utilities for building Hive applications with React and TypeScript.
Features
- Query and mutation option builders powered by @tanstack/react-query
- Modules for accounts, posts, operations, communities, games, analytics, keychain integrations, and more
- Configurable Hive RPC client and storage via the
CONFIGobject
Installation
yarn add @ecency/sdk
# or
npm install @ecency/sdkUsage
import { getAccountFullQueryOptions, ConfigManager } from '@ecency/sdk';
import { useQuery } from '@tanstack/react-query';
// optionally provide a custom QueryClient
// ConfigManager.setQueryClient(myQueryClient);
const { data } = useQuery(getAccountFullQueryOptions('ecency'));