Watch Latest Shows & Videos on Our Official YouTube Channel – BLOCKBYTES

Facebook Twitter Youtube Instagram Tiktok Linkedin Spotify
Blockbytes
  • Home
  • Shows
    • Across The Chains
    • Beyond the Block
    • Featured By Blockbytes
    • The Workflow
    • Byte Sized Videos
    • Quickflip Polygon
    • Legacy Content
  • Articles
    • News
    • Getting Started
    • Project Overviews
    • DeFi
    • NFTs
    • Networks
      • Polygon
      • Iota + Shimmer
      • Fantom
      • Aurora
  • BlockBytes Weekly
  • Meet the Team
    • About Us
    • Contact
Reading: How To Verify a Contract Address
Share

  • bitcoinBitcoin(BTC)$16,787.14
  • ethereumEthereum(ETH)$1,210.10
  • tetherTether(USDT)$1.00
  • usd-coinUSD Coin(USDC)$1.00
  • binancecoinBNB(BNB)$247.45
  • binance-usdBinance USD(BUSD)$1.00
  • rippleXRP(XRP)$0.344393
  • dogecoinDogecoin(DOGE)$0.073311
  • cardanoCardano(ADA)$0.250973
  • matic-networkPolygon(MATIC)$0.79

Aa
Blockbytes
  • Home
  • Shows
  • Articles
  • BlockBytes Weekly
  • Meet the Team
Search
  • Home
  • Shows
    • Across The Chains
    • Beyond the Block
    • Featured By Blockbytes
    • The Workflow
    • Byte Sized Videos
    • Quickflip Polygon
    • Legacy Content
  • Articles
    • News
    • Getting Started
    • Project Overviews
    • DeFi
    • NFTs
    • Networks
  • BlockBytes Weekly
  • Meet the Team
    • About Us
    • Contact
Have an existing account? Sign In
Follow US
Facebook Twitter Youtube Instagram Tiktok Linkedin Spotify
Blockbytes > Blog > Article > Getting Started > How To Verify a Contract Address
Getting Started

How To Verify a Contract Address

Corval
Last updated: 2022/10/18 at 7:55 PM
Corval Published August 22, 2022
Share

Like the city of Troy, the only way to breach your wallet\’s defenses is with some deception. So long as you are the sole holder of your private key, no one can interact with your funds without your explicit approval. For this reason, we must be particularly vigilant when deciding which transactions and contracts we approve. Today I will be showing you how to verify a contract address so you that you only approve contracts you actually know.

Contents
Verify an AddressVerifying a ContractObtaining the Contract AddressVerifying the ContractFinal Thoughts

Verify an Address

I’ll be using Metamask and FTMScan to demonstrate how to verify an address on FTM, but the process should be the same for all wallets and block EVM compatible block explorer.

\"\"/

First things first, let’s take a look at our own wallet. Open the MetaMask browser extension and you should see this at the top:

\"\"/

If you click the three dots on the right you will open this menu. Click the “View Account in Explorer” prompt to automatically open a new tab displaying your wallet in the appropriate block explorer.

\"\"/
Block Explorer displaying my test wallet \”poop\”.

Here you can review transactions that your address has participated in over its entire history. The transactions tab shows all the transactions using this particular blockchain’s coin, in this case FTM. You can click on any address on or TXN Hash on this page to see more info about that particular address or transaction.

If you want to check transactions of different tokens on this particular chain you would click the ERC-20 Token Txns tab. This would show all transactions involving things like BEETS, BOO, SPIRIT, etc.

The last tab of interest is the ERC-721 Token Txns tab. Here you will see all NFT transactions that have occurred on this address.

You can filter transactions by type, sending address, and receiving address.

With these tools we can verify activity in our own wallet and see exactly what addresses and contracts we have interacted with in the past.

Very handy if you are trying to figure out how or why a token entered your wallet!

Verifying a Contract

Now that we\’ve seen what a regular wallet address looks like, let\’s take a look at a smart contract.

