LogoLogo
HomeBased Labs ResearchWhitepaper
  • 1: Introduction
    • BasedAI Mainnet Q&A Guide
    • Is Your AI Based?
    • BasedAI Ecosystem
    • The Role of Based CLI
  • 2: Installation
    • Minimum Requirements and Prerequisites
    • Installation Instructions
    • Verification of Installation & Troubleshooting
  • 3: Interaction with [Brains] and [Brainstore]
    • Section Overview
  • Using [basedcli brains]
    • [stem]: Retrieving Brain Information
    • [pow_memorize]: Registering Wallets with PoW
    • [memorize]: Associating Wallets with Brains
    • [parameters]: Viewing and Setting Brain Parameters
    • [list]: Viewing All Brains
  • Using [basedcli brainstore]
    • [list]: Accessing Community-Approved Brains
  • 4: Interaction with [Core] Network Operations
    • Section Overview
  • Using [basedcli core]
    • [list]: Listing Core Network Components
    • [weights]: Adjusting Influence on the Network
    • [get_weights]: Reviewing Current Distribution
    • [vote]: Participating in Governance
    • [gigabrains]: Viewing Current GigaBrains
    • [memorize]: Ensuring Network Recognition
    • [proposals]: Insight into Network Proposals
    • [delegate] & [undelegate]: Managing Staked Influence
  • 5: [Wallet] Functionality and Transactions
    • Section Overview
  • Using {basedcli wallet]
    • [list]: Viewing All Wallets
    • [overview]: Comprehensive Wallet Summary
    • [transfer]: Executing Token Transfers
    • [create]: Setting Up a New Wallet
    • [new_computekey] & [new_personalkey]: Generating Additional Keys
    • [regen_personalkey], [regen_personalkeypub], & [regen_computekey]: Regenerating Keys
  • 6: [Stake] Mechanics and [BrainOwner] Tools
    • Section Overview
  • Using [basedcli stake]
    • [show]: Show Stakes in Wallets
    • [add] & [remove]: Add or Remove Stakes
  • Using [basedcli brainowner]
    • [get]: Retrieve Brain Rules and Parameters
    • [set]: Adjusting Brain Parameters
  • 7: Commands Reference
    • Reference Table
  • 8: Implementing Smart Contracts in BasedAI
    • Introduction to the Ethereum Virtual Machine (EVM)
    • Prerequisites
    • Write a Smart Contract
    • Test & Deploy a Smart Contract
    • Tools and Technologies
    • Advanced Example: $PUMP Memecoin Launchpad
    • Advanced Example: AI Marketplace
    • Advanced Example: Brain #88 Access Token
  • 9: Forms
    • $BASED Faucet
    • Test Brain Ownership
    • Test Brain Tokens
Powered by GitBook
On this page
  1. 8: Implementing Smart Contracts in BasedAI

Introduction to the Ethereum Virtual Machine (EVM)

The Cyan Testnet phase introduces EVM functionality to the public BasedAI protocol. The below guide serves as an introduction to EVMs and a guide on how to get your smart contract deployed.

PreviousReference TableNextPrerequisites

Last updated 11 months ago


The following section outlines the steps for creating and deploying smart contracts on the BasedAI Cyan Testnet. The process is very similar to creating smart contracts on Ethereum, since BasedAI is outfitted with EVM compatibility.

What are Smart Contracts?

Smart contracts are digital agreements executed on a blockchain, eliminating the need for intermediaries. They are self-executing contracts where the terms of the agreement are directly written into code.

What is Solidity?

Solidity is a high-level, statically-typed programming language designed for writing smart contracts. It is influenced by C++, Python, and JavaScript, making it accessible for a wider audience of developers. It is recommended to have at least an introductory knowledge of one of these three languages before writing smart contracts with Solidity. This is also a great place to start.

What is the Ethereum Virtual Machine (EVM)?

The EVM is the runtime environment for smart contracts on the Ethereum blockchain. It executes contract code, manages state changes, and ensures the deterministic nature of contract execution. BasedAI's EVM-compatible architecture enables contract deployment and execution on its own blockchain.

"Beware the trickster's fog, and trust in the light within, traveler..."