
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@vechain/contract-getters
Advanced tools
A simple, beginner-friendly library for reading data from VeChain smart contracts. No complex setup required - just install and call functions! Works with any JavaScript/TypeScript project and integrates seamlessly with existing VeChain SDK projects.
# Using yarn
yarn add @vechain/contract-getters
# Using npm
npm install @vechain/contract-getters
# Using yarn
yarn add @vechain/vechain-contract-types @vechain/sdk-network ethers
# Using npm
npm install @vechain/vechain-contract-types @vechain/sdk-network ethers
There are 4 ways to use VeChain Getters, from simplest to most customized:
import { getVot3Balance } from '@vechain/contract-getters';
// Just call the function - no setup needed!
const balance = await getVot3Balance(
'0x66E9709bc01B8c0AfC99a7dC513f501821306E85',
);
console.log(`Balance: ${balance}`);
import { getVot3Balance } from '@vechain/contract-getters';
const balance = await getVot3Balance(
'0x66E9709bc01B8c0AfC99a7dC513f501821306E85',
{
networkUrl: 'https://testnet.vechain.org',
},
);
import { ThorClient } from '@vechain/sdk-network';
import { VeChainClient, getVot3Balance } from '@vechain/contract-getters';
// Use your existing ThorClient
const thorClient = ThorClient.at('https://testnet.vechain.org');
const vechainClient = VeChainClient.from(thorClient);
const balance = await getVot3Balance(
'0x66E9709bc01B8c0AfC99a7dC513f501821306E85',
{
client: vechainClient,
},
);
import { VeChainClient, getVot3Balance } from '@vechain/contract-getters';
const vechainClient = VeChainClient.create({
nodeUrl: 'https://testnet.vechain.org',
overrideAddresses: {
vot3ContractAddress: '0x6e8b4a88d37897fc11f6ba12c805695f1c41f40e',
// ... other contract addresses
},
});
const balance = await getVot3Balance(
'0x66E9709bc01B8c0AfC99a7dC513f501821306E85',
{
client: vechainClient,
},
);
FAQs
Framework-agnostic VeChain getters (read-only).
The npm package @vechain/contract-getters receives a total of 160 weekly downloads. As such, @vechain/contract-getters popularity was classified as not popular.
We found that @vechain/contract-getters demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.