Deploy your first smart contract on Linea!

Deploy your first smart contract on Linea!

Deploy a Solidity contract on Linea using Getblock's Linea RPC API — fast, easy, and without the high costs of Ethereum.?Perfect for beginners!

All you need is:

??MetaMask Wallet

??Remix IDE

??GetBlock Linea RPC API

Step 1: Get a Free RPC URL?

1??Head over to GetBlock.io and register

2??Grab a Linea Sepolia JSON-RPC URL

You’ll use this to connect MetaMask to Linea. ???

?? Step 2: Configure MetaMask

1?? Open MetaMask, go to Settings > Networks> Add network > Add manually?

2?? Add:?

New RPC URL: Your GetBlock Linea RPC

Chain ID: 59141

? Save & switch

?? Step 3: Get Test Tokens

You’ll need test ETH to deploy your contract.

Go to GetBlock’s Linea Sepolia faucet, paste your wallet address, and get free tokens

???? Step 4: Head to Remix

Go to remix.ethereum.org

1??Use a sample contract or create a new Solidity file

2??On 'Solidity Compiler' tab select ‘London’ as the EVM version (in Advanced Configurations).

3??Compile???

?? Step 5: Deploy Your Contract

Go to the "Deploy & Run Transactions" tab

1??In Environment dropdown select “Injected Provider MetaMask”

2??Make sure it shows ‘Custom (59141) network’

3??Press Deploy and confirm in MetaMask! ??

And that's it! Your contract is now live on Linea ??

Check out your deployment on a block explorer.?

Who’s next to deploy on Linea? ??


要查看或添加评论,请登录

GetBlock的更多文章

社区洞察

其他会员也浏览了