mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-10-20 18:56:29 +00:00
99d47a034e56a7c777e11ccf68696d2b5fcf79f2
The rename replaced the sp_*, frame_* and polkadot_runtime_common paths in PATHS_ALIAS and in the extrinsic and event-record lookups with their pezsp_*, pezframe_* and pezkuwi_runtime_common forms. Live Pezkuwi chains expose the pez* paths, but metadata built from upstream Substrate (including every metadata fixture in types-support) exposes the original ones, and for those the registry no longer resolved Weight, MultiAddress, AccountId32, the unchecked extrinsic or the event record: 26 tests failed and the api suite hung. Every alias now matches both forms, and the extrinsic and event-record lookups fall back from the pez* name to the upstream one. The augment interfaces are regenerated from the fixtures with the restored aliases (AccountId32, EthereumAddress, MultiAddress, ... instead of the raw path names), which is also what the registry hands out at runtime.
@pezkuwi/api
Promise and RxJS APIs for interacting with PezkuwiChain and Bizinikiwi-based networks.
Developed by Dijital Kurdistan Tech Institute
Overview
This library provides a clean wrapper around all the methods exposed by a PezkuwiChain/Bizinikiwi network client and defines all the types exposed by a node.
Documentation
For complete documentation around the interfaces and their use, visit the documentation portal.
Installation
# Using npm
npm install @pezkuwi/api
# Using yarn
yarn add @pezkuwi/api
Quick Start
import { ApiPromise, WsProvider } from '@pezkuwi/api';
// Connect to a PezkuwiChain node
const wsProvider = new WsProvider('wss://rpc.pezkuwichain.io');
const api = await ApiPromise.create({ provider: wsProvider });
// Query chain info
const chain = await api.rpc.system.chain();
console.log(`Connected to ${chain}`);
Packages
| Package | Description |
|---|---|
| @pezkuwi/api | Main API package |
| @pezkuwi/api-derive | Derived API methods |
| @pezkuwi/types | Type definitions |
| @pezkuwi/rpc-core | RPC core functionality |
| @pezkuwi/rpc-provider | RPC providers (WS, HTTP) |
Tutorials
Looking for tutorials? Check out examples for guides on how to use the API to make queries and submit transactions.
Changelog
If you are an existing user, please track the CHANGELOG when changing versions.
Links
- Website: https://pezkuwichain.io
- Documentation: https://docs.pezkuwichain.io
- API Docs: https://js.pezkuwichain.app
- GitHub: https://github.com/pezkuwichain
License
Apache-2.0
Author
Dijital Kurdistan Tech Institute
Languages
TypeScript
99.8%