thirdweb TypeScript SDK
A type-safe library to interact with any EVM-compatible blockchain in both Node.js and the browser.
Connect to user’s 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.
Installation
- npm
- yarn
- pnpm
npm i @thirdweb-dev/sdk ethers^5
yarn add @thirdweb-dev/sdk ethers^5
pnpm i @thirdweb-dev/sdk ethers^5
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 it’s extensions!