Installation
Install Khizab Core via your package manager, a <script> tag, or build from source.
Package Manager
Install the required packages.
pnpm add @khizab/core @aptos-labs/ts-sdk@1.xpnpm add @khizab/core @aptos-labs/ts-sdk@1.xnpm install @khizab/core @aptos-labs/ts-sdk@1.xnpm install @khizab/core @aptos-labs/ts-sdk@1.xyarn add @khizab/core @aptos-labs/ts-sdk@1.xyarn add @khizab/core @aptos-labs/ts-sdk@1.xbun add @khizab/core @aptos-labs/ts-sdk@1.xbun add @khizab/core @aptos-labs/ts-sdk@1.x- Aptos Sdk is an SDK for accessing the Aptos blockchain data, submitting transactions, and more!.
- TypeScript is optional, but highly recommended. Learn more about TypeScript support.
CDN
If you're not using a package manager, you can also use Khizab Core via an ESM-compatible CDN such as esm.sh. Simply add a <script type="module"> tag to the bottom of your HTML file with the following content.
<script type="module">
import { createConfig } from 'https://esm.sh/@khizab/core@0.0.37'
import { petraWallet } from 'https://esm.sh/@khizab/connectors'
</script><script type="module">
import { createConfig } from 'https://esm.sh/@khizab/core@0.0.37'
import { petraWallet } from 'https://esm.sh/@khizab/connectors'
</script>Check out the React docs for info on how to use React without JSX.
Requirements
Khizab Core is optimized for modern browsers. It is compatible with the following browsers.
- Chrome 64+
- Edge 79+
- Firefox 67+
- Opera 51+
- Safari 12+
Using Unreleased Commits
If you can't wait for a new release to test the latest features, you can either install from the canary tag (tracks the main branch).
pnpm add @khizab/core@canarypnpm add @khizab/core@canarynpm install @khizab/core@canarynpm install @khizab/core@canaryyarn add @khizab/core@canaryyarn add @khizab/core@canarybun add @khizab/core@canarybun add @khizab/core@canaryOr clone the Khizab repo to your local machine, build, and link it yourself.
gh repo clone khizab/khizab
cd khizab
pnpm install
pnpm build
cd packages/core
pnpm link --globalgh repo clone khizab/khizab
cd khizab
pnpm install
pnpm build
cd packages/core
pnpm link --globalThen go to the project where you are using Khizab and run pnpm link --global @khizab/core (or the package manager that you used to link Khizab globally). Make sure you installed the required peer dependencies and their versions are correct.