Smart Contract

Reverting Transactions: Learning to use require

Revert Message Call Revert Require Often you’ll see require used like this: Revert Revert can be used with a string revert(“Unauthorized”) or, better yet: 👆⛽️ Gas Efficient! Assert Use assert with things that should not happen: Hands-on Learn Solidity. Alchemy University.Accessed January 1, 2025https://university.alchemy.com/overview/solidity

Reverting Transactions: Learning to use require Read More »

, ,

Message Calls: Learn how to use .call to send ether

Message Calls 💡 Message calls are actions taken to communicate with a smart contract. 💡 EOA can communicate with a smart contract or a smart contract can communicate with another smart contract. Message Call Breakdown How Do EOAs and Contracts Call Other Contracts? What does that look like? Can any method call receive ether? Only payable methods

Message Calls: Learn how to use .call to send ether Read More »

,

Functions: Learning how Solidity functions work

Function Visibility Function visibility refers to how and where a function can be called from. It defines the scope in which a function can be accessed and whether it is accessible from external users, derived contracts, or only within the contract itself. Four visibility specifiers for functions: Notes:External functions can be called via transactions from

Functions: Learning how Solidity functions work Read More »

,

Learn Solidity at Alchemy University

Learn Solidity covers the language’s essentials, starting from basic value types like int, uint, and bool, to more complex features such as address interactions, reference types like arrays, structs, and mappings, and applied practices with real-world contract examples and inheritance. Hands-on IDE practice and engaging video content offer immediate feedback, ensuring a comprehensive understanding. This

Learn Solidity at Alchemy University Read More »

,

Smart Contracts Overview: Looking at contract deployment and transactions

A smart contract is blockchain-deployed code. For example: Deploying a Contract Contract Deployment Opcodes https://ethereum.org/en/developers/docs/evm/opcodesGas is a unit used to measure the computational work required to execute operations on the blockchain. Key Takeaways Transaction Life Cycle 💡 Externally Owned Account (EOA) refers to an account managed by a user through private keys rather than by

Smart Contracts Overview: Looking at contract deployment and transactions Read More »

,