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

Prerequisites

PreviousIntroduction to the Ethereum Virtual Machine (EVM)NextWrite a Smart Contract

Last updated 11 months ago

MetaMask Extension

MetaMask is both an Ethereum browser and wallet. It allows interaction with smart contracts on the web. Follow these steps to set up MetaMask for the BasedAI Cyan Testnet:

  • Download and install MetaMask: Visit the MetaMask website and follow the instructions to add the extension to your browser.

  • Create a new wallet or import an existing one: Open MetaMask, follow the prompts to create a new wallet or import an existing wallet using your seed phrase.

  • Add BasedAI Testnet RPC node details to your extension:

    1. Open MetaMask and click on the network dropdown at the top left.

    2. Click "Add Network"

    3. Select "Add a network manually" and enter the following details:

      • Network Name: Cyan Testnet

      • New RPC URL: https://cyan.basedaibridge.com/rpc

      • Chain ID: 42

      • Symbol: BASED

After that, you only need to acquire Cyan testnet tokens to begin writing your contracts.

Submit your Faucet request here.