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
  • Install dedot package
  • Enable auto-completion/IntelliSense
  • Next

Was this helpful?

Edit on GitHub
  1. Getting started

Installation

PreviousGetting startedNextConnect to network

Last updated 8 months ago

Was this helpful?

Let's install Dedot to your project and start connecting to blockchain networks

Install dedot package

Dedot provides an umbrella package named dedot, it's the only package you need to install to access to most of the primitives & APIs when you're working with Dedot.

npm i dedot
yarn add dedot
pnpm add dedot

Enable auto-completion/IntelliSense

Each Substrate-based blockchain has their own set of Data Types & APIs to interact with, so being aware of those Types & APIs when working with a blockchain will greatly improve the overall development experience. Dedot exposes TypeScript's Types & APIs for each individual Substrate-based blockchain via interfaces, we recommend using TypeScript for your project to have the best experience.

Types & APIs for each known Substrate-based blockchains are defined in package

npm i -D @dedot/chaintypes
yarn add -D @dedot/chaintypes
pnpm add -D @dedot/chaintypes

Make sure to install @dedot/chaintypes as a dev dependency.

Next

After setting up your project & installing all the necessary packages, let's start connecting to a blockchain network and have some fun!

ChainApi
@dedot/chaintypes