Skip to content

Conversation

@shahbaz17
Copy link
Member

@shahbaz17 shahbaz17 commented Nov 10, 2025

Add viem, web3, ethers support

Description

Issue(s) fixed

Fixes #

Preview

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

External contributor checklist

  • I've read the contribution guidelines.
  • I've created a new issue (or assigned myself to an existing issue) describing what this PR addresses.

Note

Adds tabbed SDK-based examples for viem, ethers, web3, and Ethereum API, updates gas estimation snippet, and refines the errors table in the send transactions guide.

  • Docs — sdk/evm/connect/guides/javascript/send-transactions/index.md:
    • Add tabbed code samples for viem, ethers.js, web3.js, and Ethereum API, all using MetaMaskSDK's provider to send a basic transaction and retrieve a receipt.
    • Replace prior single basic example and remove inline HTML demo; consolidate around SDK-driven snippets per library.
    • Include receipt-waiting patterns (waitForTransactionReceipt, tx.wait, web3.eth.sendTransaction).
    • Minor updates: modernize eth_estimateGas example (consistent syntax, 20% buffer) and reformat the common errors table.

Written by Cursor Bugbot for commit 3ae3782. This will update automatically on new commits. Configure here.

Add viem, web3, ethers support
@shahbaz17 shahbaz17 requested review from a team as code owners November 10, 2025 07:43
@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
metamask-docs Ready Ready Preview Comment Nov 10, 2025 7:52am

@shahbaz17 shahbaz17 changed the title Enhance JS section Enhance JS section {WIP} Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants