The contracts SDK allows you to build your own smart contracts by providing:
- Base contracts that you can build upon, such as ERC721Base.
- Contract extensions you can implement, such as Permission Controls and Royalty Fees.
To get started, install the SDK into your Solidity project:
npm install @thirdweb-dev/contracts
Why use the SDK?
By building with our contracts SDK, you:
- Gain access to powerful, audited contract extensions you can import and implement in your smart contracts.
- Unlock the features of Dashboard and SDK on your own smart contracts.
Each feature you implement in your smart contracts unlocks functionality in both the dashboard and SDK to help you build applications on top of them.
For example, if you implement the ERC721Base, you'll unlock the
mint button in the dashboard and
can use the mint function in the SDK; which automatically uploads and pins your metadata to IPFS!
How It Works
You can think of the our contracts SDK as building blocks that help you enrich your smart contracts with features.
Some blocks come packaged together as Base Contracts, which come with a full set of features out of the box that you can modify and extend. Other (smaller) blocks are Contract Extensions, which provide a way for you to pick and choose which individual pieces you want to put into your contract; with full customization of how those features work.
With both Base Contracts and Contract Extensions, you add and customize functionality by creating a contract that inherits the logic of the contract extension(s) you want to use and combining them along with your custom logic.