Transactions—The Records of Action 📝
Think of the blockchain as a giant, shared ledger. On VeChain, a transaction is simply a record of an action, like moving tokens or triggering a contract.
Nice! Every transaction is a signed request to change something permanently on-chain. Once it is confirmed, it becomes a part of an immutable history that anyone can query.
In JavaScript, this means...
you interact with contracts in two main ways: Read and Write.
Read Operations are like looking at a sign in a window; they don't change anything, they cost no gas, and they don't require a signature. You use these for "View" or "Pure" functions, such as checking a user's status.
Write Operations are different! They modify the blockchain's state, require a user signature, and consume gas (VTHO).
You're getting it! Writing to the ledger creates a permanent record, like minting an NFT or adding a new record to a database.
Join our Telegram