|
1 |
| -# XChainJS Wallet Client Interface |
| 1 | +<div align="center"> |
| 2 | + <h1 align="center">XChain Client</h1> |
2 | 3 |
|
3 |
| -A specification for a generalised interface for crypto wallets clients, to be used by XChainJS implementations. The client should not have any functionality to generate a key, instead, the `xchain-crypto` library should be used to ensure cross-chain compatible keystores are handled. The client is only ever passed a master BIP39 phrase, from which a temporary key and address is decoded. |
| 4 | + <p align="center"> |
| 5 | + <a href='https://www.npmjs.com/package/@xchainjs/xchain-client' target='_blank'> |
| 6 | + <img alt="NPM Version" src="https://img.shields.io/npm/v/%40xchainjs%2Fxchain-client" /> |
| 7 | + </a> |
| 8 | + <a href='https://www.npmjs.com/package/@xchainjs/xchain-client' target='_blank'> |
| 9 | + <img alt="NPM Downloads" src="https://img.shields.io/npm/d18m/%40xchainjs%2Fxchain-client" /> |
| 10 | + </a> |
| 11 | + </p> |
| 12 | +</div> |
| 13 | + |
| 14 | +<br /> |
| 15 | + |
| 16 | +Base client interface and abstract implementation for XChainJS blockchain clients. Provides a standardized interface for wallet operations across different blockchain networks. |
| 17 | + |
| 18 | +## Modules |
| 19 | + |
| 20 | +- `BaseXChainClient` - Abstract base class for all blockchain clients |
| 21 | +- `types` - Core type definitions and interfaces |
| 22 | +- `fees` - Fee calculation utilities |
| 23 | +- `protocols` - Supported blockchain protocol definitions |
| 24 | + |
| 25 | +## Installation |
| 26 | + |
| 27 | +```sh |
| 28 | +yarn add @xchainjs/xchain-client |
| 29 | +``` |
| 30 | + |
| 31 | +or |
| 32 | + |
| 33 | +```sh |
| 34 | +npm install @xchainjs/xchain-client |
| 35 | +``` |
| 36 | + |
| 37 | +Following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-client`. |
| 38 | + |
| 39 | +```sh |
| 40 | +yarn add @xchainjs/xchain-crypto @xchainjs/xchain-util axios |
| 41 | +``` |
4 | 42 |
|
5 | 43 | ## Documentation
|
6 | 44 |
|
7 | 45 | ### [`xchain client`](http://docs.xchainjs.org/xchain-client/)
|
| 46 | + |
8 | 47 | [`Overview of xchain-client`](http://docs.xchainjs.org/xchain-client/overview.html)\
|
9 | 48 | [`Interface of xchain-client`](http://docs.xchainjs.org/xchain-client/interface.html)
|
10 | 49 |
|
| 50 | +## Features |
| 51 | + |
| 52 | +- **Standardized Interface**: Consistent API across all blockchain implementations |
| 53 | +- **Key Management**: Secure BIP39 phrase handling without key generation |
| 54 | +- **Network Support**: Mainnet, Testnet, and Stagenet configurations |
| 55 | +- **Fee Management**: Flexible fee calculation and bounds |
| 56 | +- **Abstract Implementation**: Base class for easy client extension |
| 57 | + |
0 commit comments