Skip to main content


thirdweb logo

thirdweb TypeScript SDK

A type-safe library to interact with any EVM-compatible blockchain in both Node.js and the browser.

Connect to users wallets, interact with smart contracts, sign messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in RPC URLs, IPFS gateways, and more.

Open Source

The TypeScript SDK is open-source. You can view the source code and contribute to it on GitHub.

Installation

npm i @thirdweb-dev/sdk ethers^5
Starter KitsTemplates GitHub

Get Started

Check out the getting started guide to learn how to use the SDK in less than 2 minutes.

How It Works

The TypeScript SDK provides a type-safe interface to interact with your smart contracts, wallets, and the blockchain.

Each extension that your smart contract implements unlock new functionality for you to use in the SDK, which does the heavy lifting for you under the hood. For example, if your smart contract implements the IMintableERC721 interface, you unlock the ability to mint NFTs in a type-safe manner, using the contract.erc721.mint method.

Instantiate an instance of the ThirdwebSDK class to connect to your smart contract and start interacting with its extensions!