Script Network Documentation
  • Getting Started Guides
    • How to Sign Up + Sign In to Script TV
    • Using the Live TV player
    • Navigating the Script TV Dashboard (Test Phase)
    • Testnet, Explorer + Creating a Wallet (Test Phase)
    • Reward System: Script Points, Zealy, Galxe + more
  • ScriptGLASS - How to mint
  • 🎬About Script Network
    • Introduction
    • Products
    • Why Script TV?
    • How it works
    • Understanding the Script Blockchain
    • Script TV + Web3
    • Market Strategy
    • Benefits
    • Comparison
  • πŸ—ΊοΈRoadmap
  • πŸͺ™Script Tokens
    • SCPT
      • Detailed SCPT Tokenomics
    • SPAY
      • πŸ’°SPAY Tokenomics
        • πŸ•ΆοΈScriptGLASS explained
          • Economics
        • Allowable/Earnable Watch Time
      • Mechanism Design of Glasses
        • Glass Types
        • Glass Payouts
          • Durability
        • Gems
        • Levels
        • Recharge Vouchers
        • Recharge Voucher Mechanism
        • Recharge Costs
        • Glass Minting
        • Game Theory
  • 🦸For Users
    • ⛓️Blockchain Integration
      • Installation guide for Script Node setup for Win , Mac and Linux
      • Build and Install
      • Run Unit Tests
      • Launch Script Node
      • Command Line Tool
      • Steps To Upgrade The Chain
      • Account/Wallet Management
      • Call Smart Contract
      • Turing-Complete Smart Contract Support
    • Basic Concept
    • Tokens
    • Script NFTs
    • Transactions
    • Script Wallet
    • Faucet (Technical)
    • Smart Contracts
  • 🌐Script Network Explorer
    • Block APIs
    • Transaction APIs
    • Account APIs
    • Stake APIs
  • πŸ”―Nodes
    • Node Token Emissions
    • Lightning Node Overview
      • Validator / Lightning Node Setup
        • Steps To Change Node Password
        • Stake to the Lightning node
    • Lightning Staking Process
      • Lightning Stake Withdrawal Process
        • Staking through Web Wallet
  • πŸ’ Validators
    • Block Settlement
    • Steps To Migrate Lightning/Validator
  • πŸ“’Edge Documentation
    • Introduction
    • What is Edge
    • How it works
    • Edge Uses
    • Possibilities with Edge
    • Edge Features
    • Benefits
    • Use Cases
  • πŸ”—Smart Contract Development
    • πŸ’» How to quickly deploy a smart contract on Script Blockchain
  • Smart Contract & App Development
    • Turing-Complete Smart Contract
    • Ethereum RPC API support
    • Setup the ETH RPC Adaptor for the Script Testnet
    • Metamask
    • Truffle
    • Hardhat
    • Remix
    • Web3.js
    • Explorer Tools for DApp Development
    • Script Blockchain SRC20 Token Integration Guide
  • πŸ“”API References
    • Metamask Script Network RPC Details (Testnet)
    • RPC API Reference
      • Examples
      • GetBlock
        • Transaction Types
        • Request
        • GetBlockByHeight
      • GetTransaction
        • GetPendingTransactions
    • Tx APIs
      • Broadcast Raw Transaction
      • BroadcastRawTransactionAsync
    • ScriptCli APIs
      • Account APIs
        • NewKey API
        • ListKeys
        • UnlockKey
        • LockKey
        • IsKeyUnlocked
      • Tx APIs
        • Send
        • Configuration for the Script Blockchain Node
  • 🀝Referrals/Network Effects
  • πŸ›‘οΈ Audits
  • πŸ“ŠScript Network Blockchain Summary
  • Disclaimer
  • Frequently Asked Question
    • To resolve the block height issue
    • Update seed peer to resolve connectivity issue
Powered by GitBook
On this page

Was this helpful?

  1. Smart Contract Development

πŸ’» How to quickly deploy a smart contract on Script Blockchain

PreviousSmart Contract DevelopmentNextSmart Contract & App Development

Last updated 7 months ago

Was this helpful?

Below we show a quick Solidity smart contract example, compiled using Remix and deployed through the Metamask web wallet.

(A) Pre-requisites :

  1. Install in your browser

  2. Guide to add a with the parameters

Network Name: Script Testnet

New RPC URL: https://testeth-rpc-api.script.tv/rpc

Chain ID: 742

Currency Symbol (optional): SPAY

Block Explorer URL (optional): https://explorer.script.tv/

Now, We’ll walk through this process step by step.

  1. Open in your browser

  2. Next, Create a new file in Remix of your choice and copy/paste the code from the source you want or write the code their itself. Once the code is entered, click the Solidity Compiler button on the far left.

  3. Next, You’ll need to set the Compiler to the version you have used to write the code, and in the Contract field respective contract is selected. Then click the blue button that says β€œCompile {FILE_NAME}.sol”.

  1. Next, You'll need to switch to deployment button on the far left and configure or select few parameters

  • Select "Injected - Provider Metamask" from Environment dropdown which will help to connect with metamask.(Make sure to switch to script network before proceed for deployment and also make sure to have SPAY token on connected address to pay gas fees)

  • Select the main contract of your compiled contract where all the function were called or inherited into it from Contract dropdown.

  • Click the Deploy button to execute the process.

  • Click confirm button to process the contract transaction in the metamask pop-up enabled.

  • After few seconds you will get the confirmation pop up for the successful transaction and contract creation in metamask transaction activity area as well as a section enabled on remix with contract address and their respective functions.

  1. Verification of smartcontract on script explorer

  • Copy the contract address from remix and search it on explorer.

  • Switch to contract section which is next to transaction table.

  • Copy & paste the contract code and ABI compiled from remix

  • Click verify and Publish to confirm for verification

  1. After verification you will get to see the functions enabled on explorer corresponding to deployed contract with contract details.

πŸ”—
Metamask
Custom Network
Remix IDE