Pular para o conteúdo principal

Getting started with Starknet

Eager to explore Starknet with MetaMask? The MetaMask Starknet Snap makes managing your funds and sending transactions on Starknet easy.

This guide will take you step-by-step through installing and using the Starknet Snap within your MetaMask wallet.

What is Starknet?

Starknet is a Layer 2 scaling solution for Ethereum, created to enhance the network's scalability and reduce transaction costs while maintaining security and decentralization. Using zk-rollup technology, Starknet can bundle multiple transactions into a single batch, reducing transaction costs for all.

Adding the Starknet Snap

Let's get started with adding Starknet to MetaMask. Ensure that your MetaMask is unlocked before proceeding.

  1. Head over to snaps.consensys.io/starknet to begin. Click ‘Connect with MetaMask’.

Connect to MetaMask Starknet Snap modal

  1. If your MetaMask is unlocked, a prompt will appear to connect to the Starknet Snap. Click ‘Connect’ to continue.

Connection request for the Starknet Snap

  1. Review the permissions requested by the Starknet Snap. If everything looks good, hit ‘Confirm’.

Review permissions requested by the Starknet Snap

  1. Since we're installing a Snap requesting full access to our Starknet accounts, we need to confirm an additional modal. Click the checkbox, and click ‘Confirm’ to continue.

Review additional permissions requested by the Starknet Snap

  1. All set! The Starknet Snap has been added to MetaMask, and you can now continue using the Starknet dapp.

Starknet Snap installation complete

  1. You'll notice that the Starknet dapp will display your Starknet address. Click ‘Got it!’ to continue to the dapp.

Starknet address generated successfully

Bridging to Starknet

StarkGate is the official bridge for transferring Ethereum and ERC-20 tokens to Starknet.

  1. Head on over to starkgate.starknet.io to access the bridge.

StarkGate bridge landing page

  1. Click ‘Connect Wallets’ in the upper-right corner. A modal will show up; click ‘Get started’ to continue.

Connect to Starknet modal

  1. The StarkGate dapp will ask us to connect an Ethereum and Starknet wallet. Since the Starknet Snap was added to our MetaMask, we can select MetaMask in both modals. Click ‘MetaMask’ to continue.

Select MetaMask for Ethereum

  1. MetaMask will ask you which Ethereum account you wish to use with the StarkGate dapp. Select the address you want to use, and click ‘Next’. Check the permissions requested by the dapp, and click ‘Confirm’ if all looks good.

Select Ethereum account to connect to StarkGate

Review permissions

  1. We've now connected our Ethereum account! To continue adding our Starknet account, click ‘Connect Starknet wallet’ in the StarkGate dapp.

Connect Starknet account

  1. Because the Starknet Snap has been added to our MetaMask, we can select MetaMask as the wallet we use for Starknet. Click ‘MetaMask’ to continue.

Select MetaMask for Starknet

  1. The StarkGate dapp will request to connect to the Starknet Snap in your MetaMask. Click ‘Connect’ to continue.

Connection request

  1. You've successfully connected both accounts to the StarkGate bridge! Click ‘Continue’ to go further.

Both accounts connected to the StarkGate bridge

  1. Select Ethereum, enter the amount you wish to send, and click ‘Transfer’. Approve the transaction in MetaMask, and you're on your way!

Create bridge transaction

Sending transactions on Starknet

See our article on sending transactions on Starknet.