ord-connect is a React component library that allows you to easily integrate Bitcoin Ordinals & Inscriptions with your decentralized application (dApp). We stand as the pioneering walletkit to support ordinal-aware transactions, ensuring you never inadvertently spend a rare ordinal!
Wallet | Ordinal-safety | Inscription-safety |
---|---|---|
OKX | ✅ | ✅ |
Unisat | ✅ | ✅ |
Xverse | ✅ | ✅ |
Magic Eden | ✅ | ✅ |
Leather | ✅ | ✅ |
Just two simple steps:
-
Add dependency:
pnpm install @ordzaar/ord-connect
-
Import ord-connect into your dApp:
import { Chain, Network, OrdConnectProvider, OrdConnectKit } from "@ordzaar/ord-connect"; export default function YourReactComponent() { return ( <OrdConnectProvider network={Network.TESTNET} chain={Chain.BITCOIN}> <OrdConnectKit /> </OrdConnectProvider> ); }
The following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You'll need to have pnpm
installed on your system. If it's not yet installed, you can get it via npm using:
npm install -g pnpm
To develop ord-connect, navigate to the ord-connect directory, install the necessary packages and serve the project:
cd packages/ord-connect
pnpm install
pnpm dev
The sample playground component is located at packages/ord-connect/src/main.tsx
.
Changes made to the code will be reflected immediately.
For inter-repo local testing:
-
Link the global package to the local project:
pnpm link packages/ord-connect --global
-
cd
to any repo of your choosing (e.g., ordzaar). -
The remaining steps are identical to Quick Start.
Happy coding! For any issues or feature requests, please raise an issue in the GitHub repository.