>

>

1. The On-Chain Brain

Setting up your Web3 Toolbox 🛠️

Hey there! Ready to start hunting for contract deployers? First, we need to plug into the network! 🔌

Think of the ThorClient as your all-access pass to the VeChainThor blockchain. It’s your entry point for reading all the data stored on-chain.

In JavaScript, this means installing the SDK and picking your playground: the Mainnet for real production or the Testnet for safe practice.

// Install these first: 
// npm install @vechain/sdk-core @vechain/sdk-network [3]

import { ThorClient } from '@vechain/sdk-network';

// Let's practice on the Testnet! 🧪
const thor = ThorClient.at("https://testnet.vechain.org"); [3]
// Install these first: 
// npm install @vechain/sdk-core @vechain/sdk-network [3]

import { ThorClient } from '@vechain/sdk-network';

// Let's practice on the Testnet! 🧪
const thor = ThorClient.at("https://testnet.vechain.org"); [3]
// Install these first: 
// npm install @vechain/sdk-core @vechain/sdk-network [3]

import { ThorClient } from '@vechain/sdk-network';

// Let's practice on the Testnet! 🧪
const thor = ThorClient.at("https://testnet.vechain.org"); [3]

Nice! You’re connected. VeChainThor is engineered for mass adoption, and with the SDK, you’re now part of that journey.

Remember: VeChainThor recently upgraded its heartbeat! It now uses Delegated Proof of Stake (DPoS) for its consensus mechanism.