
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
Delightful JavaScript/TypeScript client for Polkadot & Polkadot SDK-based blockchains.
👉 Join our Telegram group to receive the latest updates and support!! 👈
Dedot is the next-generation JavaScript client for Polkadot and Polkadot SDK-based blockchains. Designed to elevate the dapp development experience, Dedot is built & optimized to be lightweight and tree-shakable, offering precise Types & APIs suggestions for individual Polkadot SDK-based blockchain network and ink! Smart Contracts. Dedot also helps dapps efficiently connect to multiple chains simultaneously as we head toward a seamless multi-chain future.
@polkadot/api, easy & fast migration!@polkadot/extension-based wallets[!TIP] Are you building dapps on Polkadot?
Check out Typink (https://typink.dev), a comprehensive toolkit for dapps development, powered by Dedot!
Check out Dedot documentation on the website: https://dedot.dev
npm i dedot # or yarn, pnpm
npm i -D @dedot/chaintypes
import { DedotClient, WsProvider } from 'dedot';
import type { PolkadotApi } from '@dedot/chaintypes';
const provider = new WsProvider('wss://rpc.polkadot.io');
const client = await DedotClient.new<PolkadotApi>(provider);
// Get current best block
const bestBlock = await client.block.best();
console.log('Best block:', bestBlock.number, bestBlock.hash);
// Subscribe to finalized blocks
const unsub = client.block.finalized((block) => {
console.log('Finalized block:', block.number);
});
// Query on-chain storage
const balance = await client.query.system.account(<address>);
console.log('Balance:', balance);
// Get pallet constants
const ss58Prefix = client.consts.system.ss58Prefix;
console.log('Polkadot ss58Prefix:', ss58Prefix);
// Call runtime api
const pendingRewards = await client.call.nominationPoolsApi.pendingRewards(<address>);
console.log('Pending rewards:', pendingRewards);
// Sign and send transaction
const result = await client.tx.balances.transferKeepAlive(<dest>, 1_000_000_000_000n)
.signAndSend(signer).untilFinalized();
// Disconnect
await client.disconnect();
Dedot take a lot of inspirations from project @polkadot/api. A big thank to all the maintainers/contributors of this awesome library.
Proudly supported by Web3 Foundation Grants Program.
FAQs
A delightful JavaScript/TypeScript client for Polkadot & Substrate
The npm package dedot receives a total of 689 weekly downloads. As such, dedot popularity was classified as not popular.
We found that dedot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.