Skip to content

viem updates #1064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nouns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Granite
Holocene
Monitorism
Kubernetes
Fault Proof System
Fault Proof System
Viem
2 changes: 1 addition & 1 deletion pages/builders/app-developers/tutorials/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"first-contract": "Deploying your first contract on OP Mainnet",
"cross-dom-solidity": "Communicating between chains in Solidity",
"cross-dom-bridge-eth": "Bridging ETH with the Optimism SDK",
"cross-dom-bridge-eth": "Bridging ETH with Viem",
"cross-dom-bridge-erc20": "Bridging ERC-20 tokens with the Optimism SDK",
"standard-bridge-custom-token": "Bridging your custom ERC-20 token to OP Mainnet",
"standard-bridge-standard-token": "Bridging your standard ERC-20 token to OP Mainnet",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: Bridging ETH with viem
title: Bridging ETH with Viem
lang: en-US
description: Learn how to use Viem to transfer ETH between Layer 1 (Ethereum or Sepolia) and Layer 2 (OP Mainnet or OP Sepolia).
---

import { Callout, Steps, Tabs } from 'nextra/components'

# Bridging ETH to OP Mainnet with viem
# Bridging ETH to OP Mainnet with Viem

This tutorial explains how you can use [Viem](https://viem.sh) to bridge ETH from L1 (Ethereum or Sepolia) to L2 (OP Mainnet or OP Sepolia).
Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum.
Expand Down Expand Up @@ -45,7 +45,7 @@ Since Viem is a [Node.js](https://nodejs.org/en/) library, you'll need to create
pnpm init
```

{<h3>Install the viem library</h3>}
{<h3>Install the Viem library</h3>}

```bash
pnpm add viem
Expand Down Expand Up @@ -92,7 +92,7 @@ This will bring up a Node REPL prompt that allows you to run JavaScript code.
You need to import some dependencies into your Node REPL session.

<Steps>
{<h3>Import viem and other packages</h3>}
{<h3>Import Viem and other packages</h3>}

```js file=<rootDir>/public/tutorials/cross-dom-bridge-eth.js#L3-L6 hash=88319dda3322e76accb9e50222d30abc
```
Expand Down
Loading