Contract Tracking

Use the VeChain SDK to identify smart contract addresses and extract their original deployers from the blockchain.

Beginner

15 minutes

ThorClient, txOrigin vs. gasPayer, Externally Owned Accounts (EOAs), and Event Filtering.

Prerequisites

Basic knowledge of JavaScript and a curiosity for Web3.

Mastering Contract Tracking on VeChainThor 🕵️‍♂️

Welcome to the lab! Ever wondered who is behind the latest trending smart contract? In this series, you’ll learn how to identify the "architects" (deployers) of the VeChainThor ecosystem. Whether you're building a developer dashboard or just curious about ecosystem growth, knowing how to find contract creators is a vital skill.

Skills you'll acquire:

  • Setting up the VeChain SDK in a JavaScript environment.

  • Differentiating between user wallets and smart contracts using the hasCode flag.

  • Filtering raw event logs to find the txOrigin of a contract deployment.