Skip to content

Conversation

@alexandratran
Copy link
Contributor

@alexandratran alexandratran commented Nov 10, 2025

Description

Update MM Connect EVM JS code samples with example usage shown in https://www.notion.so/metamask-consensys/metamask-connect-287f86d67d68800aabafc3e9cf89209d.
Add to dos and other minor edits.

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

Replaces legacy SDK usage with MM Connect (createEVMClient/getProvider) across EVM JS docs, updating installs, code samples, and JSON‑RPC examples (incl. batching, tokens, networks, tx, signing).

  • Guides (JavaScript):
    • Switch examples from MetaMaskSDK/window.ethereum to createEVMClient() and provider.request() throughout (javascript/index.md, manage-user-accounts.md, manage-networks.md, interact-with-contracts.md, send-transactions/*, sign-data/*, batch-requests.md).
    • Update connection flows (connect, connectAndSign, getProvider), tx handling, gas estimation, and receipt polling to use evmClient/provider.
    • Revise token/NFT watch examples to use provider.request() and provider.sendAsync().
  • Partner quickstarts:
    • Rename install steps to "Install MM Connect" and adjust dependency/install wording for ConnectKit, RainbowKit, Wagmi, Dynamic, and Embedded Wallets.
    • Wagmi: switch install to @metamask/connect; add note linking to atomic batch tx tutorial.
  • Reference:
    • Update eth_signTypedData_v4 and wallet_sendCalls example requests to use provider.request(); tighten JSON‑RPC index intro.
  • Misc:
    • React Native guide: reword install step to "Install MM Connect and its dependencies".

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

@alexandratran alexandratran requested review from a team as code owners November 10, 2025 22:14
@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 12, 2025 4:16pm

Copy link
Member

@shahbaz17 shahbaz17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alexandratran alexandratran merged commit 3db005f into sdk-new-structure Nov 12, 2025
5 checks passed
@alexandratran alexandratran deleted the update-evm-code-samples branch November 12, 2025 16:21
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.

3 participants