Skip to main content

Pre-Built Contracts

Pre-built contracts are written by the thirdweb team, and cover the most common use cases for smart contracts; each of them are:

  • Open source and free to deploy (excl. gas fees)
  • Audited and supported by our bug bounty program
  • Fully owned by the contract deployer (you)
  • 10x cheaper to deploy than traditional contracts

NFT Contracts

NameDescription
Loyalty CardIssue unique loyalty cards to your customers.
NFT CollectionCreate a collection of unique NFTs.
EditionCreate editions of ERC-1155 tokens.
PackPack multiple tokens into a ERC1155 NFTs that act as randomized loot boxes.
Open Edition ERC721An open-to-mint ERC-721 NFT collection where all NFTs have shared metadata
Edition DropLazy mint ERC-1155 tokens for others to claim.
NFT DropLazy mint ERC-721 tokens for others to claim.

Marketplaces

NameDescription
MarketplaceBuy and sell ERC-721/ERC-1155 tokens.
TokenCreate a collection of unique NFTs.
SplitDistribute funds among multiple recipients.

Drops

NameDescription
NFT DropLazy mint ERC-721 tokens that others can claim.
Edition DropLazy mint ERC-1155 tokens that others can claim.
Signature DropSignature based minting of ERC-721 tokens.
Token DropDistribute funds among multiple recipients.

Smart Wallet

NameDescription
Account FactoryDeploy immutable smart wallets for your users
Dynamic Account FactoryDeploy upgradeable smart wallets for your users.
Managed Account FactoryDeploy upgradeable smart wallets for your users with the ability to push updates to all users.

Airdrops

NameDescription
Airdrop ERC-20Airdrop ERC-20 tokens or the chain's native token to a list of recipients.
Airdrop ERC-721Airdrop ERC-721 NFTs to a list of recipients.
Airdrop ERC-11556Airdrop ERC-1155 NFTs to a list of recipients.

Staking

NameDescription
Stake ERC-20Contract for staking ERC-20 tokens, for another ERC-20 token as rewards.
Stake ERC-721Contract for staking ERC-721 NFTs, for ERC-20 tokens as rewards.
Stake ERC-1155Contract for staking ERC-1155 NFTs, for ERC-20 tokens as rewards.

DAOs & Governance

NameDescription
VoteCreate and vote on proposals.
TokenCreate cryptocurrency compliant with ERC-20 standard.
SplitDistribute funds among multiple recipients.

How Pre-Built Contracts Work

Each contract extends the extensions that are available in our Solidity SDK, and all come with a standard set of features that enable fine-grained control over the contract's behavior, such as:

When you deploy a prebuilt contract, you are actually deploying a proxy contract; which reduces the gas cost for you by ~90%!

This works by having our smart contracts run the underlying logic, meaning you only deploy the code that is unique to your contract.

The proxy contract stores the state, for example; its name, and what NFTs have been minted so far. For any logic (such as how to mint an NFT), it delegates to the implementation smart contract to handle, since this logic is the same for every NFT collection.

You still maintain 100% ownership of the contract.

Proxy Contract Flow