Watr Developer Portal
  • Home
  • Quickstart
    • Block Explorer
    • Creating a Polkadot Wallet
    • Requesting Watr Tokens
    • Connecting to Testnet
    • Keystore Setup
    • Submitting a Transaction
    • Building & Running Locally
  • Builders
    • Adding an Asset
    • Substrate Contracts
    • Ethereum Contracts
      • Deploy ERC-20 Contracts
      • Interact with ERC-20 Contract
      • Polkadot/Ethereum Address Translation
      • Add Watr to Metamask Wallet
      • Send WATR to/from Metamask Wallet
      • Launch local Ethereum block explorer
      • Remix
    • Watr SS58 Spec
  • Running A Node
    • Node Types
    • Standard Requirements
    • Deployment
Powered by GitBook
On this page
  1. Builders

Substrate Contracts

PreviousAdding an AssetNextEthereum Contracts

Last updated 2 years ago

The preferred way to deploy a smart contract on the Watr network is to use WASM smart contracts that are typically compiled from ink. Ink is a set of rust macros that allow for the definition of WASM contracts.

The first step is to set up your local development environment. You can follow the instructions on the Substrate website . This will create a Substrate sample contract, set up a local Substrate node, deploy your sample contract to the local node, and provide a UI to interact with your sample contract.

Go to the Polkadot JS site to deploy your contract to the Watr Devnet .

To create an ERC20-style Substrate contract, you can follow the example .

here
here
here