> For the complete documentation index, see [llms.txt](https://docs.eitherway.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eitherway.ai/documentation/web3/evm-ethereum-integration.md).

# EVM (Ethereum) Integration

#### **Smart Contract Compilation**

Eitherway compiles Solidity contracts using solc 0.8.26

**Supported Standards:**

* ERC-20 (Fungible Tokens)
* ERC-721 (NFTs)
* ERC-1155 (Multi-Token)
* Custom contracts

Compilation API

```
POST /api/contracts/compile
{
  "sourceCode": "pragma solidity ^0.8.0; ...",
  "contractName": "MyToken"
}
```

***

#### Contract Deployment

```
POST  /api/contracts/deploy
{
"bytecode": "0x...",
"abi": [...],
"constructorArgs": [...], "chainId": 11155111
}
```

Response:

```
{
"success": true, "contractAddress": "0x...",
"transactionHash": "0x...",
"explorerUrl": "https://sepolia.etherscan.io/..."
}
```

***

#### **Wallet Integration**

Frontend applications use:

* Wagmi 2
* React hooks for Ethereum
* Viem — TypeScript Ethereum library
* WalletConnect/AppKit — Universal wallet connection

**Supported wallets:**\
MetaMask, Coinbase Wallet, Rainbow, Trust Wallet, and 300+ more.
