SDK Packages
Install the packages your DApp needs to connect to D9 Wallet and interact with the chain.
| Package | Purpose | Version |
|---|---|---|
@d9-network/dapp-connector |
Connect to D9 Wallet, read accounts, and request signatures | 0.2.0 |
effect |
Runtime required by the wallet connector | 4.0.5 |
polkadot-api |
Query chain state and build typed transactions | 3.3.0 |
1. Install the wallet connector
Section titled “1. Install the wallet connector”npm install --save-exact @d9-network/dapp-connector@0.2.0 effect@4.0.5Use --save-exact to pin the tested versions.
2. Set up chain access
Section titled “2. Set up chain access”If your DApp reads on-chain state or submits transactions, install polkadot-api@3.3.0 and generate the d9 descriptors by following Generate PAPI 3 descriptors.
Verify
Section titled “Verify”Run npm ls @d9-network/dapp-connector and confirm it reports 0.2.0.
Next steps
Section titled “Next steps”- Configure the wallet connector in Connector API.
- Query balances and format amounts in Read the Chain.
