The Conwai Chain

Conwai Testnet is designed to test the functionalities and capabilities of the Conwai Supralayer, allowing developers and users to explore the features of Conwai, experiment with smart contracts and simulate transactions in a safe, controlled environment without any financial implications.

The Conwai Mainnet is set to become the premier choice for generative AI builders and creators, offering an unparalleled platform that emphasizes speed, affordability, and user freedom. Designed with cutting-edge technology, Conwai Mainnet provides the ideal environment for innovators to bring their AI-driven visions to life.

For Builders and Developers

Chain ID: 3989688.

CWT Token: The native currency of the Conwai blockchain, used for transactions and paying gas fees.

(HTTP) RPC Endpoint.

(WS) RPC Endpoint.

Conwai Explorer: detailed insights into transactions, blocks, and other on-chain data.

Bridge: Bridge assets in and out of Conwai chain.

REST API Documentation: Access detailed API documentation to integrate with the Conwai Testnet.

GraphQL API: Utilize the GraphQL API for efficient querying of on-chain data.

Gas Tracker: Monitor gas prices on the testnet to optimize transaction costs.

Faucet: Claim free Conwai to use on the testnet.

Contract Verifier: Verify smart contracts on the Conwai Testnet to ensure their functionality and security.

Assets Bridging In: See bridged assets flowing into the Conwai chain.

Assets Bridging Out: See bridged assets flowing out of the Conwai chain.

Token Listings: View all tokens available on the Conwai Testnet.

Chain Statistics: Analyze chain statistics to gain insights into the network's performance and activity.

Stylus: Learn about the upcoming Stylus upgrade that allows you to build on Conwai using Rust or C++.

AI Applications

Conwai Cortex: A powerful uncensored LLM.

Wallet Analyzer: Gain insights into your wallet holdings and transaction history with a powerful language model.

Image Generator: Create unique AI-generated artworks and experience the speed of the Conwai chain.

Gamified Data Labeling: Participate in a gamified data labeling process to improve data quality and contribute to the AI community.

Building on Conwai (with Stylus)

Building on Conwai is as straightforward as developing on Ethereum due to its EVM compatibility. This means that any code written for Ethereum can be deployed on Conwai without modifications. Developers can enjoy Conwai's benefits, such as increased speed and lower costs, while using the same tools and workflows they are already familiar with.

Popular development tools like Foundry, Hardhat, Remix, and Truffle are fully supported, allowing developers to use their existing workflows and tooling seamlessly.

Foundry: a blazing-fast, portable toolkit for Ethereum application development. It offers a powerful command-line interface that simplifies testing and deploying smart contracts.

Hardhat: a comprehensive Ethereum development environment that helps developers compile, deploy, and test smart contracts. It supports advanced debugging features and local blockchain testing.

Remix: a web-based IDE for writing and testing smart contracts. It's perfect for beginners and experts alike, providing an intuitive interface and extensive plugin support.

Truffle: one of the most popular Ethereum development frameworks, offering a suite of tools for compiling, deploying, and testing smart contracts. It streamlines the development process with a powerful suite of features.

Writing Smart Contracts in Rust and C++?

With the upcoming production release of Stylus, you will be able to build on Conwai using popular programming languages, such as Rust.

  • Stylus allows you to write smart contracts in programming languages that compile to WASM, including Rust, C, C++, and many others.
  • Comprehensive language support is already available for Rust: you can use the Stylus SDK and CLI tool to start building today.
  • Stylus smart contracts benefit from Conwai's EVM equivalence through a second, equal WASM virtual machine.
  • Solidity contracts and Stylus contracts are fully interoperable. In Solidity, you can call a Rust program and vice versa.
  • Stylus contracts are significantly faster and have much lower gas fees due to the superior efficiency of WASM programs.
  • Memory can be 100-500x cheaper when using Stylus, enabling new use cases now that consuming RAM is viable on the blockchain.

Why is this important? Stylus innovates on multiple levels, with the key ones highlighted here:

  • One chain, many languages: There are roughly 20k Solidity developers, compared to 3 million Rust developers or 12 million C developers. Developers can now use their preferred programming language, all interoperable on any Arbitrum chain with Stylus. Scaling to the next billion users requires onboarding the next million developers.
  • EVM+: Stylus combines the best of both worlds. Developers still benefit from the EVM ecosystem and liquidity while gaining efficiency improvements and access to existing libraries in Rust, C, and C++. This is all without changing the EVM's functionality. EVM equivalence is no longer the ceiling; it's the floor.
  • Cheaper Execution: Stylus offers a more efficient execution environment than the EVM, leading to gas savings for complex smart contracts. Computation can be over 10x cheaper, and memory can be over 100x cheaper. Cryptography libraries can be deployed as custom application layer precompiles, permissionlessly. Use cases that are impractical in the EVM are now possible in Stylus.
  • Opt-in Reentrancy: Stylus doesn't just improve cost and speed. WASM programs are also safer. Reentrancy is a common vulnerability that developers can only attempt to mitigate in Solidity. Stylus provides cheap reentrancy detection, and using the Rust SDK, reentrancy is disabled by default unless intentionally overridden.
  • Fully Interoperable: Solidity and WASM programs are completely composable. If working in Solidity, a developer can call a Rust program or rely on another dependency in a different language. If working in Rust, all Solidity functionalities are accessible out of the box.

How does it work? There are four main steps to bring a Stylus program to life — coding, compilation, execution, and proving.

  • Coding: Developers can write smart contracts in any programming language that can be compiled into WASM. Initially, support will be available for Rust, C, and C++, with extensive language support for Rust from day one. The Stylus SDK for Rust contains the smart contract development framework and language features most developers will need to use in Stylus. Check out the Rust SDK Guide and the Crate Docs.
  • Activation: Stylus programs are compiled to WASM and then lowered to assembly. Starting from a high-level language, the first stage of compilation happens either using the CLI provided in the Stylus SDK for Rust or by using any other compiler. Once compiled, the WASM is posted on-chain and activated, which involves lowering it to a node's native machine code. Gas metering, depth-checking, memory charging, and more ensure all WASM programs are safe for the chain to execute.
  • Execution: Stylus programs are executed in a fork of Wasmer, the leading WebAssembly runtime. EVM contracts continue to execute as before, with cross-contract calls possible between Solidity and WASM languages. This interoperability means a developer never has to consider what language the contract was written in.
  • Proving: Nitro uses fraud-proving technology to conduct interactive fraud proofs on Ethereum. Stylus extends this technology to WASM programs, utilizing it to bisect over execution history and any WASM programs deployed by developers.

Quickstart: Write a smart contract in Rust using Stylus.

Stylus by Example: An introduction to Stylus with simple code examples in Rust and WASM.

Zig SDK: Provides tools and libraries for building smart contracts in Zig.

Cargo Stylus CLI Tool: A CLI tool for deploying programs, enhancing the development workflow for Rust-based smart contracts.

Bf SDK: An educational toolkit for learning and experimenting with Stylus smart contracts.

C/C++ SDK: A comprehensive SDK for building smart contracts in C and C++, ideal for cryptography and algorithms.

Rust SDK & Rust SDK Guide: A versatile SDK for building smart contracts in Rust, suitable for a wide range of applications.