Skip to content

Commit

Permalink
Removed expired links and added example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
usama9500 committed Dec 11, 2024
1 parent afb8734 commit a8a902b
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions lib/js-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Other apps are [Bolt](https://bolt.holdings/), a wallet that is very secure with

## Get Started

This sections aims at getting you started with the Züs SDK. For a detailed documentation and reference, please refer to the [SDK documentation](https://docs.zus.network/guides/zus-js-sdk/get-started).
This sections aims at getting you started with the Züs SDK.

- [Installation](#installation)
- [SDK Reference](#sdk-reference)
Expand Down Expand Up @@ -74,8 +74,6 @@ yarn add @zerochain/zus-sdk

Zus JS-sdk provides many functions for implemention blobber,allocation and file operation functionalities in web applications.

- See [gitbook](https://docs.zus.network/guides/zus-js-sdk/sdk-reference) for extensive list.

## Usage

To use the Züs SDK in your project, import the necessary functions and utilities:
Expand Down Expand Up @@ -129,7 +127,31 @@ console.log(response);

The `sendTransaction` function sends a transaction from the specified sender client to the recipient client with the specified value and note.

Refer to the [SDK documentation](https://docs.zus.network/guides/zus-js-sdk/get-started) for detailed information about the usage and detailed references.
## Example Applications

Explore the following example applications to understand how the Züs JS SDK can be used in real-world scenarios:

### **[Next.js Example Application](https://github.com/0chain/zus-example-webapp/tree/72c7a550a05323503691e69c0d36c1c227e7a4e8)**
This web application demonstrates integrating the Züs JS SDK with a Next.js project. It showcases key functionalities for interacting with the Züs blockchain, including wallet creation, allocation management, and token-based transactions.

**Supported Features**:
- **Bolt**: Integrates the cryptocurrency wallet functionality to manage ZCN and Ethereum tokens, including staking and rewards.
- **Vult**: Implements decentralized anonymous file-sharing where users can upload and securely share files.

Live Preview: [https://dev-zus-webapp.zus.network](https://dev-zus-webapp.zus.network)

---

### **[Static Website Example](https://github.com/0chain/zus-example-website)**
This static website illustrates how to use the Züs JS SDK to integrate decentralized storage into a traditional web app. It features real-time asset management using the Züs storage backend and IndexedDB caching for enhanced performance.

**Core Highlights**:
- Guide to downloading assets from Züs allocations using an `authTicket`.
- Integration of Züs storage for hosting website assets securely and efficiently.
- Step-by-step implementation of the Züs SDK methods, including wallet creation, file sharing, and asset caching in IndexedDB.

Live Preview: [https://dev-zus-website.zus.network](https://dev-zus-website.zus.network)


## Utilities

Expand All @@ -145,8 +167,6 @@ These utility functions can be imported and used as needed in your application.

With the provided functions and utilities, developers can easily interact with the ZeroChain network, perform transactions, retrieve balances, and utilize various utility functions.

Please refer to the [SDK documentation](https://docs.zus.network/guides/zus-js-sdk/get-started) for more details and usage examples.

## Contributing

We'd love to accept your patches and contributions to this project. There are just a few guidelines you need to follow.
Expand Down

0 comments on commit a8a902b

Please sign in to comment.