Browse all Cairo Smart Contracts articles.

15 min read
ERC-20 Token on Starknet ERC-20 tokens on Starknet work the same way as on Ethereum. In fact, STRK (Starknet's fee token) is itself an ERC-20 token; there's no special "native" token at the protocol...
Last updated on Dec 10, 2025
17 min read
Cheatcodes in Starknet Foundry A "cheatcode" in Foundry is a mechanism that allows contract tests to control environment variables such as caller address, the current timestamp, and so on. In this...
Last updated on Dec 10, 2025
7 min read
Function Visibility in Cairo Cairo does not have "internal" and "pure" modifiers (or any other modifiers for that matter) like Solidity does. Recall that marking an block with tells Cairo to include...
Last updated on Dec 10, 2025
10 min read
Type Casting Type casting in Cairo is the process of converting values from one data type to another. This becomes necessary when working with Cairo's strict type system, where explicit type matching...
Last updated on Dec 10, 2025
3 min read
FFT Friendly Finite Fields In order to carry out the FFT algorithm in a finite field (the Number Theoretic Transform), there needs to be $k$-th roots of unity such that $k$ is a power of 2. Ideally,...
Last updated on Nov 21, 2025
4 min read
Smart contract creation cost Smart contract creation cost can be anywhere from \$10 to \$2,000 assuming ETH costs between \$1,500 to \$2,000. The biggest factors are 1) Ethereum price, 2) the size of...
Last updated on Oct 29, 2025
46 min read
Smart Contract Security !smart contract security This article serves as a mini course on smart contract security and provides an extensive list of the issues and vulnerabilities that tend to recur in...
Last updated on Oct 29, 2025
Solana Smart Contract Programming Language !Rust code from the Metaplex library Solana programming language The primary Solana programming language is Rust, but C, C++, and even Python are supported....
Last updated on Oct 29, 2025
Three ways to detect if an address is a smart contract This article describes three methods in Solidity for determining if an address is a smart contract: Check if . This is not a recommended method,...
Last updated on Oct 29, 2025
Learn Solidity: Easy to Learn, Hard to Master? Is Solidity hard to learn? Learning solidity as a language is arguably one of the easier languages to learn. However, learning the Ethereum environment...
Last updated on Oct 29, 2025
7 min read
Solidity Gasleft Introduction The purpose of this article is to describe the behavior of the Solidity function and its uses. It is a built-in function that is used to check the remaining gas during a...
Last updated on Oct 29, 2025
Over 150 interview questions for Ethereum Developers All of these questions can be answered in three sentences or less. Easy What is the difference between private, internal, public, and external...
Last updated on Oct 29, 2025