Documentation Index
Fetch the complete documentation index at: https://injectivelabs-mintlify-jp-developers-first-half-1777019423.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
将 MetaMask 连接到 Injective EVM Testnet
MetaMask 是一个浏览器钱包扩展,可让你连接到任何 EVM 兼容网络,包括 Injective EVM。如何安装 MetaMask
从 MetaMask 下载页面 安装官方 MetaMask 扩展。将 Injective EVM Testnet 添加到 MetaMask
- 点击浏览器中的 MetaMask 图标 并解锁你的钱包。
- 点击顶部的网络选择器(默认是 “Ethereum Mainnet”)。
- 选择 “Add Network” 或 “Add a network manually” 打开自定义网络表单。
Injective EVM Testnet 参数
填写以下详细信息:注意:Block Explorer URL 是可选的,由 BlockScout 提供支持。
切换到 Injective EVM Testnet
添加网络后,使用网络选择器切换到 Injective EVM Testnet。为你的钱包充值(可选)
需要 Testnet INJ?访问 Injective Testnet faucet。 资金将在包含在 Testnet 区块后显示。设置完成!
MetaMask 现在已连接到 Injective EVM Testnet。你可以:- 使用 Foundry、Hardhat 或 Remix 等工具部署智能合约。
- 与 Testnet dApp 和合约交互。
- 通过 Blockscout 浏览器检查交易。
提示: 始终仔细检查 RPC URL 和 Chain ID - 准确性对于避免配置错误至关重要。
通过 ethers.js 连接 MetaMask
你也可以使用 ethers 以编程方式连接 MetaMask。
