website logo
WebsiteGithubDiscordTwitterTelegram
⌘K
Get started
Welcome to peaq
Introduction to peaq
Our mission
Our vision
Learn
Networks overview
Economics
Tokens & Token Utility
Why Polkadot
Tech stack
Source code
Important links
Security Assessment Reports
Builders
Get started
Build
Integrate
Get inspired
Grants & Funding
Ecosystem and Community Initiatives
User Interfaces
peaq control
peaq App
Node operators
Run a node
Tokens & Earn
Agung tokens (Faucet)
Wallets
Docs powered by archbee 
4min

Solidity Smart Contract

  1. Add peaq network in metamask wallet and switch to peaq network. Here are the details of the network: ● Network name - agung ● New RPC URL - https://erpc.agung.peaq.network ● Chain ID - 9999 ● Currency symbol - agung

2. Open Remix IDE on any of your browsers, select the New File, and enter the file name to create a file for the smart contract.



3. Paste your solidity contract code in that file.



4. Now go to the solidity compiler and click on the compile and “compile and run script” buttons to check for any errors before deploying the contract.



5. To Deploy the contract, go to the DEPLOY & RUN TRANSACTIONS tab and select the following options:

  • Environment - Injected Provider metamask.
  • Account - Select the account you want to deploy the contract with.
  • Contract - Select the contract you want to deploy.


After the click on deploy to deploy the contract.

You can check the logs in the terminal to check whether the transaction was successful.



You can also check the transaction in metamask wallet as well.





Did this page help you?
Yes
No
UP NEXT
Functions
Docs powered by archbee