# Altlayer Nitrogen测试网合约部署教程

By [0xRick](https://paragraph.com/@0xb95) · 2024-01-14

---

Altlayer作为我的长期深度跟踪项目，之前也出过教程，不用过多介绍，做了之前的银河任务，新的测试项目继续交互着就行

1.前往网站

选择连接钱包，添加Nitrogen网络，如果报错，说明网络暂时不通，过一会再试

![](https://storage.googleapis.com/papyrus_images/028211c1cedf49a74b62f5d51269e0ad8420e592f6007b39666b24bc5c004468.png)

![](https://storage.googleapis.com/papyrus_images/10316644b368628faa0f11b99a39c4a99cb63cd67721def798fe73450d0fb3ac.png)

2.前往炼金术或小狐狸领取Sepolia测试网的水（每天0.5 ETH）

[

Ethereum Sepolia Faucet
-----------------------

A fast and reliable Ethereum Sepolia testnet faucet for blockchain developers.

https://www.alchemy.com

![](https://storage.googleapis.com/papyrus_images/8c288575eb776a78157dfb34aebbbf0288fbd414d87c0c5184d4f82c1809e1fb.png)

](https://sepoliafaucet.com/)

[

Faucet | MetaMask developer documentation
-----------------------------------------

Faucet

https://docs.metamask.io

![](https://storage.googleapis.com/papyrus_images/5c045c1e13cb3c14994e05d74e273ab123a44ae8994a87d991f8e4feab745596.jpg)

](https://www.infura.io/faucet/sepolia?_hsmi=252265646&utm_medium=email&utm_content=252265646&utm_campaign=Infura%20-%20Testnet%20Faucet&utm_source=hs_email&_hsenc=p2ANqtz-8jIh3Aupe9Z-VCyLQ0EVs1BuWwI58qTyzVoyypgzh0qPoWgdUFNtsylxS5yiUl0lX8CiYXg1xQSj6uKAk1V1zg9HvJEw)

3.前往

[

Bridge to Arbitrum One
----------------------

Bridge from Ethereum to Arbitrum One using the Arbitrum Bridge. Built to scale Ethereum, Arbitrum brings you 10x lower costs while inheriting Ethereum's security model. Arbitrum is a Layer 2 Optimistic Rollup.

https://portal.arbitrum.io

![](https://storage.googleapis.com/papyrus_images/a033c3f0a04ff15ad0a9f5f308492324e13312878803d97fd0516146589fc052.jpg)

](https://bridge.arbitrum.io/?l2ChainId=42161)

链接小狐狸钱包

![](https://storage.googleapis.com/papyrus_images/da5a7da16478d98f6387317c935495d8aa5a2ca28bcffe62aa67a3901cddb572.png)

![](https://storage.googleapis.com/papyrus_images/bdda31d5159e92b9db705032966b0ff49b352245d84f1518ad1a95125b47d4e2.png)

右上角点击钱包，选择Settings

![](https://storage.googleapis.com/papyrus_images/7a5939f3edb3273b0af488864cb6564254956280ace755d9e24c638ef4077173.png)

打开Turn on Testnet mode，然后将下方代码复制粘贴到输入框，最后点击Add Chain添加Nitrogen链

    {
    "chainInfo": {
    "minL2BaseFee": 100000000,
    "networkFeeReceiver": "0xa91BD12b93bCB91751d98bA70828d6F65551A05F",
    "infrastructureFeeCollector": "0xa91BD12b93bCB91751d98bA70828d6F65551A05F",
    "batchPoster": "0x62Ca281811F1f065f007e3e3842b8a7dBC8695Eb",
    "staker": "0x2e7527C10282935813699001bb4d39495894735F",
    "chainOwner": "0xa91BD12b93bCB91751d98bA70828d6F65551A05F",
    "chainName": "Nitrogen",
    "chainId": 96384675468,
    "parentChainId": 421614,
    "rpcUrl": "https://nitrogen-rpc.altlayer.io",
    "explorerUrl": "https://nitrogen-explorer.altlayer.io",
    "nativeToken": "0x0000000000000000000000000000000000000000"
    },
    "coreContracts": {
    "rollup": "0x49Ca5F190467B396178357b1B70cF8Eb858666c2",
    "inbox": "0x022f6Dd92478A8c9E6f061Bf83b2C78dBd0d2B42",
    "outbox": "0x63FFe7a0d8553D11853894928B54fA976B662AC0",
    "adminProxy": "0xF1BFA038Dbf137F2E5fCaD6B2e07B8320fcBD737",
    "sequencerInbox": "0xAfD7D733822167CDa40659842080f8aBAdAce4f4",
    "bridge": "0x887CfdD05dd93678F901823C7E0a7c072e5BaAD2",
    "utils": "0xB11EB62DD2B352886A4530A9106fE427844D515f",
    "validatorWalletCreator": "0xEb9885B6c0e117D339F47585cC06a2765AaE2E0b"
    },
    "tokenBridgeContracts": {
    "l2Contracts": {
    "customGateway": "0x84F1D2455864b4F9232Fa9D8F93f7736A95F5910",
    "multicall": "0x838D6Cea46678E4E42D21B3E87EACAAf323fC585",
    "proxyAdmin": "0x08695d132Ad5cD9e3f3C2f69E3cD41ab22246Bcf",
    "router": "0x0b0E452E0c1673c5c1975f0843D6fE0C71812Bde",
    "standardGateway": "0x499DF5d1780505537e66E196cCAd5C0C2EBE7E33",
    "weth": "0x72a335bf03Cf315C291698d8410eD32E69b48C01",
    "wethGateway": "0x90f1c389149B4517a9bD33CE7e13244348bA54a9"
    },
    "l3Contracts": {
    "customGateway": "0x8dC58C44B26283712418f3cfcE3d73ab99Ddf23D",
    "multicall": "0x95f590f1e1392e37737eD02785aC47dE93f43512",
    "proxyAdmin": "0x8f972355F41Ca3ee82fBf327B10bCaf7ba27d840",
    "router": "0x07d49Ed6d62bBDfE50607ddC278d022Ed2DFF1f8",
    "standardGateway": "0x85f0d4C6BA6DA6825e72085d940b4222D683902B",
    "weth": "0xd87d60f5565a1F213b69901C55f036B30B05C2F8",
    "wethGateway": "0x7D128f4afc76911e1C922E5Aa2803f23b6E561de"
    }
    }
    }
    

![](https://storage.googleapis.com/papyrus_images/543b5ae47ee408b2d7ec74fce727be5d010186ee8c4527365a12b989ae4bc542.png)

完成之后，我们选择将Sepolia测试网的ETH跨链至Arbitrum Sepolia测试网（数量≥0.1最好）

![](https://storage.googleapis.com/papyrus_images/850465aa6125b44012fa2960326065e4fc856c08fb680c74d66865c6b356c1ca.png)

等待10分钟左右，跨链完成

![](https://storage.googleapis.com/papyrus_images/b4362960cf37a736351e96a256091db4ba36739cb9c49d33271f11ce04aaf16c.png)

Arbitrum Sepolia测试网到账之后，再将Arbitrum Sepolia测试网的ETH跨链至Nitogen测试网

![](https://storage.googleapis.com/papyrus_images/87274a2d60b03d8b954d358afd680564aaf6e3f695fcf4d16ce6776939979ce0.png)

如果报错，说明Nitogen链崩着，等一会再试

![](https://storage.googleapis.com/papyrus_images/75d0c057d28e244c26eb80d99c6ace73dc2191a9bd5de9d0448f0523137ac7f4.png)

跨链到账时间很长，钱包成功交互之后，可关闭此页面

![](https://storage.googleapis.com/papyrus_images/3c7dc8d24ae8c90739c314aaa7a8f1fc82c065f7555d2915bb62d673f8437e8c.png)

4.打开网站

[

thirdweb: The complete web3 development platform
------------------------------------------------

Build web3 apps easily with thirdweb's powerful SDKs, audited smart contracts, and developer tools-for Ethereum & 700+ EVM chains. Try now.

https://thirdweb.com

![](https://storage.googleapis.com/papyrus_images/ede1adb047d39c8d725d2095b451ddd10e2a43c8e25de94e2472d9b29ba0bb90.png)

](https://thirdweb.com/dashboard/contracts/deploy)

钱包切换至Nitogen测试网，链接钱包

![](https://storage.googleapis.com/papyrus_images/13bd9965249bb30069185ff0e907f30f5ddc6fd13fad417517967b4d4eee95ac.png)

![](https://storage.googleapis.com/papyrus_images/5155cc9f7b8bb93848ca28fbad7dd98281f6dc59fb91995e1b7ed6e78a472cfb.png)

点击Deploy contract部署，跳转页面选择Token部署代币

![](https://storage.googleapis.com/papyrus_images/5449210fd2466e27d22aece218446be12bcc2ed2c6fde1249570a9fa5cd1cd73.png)

![](https://storage.googleapis.com/papyrus_images/43cb760352dd54415005db6ed1b7f1d9b90cfe5947303bf037b2ce6568b47cda.png)

点击Deploy now输入代币信息

![](https://storage.googleapis.com/papyrus_images/33f2a37cf81e412c98d960ccb582937d0c2a350542965373678a3d11f9d4602d.png)

填入代币图像、名称等信息

![](https://storage.googleapis.com/papyrus_images/a1a34ad1ebb9a53b26bbc66db71f3e71bad25dcebee221e093b0b38c985d467a.png)

在下拉页面中，选择网络，我们将Nitogen测试网添加进入其中

![](https://storage.googleapis.com/papyrus_images/072e2bcf1b628153b74bd5f165237e462e8b98e2ad138f26dd1aa2934ffb48c4.png)

![](https://storage.googleapis.com/papyrus_images/61c71586511f73d6a086786f55dc7a9e5b5f72c9f86e3668a0b05cd172d4c271.png)

填入Nitogen测试网信息

    网络名称：Nitrogen
    网络 URL：https://nitrogen-rpc.altlayer.io
    链 ID：96384675468
    货币符号：ETH
    区块浏览器 URL：https://nitrogen-explorer.altlayer.io
    

![](https://storage.googleapis.com/papyrus_images/4f63be00b34ee193ccad754e0ff18f753c8505622a31a08cefd37c0c320c20b3.png)

完成之后点击Deploy Now（得等Nitrogen测试网有了ETH才能部署）

![](https://storage.googleapis.com/papyrus_images/6bc17b8cd9d24cddd53a5baac988a1c9835a1023d97a74ee94eeb2a33547dda4.png)

完成部署之后，可以复制合约地址到钱包添加代币查看是否部署成功。

至此完成交互。

我是Rick，交互教程等可关注我的Twitter

---

*Originally published on [0xRick](https://paragraph.com/@0xb95/altlayer-nitrogen)*
