docs β¦Ώ dedot πŸ§‘β€πŸ’»
TypinkXTelegramGithub
dedot πŸ§‘β€πŸ’»
dedot πŸ§‘β€πŸ’»
  • Welcome to Dedot
  • Why Dedot?
  • Getting started
    • Installation
    • Connect to network
    • @polkadot/api -> dedot
    • Packages structure
  • Clients & Providers
    • Providers
    • Clients
  • Client API
    • ChainApi
    • Constants
    • Runtime APIs
    • Storage Queries
    • Transactions
    • Events
    • Errors
  • ink! Smart Contracts
    • Introduction
    • Generate Types & APIs
    • Deploy contracts
    • Queries
    • Transactions
    • Events
    • Handle errors
  • CLI
  • Keyring & Signer
  • Runtime upgrades
  • Type system
  • Utilities
    • HexString
    • Uint8Array (U8a)
    • String
    • Hash functions
    • Address
    • BigInt & number
    • Balances
    • Merkleized Metadata
  • Help & FAQ
    • Tutorials
      • Develop ink! dApp using Typink
    • Built with Dedot
    • Forum Posts
    • Telegram
    • Github
    • API Reference
Powered by GitBook
On this page
  • Limitations of Polkadot.js API (@polkadot/api)
  • Dedot comes to address those issues
  • Dedot also comes with more & more features

Was this helpful?

Edit on GitHub

Why Dedot?

PreviousWelcome to DedotNextGetting started

Last updated 8 months ago

Was this helpful?

The idea of building Dedot was conceived & motivated from our frustration of building Dapps in the Polkadot ecosystem using @polkadot/api (pjs). @polkadot/api is a good library and was built by the great minds behind it. But over the years, its limitations haven’t been addressed yet, and this hinders developers from creating optimal Dapps for the Polkadot ecosystem and makes it really hard to onboard new developers to the ecosystem.

Please refer to the to introduce Dedot on Polkadot forum for more detailed information on why we build Dedot.

Limitations of (@polkadot/api)

  • Large bundle-size (wasm & bn.js & unused type defs)

  • High memory consumption

  • Limitations in Types & APIs suggestions for individual chains

Dedot comes to address those issues

  • Small bundle-size and tree-shakable

  • Consume Less memory

  • Types & APIs suggestion/auto-complete for individual Substrate-based chains

Dedot also comes with more & more features

  • Native TypeScript type system for scale-codec

  • Adopted latest changes in metadata V14 & V15

  • Build on top of new JSON-RPC specs (and the legacy as well but deprecated soon)

  • Support light clients (smoldot)

  • Typed APIs ink! smart contracts

  • Fully typed low level JSON-RPC client

  • A builtin mechanism to cache metadata

  • Compact Metadata πŸ”œ

  • XCM utilities πŸ”œ

  • React Native supports πŸ”œ

... and a lot more toolings around Dedot to come.

original post
Polkadot.js API