# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eitherway.ai/documentation/web3/evm-ethereum-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