Quick refresher: A smart contract is code deployed on the blockchain. These contracts can do many things, including route funds, liquidity pools, and DEXs, etc. These contracts have addresses just like your wallet and tokens do. You could get into serious trouble if you sent tokens to a contract address when you meant to send them to a wallet address! Contracts are very powerful and immutable, so it is essential that we are interacting with the appropriate ones. Accidental transactions often can not be rolled back or refunded!

Obtaining the Contract Address

To verify an address, the first thing we will need is an address! Let\’s grab ones from SpookySwap. We can do this by initiating a transaction or approval request on the pool we are interested in. In the example I\’m looking at the FTM-DEUS pool on SpookySwap.

\"\"/

When you first submit any transaction on any site you should receive a message in your MetaMask that looks like the image on the left.

Before we approve anything, let\’s verify that address that is asking for approval. You can copy and paste it into FTMScan directly or click that arrow button and it should open up FTMScan with the address pre loaded.

\"\"/
You will end up here

It looks a bit bare doesn\’t it? That\’s because this address is for one of the many contracts that makes up the entire SpookySwap system, specifically the placeholder token for approvals. If we click on the contract tab we can get some more information.

\"\"/
The contract tab

On the contract tab we can read all the functions and addresses tied to this contract. If you explore this page some more you will even see some spots where you can query the contract for data directly from the blockchain. We will go into this functionality more in depth in later articles.

There isn\’t too much information we can use on this page for verifying that this is indeed the correct SpookySwap contract. If we click on the contract address in the top-right, we can see the parent contract that this one interacts with.

Verifying the Contract

\"\"/
The contract\’s address page on FTMScan

After clicking the parent contract address, we will land on a page with tons of information. Here we can really verify that this is a legitimate contract. We can review the transaction history, which address created this contract and even the actual code of this contract.

While we can examine the transaction history and confirm that this contract has seemingly legitimate transactions, the best place for verification is the Contract tab. Let\’s head over there.

\"\"/
The contract tab

On the contract tab we find that this contract has been verified. This is excellent because it means that the code itself is clearly visible. We could audit its functionality itself directly from the browser if we wanted! We also see that this contract is an exact match for MasterChefV2. This is another good sign that this contract is safe to interact with.

Since we are familiar with MasterChef and know it to be legitimate, we can with high certainty conclude that this is a legitimate approval transaction for SpookySwap. After all, our initial transaction was to enter a farm on their site and MasterChef is the exact contract that handles that.

Final Thoughts

After this walkthrough, you should be a bit more comfortable using MetaMask and block explorers. While we did not cover their full functionality, simple verification like this will be incredibly useful if you\’re building Web 3 apps or just transacting through these services. If you have any questions, feel free to reach out! You can reach me on Twitter @MasonCorval and on Discord at Corval#1788.

You Might Also Like

What are Stablecoins?

What is Proof of Stake?

NEAR Ecosystem Overview September 2022

What is Ethereum?

TAGGED: Block Explorer, Getting Started, Security

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.

By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share this Article
Facebook Twitter Email Copy Link Print
Previous Article Crypto Limit Order: What is it and How Can I Profit?
Next Article What You Need to Know to Cross Chain Swap
- Subscribe Us-
Ad image
Popular News
Arbitrum Top 5
Five Arbitrum Projects to Watch in 2023
Thena
THE Thena Overview
Signature Bank
The Latest Crypto Bank Closure – Signature Bank joins SVB and Silvergate Bank
Silvergate
The First Domino – The End of Silvergate Bank
USDC DEPEG
USDC DEPEG: CIRCLE’S ROLLERCOASTER OF A WEEKEND

Latest News

Arbitrum Top 5
FeaturedNetworks

Five Arbitrum Projects to Watch in 2023

March 24, 2023
Thena
Project Overviews

THE Thena Overview

March 24, 2023
Signature Bank
Editor's PicksNews

The Latest Crypto Bank Closure – Signature Bank joins SVB and Silvergate Bank

March 14, 2023
Silvergate
Editor's PicksNews

The First Domino – The End of Silvergate Bank

March 14, 2023

Stay Connected

Twitter Youtube

Subscribe

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Register Lost your password?