DEV Community

Cover image for ACCESSING NFT SMART CONTRACT CODE
steve kimoi
steve kimoi

Posted on

ACCESSING NFT SMART CONTRACT CODE

Web3 is fascinating! Did you know that you are able to access the source code of any NFT smart contract deployed in the Ethereum network?

Let's see how:

The best way to view the smart contracts is through Etherscan, an Ethereum block explorer. Etherscan allows users to easily search and browse transactions and blocks. It’s like the Google of Ethereum.

Image description

Go to Etherscan through https://etherscan.io: This is the landing page that you’ll see:

Image description

Now, we are going to search the smart contract of a popular NFT marketplace,Bored Ape Yatch Club. We will type in the symbol which is BAYC inside the search bar.

Image description

Scroll down through the filter search bar under Tokens (ERC 721).

Click on the “BoredApeYachtClub(BAYC)” and you'll be automatically redirected to the site containing the contract details.

You will immediately see this page:

Image description

On your far right you will see “Profile summary” containing the contract address, the official site link and the social profles.

Click on the contract address. This is the site that you’ll see:

Image description

Scroll downwards and you’ll immediately see this:

Image description

Click on the contract tab that has a green tick on the right. You will be immediately redirected to this page:

Image description

Scroll downwards and you’ll see the smart contract code. Fascinating!

A practical example of decentralization in web3.

Top comments (0)