LogoLogo
Phron AIopenPhronDocs
  • Build with Phron AI
  • Quick Start
    • Rust toolchain
    • Install
    • Developer CLI Tools
  • Learn
    • Why Substrate
    • Ethereum Compatible
    • Governance on PhronAI
  • Use
    • Wallets
    • Explorer
    • Bridge
    • Staking
      • Menu Overview
      • How to Start Staking with the Phron Dashboard
      • How to Change Nominations
      • How to Stop Staking
      • Staking Rewards
    • Validate
    • Dashboard
  • Build with PhronAI
    • SDKs and Tools
      • Ethereum
        • Contracts
        • Libraries
          • Ethers.js
          • Ethers.rs
          • Web3.js
          • Web3.py
        • Dev Environments
          • OpenZeppelin
            • Overview
            • Contract Wizard
            • Defender
          • Ape
          • Brownie
          • Foundry
          • Hardhat
          • Remix
          • Scaffold-PHR
          • Tenderly
          • thirdweb
          • Waffle & Mars
        • Contract Verification
          • PhronScan
        • RPC APIs
          • Standard Ethereum
          • Non-standard Ethereum: Tracing
      • Substrate
        • Libraries
          • Polkadot.js
          • Py substrate interface
        • Dev Environments
          • Chopsticks by Acala
    • Smart Contracts Development
      • Solidity Contracts
        • Phron API
          • Project Overview
          • Prerequisites
          • Steps to Set Up
          • Contract Architecture
          • Contract Functions
          • Testing
          • Deployment
          • Security Considerations
          • Using Foundry Start to End with Phron
          • How to Build a DApp: Complete DApp Architecture
        • Phron Toolkit
          • Libraries
            • Ethers.js
            • Ethers.rs
            • viem
            • Web3.js
            • Web3.py
          • Dev Environments
            • OpenZeppelin
              • Overview
              • Contract Wizard
              • Defender
            • Ape
            • Brownie
            • Foundry
            • Hardhat
            • Remix
            • Scaffold-PHR
            • Tenderly
            • thirdweb
            • Waffle & Mars
          • Verify Contracts
            • PhronScan
          • JSON-RPC APIs
            • Standard Ethereum
            • Non-standard Ethereum: Tracing
      • Rust Contracts
        • Phron smart contracts basics
          • Setting up a Testnet account
          • Installing required tools
          • Creating your first contract
          • Deploying your contract to Phron Testnet
          • Extending your contract
        • Cross contract calls
          • Using references
          • Using dynamic calls
Powered by GitBook
On this page
Export as PDF
  1. Build with PhronAI
  2. Smart Contracts Development
  3. Rust Contracts

Phron smart contracts basics

Join us on the Phron Testnet to explore smart contract functionalities—this guide will walk you through setting up, deploying, testing, and accessing tools to build secure and scalable dApps.

This brief tutorial will introduce you to the basics of smart contract functionality on the Phron Testnet. In the following sections, we'll guide you through setting up your Testnet account, preparing your computer for smart contract development, writing, compiling, and deploying your contracts, and finally, interacting with your deployed smart contracts.

Note: Smart contracts are now also live on the Phron Mainnet.

PreviousRust ContractsNextSetting up a Testnet account