Getting Started
Install
yarn:
npm:
The SDK uses Viem in order to interact with the various chains and includes it as a peer dependency.
HatsClient Initialization
Import and initialize HatsClient:
Arguments:
chainId
- Client's chain ID. The client is initialized to work with one specific chain.publicClient
- A Viem Public Client, used for onchain read operations.walletClient
(Optional) - A Viem Wallet Client, used for onchain write operations. If not provided, then this Hats Client will support only read operations.
Last updated