New to blockchain software development? Read my beginners guide here

Guide to using Open Zeppelin smart contracts

Created on August 2022 β€’ Tags: solidityethereumguides

A guide and links to the common and useful Open Zeppelin smart contracts

OpenZeppelin is a company that offer free and open source framework for creating smart contracts.

(They also offer other services, such as smart contract audits).

Their smart contracts cover many ERC standard interfaces. As of the type of writing the current version of their contracts is v4.

You can find them on https://docs.openzeppelin.com/contracts/4.x/

Some of the most common OpenZeppelin smart contracts are:

You can install them with:

npm install @openzeppelin/contracts

and then use them in your smart contracts like this:

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract YourNFT is ERC721 {
constructor() ERC721("YourNFT", "YNFT") {
}
}

There are lots of Solidity utilities you can import in such as:

Spotted a typo or have a suggestion to make this crypto dev article better? Please let me know!

See all posts (70+ more)

See all posts (70+ more)

Was this post helpful? πŸ“§

If you liked this content and want to receive emails about future posts like this, enter your email. I'll never spam you.

Or follow me on @CryptoGuide_Dev on twitter

By using this site, you agree that you have read and understand its Privacy Policy and Terms of Use.
Use any information on this site at your own risk, I take no responsibility for the accuracy of safety of the information on this site.