hypersdk-client
v0.4.8
Published
The 'Hello, world!' of MetaMask Snaps, now written in TypeScript.
Downloads
711
Readme
HyperSDK Client
The HyperSDK Client is a TypeScript/JavaScript library designed to interact with the HyperSDK blockchain. It provides a set of tools and utilities to connect to the blockchain, manage accounts, and execute transactions.
Features
- Connect to the HyperSDK blockchain using different signer types (Metamask Snap, Ephemeral, Private Key).
- Fetch and manage account balances.
- Execute read-only actions and transactions.
- Encode and decode data using the ABI (Application Binary Interface).
Installation
npm install hypersdk-client
Example Usage
To use the HyperSDK Client, make sure you have the latest version installed. You can refer to the JavaScript examples in the HyperSDK Starter repository for more detailed usage. Please note that the API and features are evolving rapidly, and there may be frequent changes. The v1.0 release is expected to stabilize the user experience.
Changelog
0.4.8
- Updated the indexer API to the latest iteration
- Added support for block subscriptions
- Note: internal changes require reinstalling the Snap!
0.4.7
- Added support for the new indexer API
- Renamed most of the methods. Now they are
simulateAction
,sendTransaction
,formatNativeTokens
,convertToNativeTokens
- Removed WebSocket support and replaced it with indexer API
- Added
getTransaction
method to get the transaction status
0.4.6
- The HyperSDK client is no longer an abstract class and does not need to be extended
- Added support for Go language arrays
- Implemented support for WebSockets for transactions (block support is not yet available)
TODO:
- Separate the Snap into its own package to make it lighter