logo
logo
Sign in

Argent X Wallet - StarkNet Browser Extension Wallet for Chrome & Firefox

avatar
Adam Smith
Argent X Wallet - StarkNet Browser Extension Wallet for Chrome & Firefox

Argent X Wallet is an open source, Chrome plugin-based wallet for the alpha L2 platform. It is different from an Argent wallet. Also, it's the first wallet on StarkNet that StarkNet dApp developers actively use. Plus, Argent X implants the StarkNet API into all websites' JavaScript context to allow dApps to offer transactions to be made from your wallet. With this wallet, you can review each transaction and approve and reject them, just like any Ethereum wallet. But before starting every transaction, you need to set up your wallet by downloading the Argent X Wallet Extension in your chrome web stores and Firefox add-ons.


How to Set up Argent X Wallet on StarkNet

Argent X interacts with decentralized applications built on the StarkNet ecosystem. So in order to transact tokens, you need to create your accounts and use them to transact with dApps. If you are a new user wondering how to set up this wallet, check the steps below and start the procedure.

  • Firstly, you need to download and install the Argent X Wallet Extension from the chrome web store. Once you install it, find and click the "Create a new wallet" button.
  • Next, review and accept the "Terms and Conditions" of the StarkNet program. Then create a "Unique Password" for your account.
  • Important: It is worth signing that StarkNet is still in alpha, so before transacting with a large collection of money, do think twice. It will take a minute to be deployed on-chain: this is a different feature that distinguishes StarkNet-based wallets from regular L1 Ethereum wallets. 
  • Once your Argent X Wallet account is ready, it's time to fund it with some test tokens. In this guide, we use the "StarkSwap Faucet" in order to mint 10 test BAR and LAN tokens. The tokens will take some time to be available in your wallet.
  • After that, use the newly minted tokens to give liquidity to the BAR-LAN pool. Click the "+" button and enter the amount of BAR or LAN tokens you want to deposit. Then click the "Deposit" button.
  • Once this is done, you can try swaps between BAR and LAN tokens and also bridge your assets from Ethereum L1 to StarkNet L2 by clicking the "Add Funds" button.
  • If you click the "Bridge" from Ethereum, you will land on the StarkGate Bridge, which is also in alpha. Before proceeding, review and accept the terms.
  • Next, change the ETH network in your MetaMask wallet to Goerli. Click the "MetaMask" option. Once it is connected, you need to connect to your StarkNet wallet. Tap the "StarkNet Wallet" and select the "Argent X" option from the available wallets. Once it connects, you will see that both wallets are connected to StarkGate.
  • Lastly, use any Goerli faucet to send some ETH to your account. Once you get the ETH, enter the "Amount" and click the "Transfer" button. Confirm your transaction in MetaMask, and you will have the bridged Ethereum to play with in StarkNet L2-supported applications.


Steps to Declaring and Deploying Contracts with Argent X Wallet

Before sterling the process, you have to be familiar with compiling and writing a basic Cairo contract. But if this is new for you, you need to learn about contracts on StarkNet.

  • First, open your Argent X Wallet account and click the "Setting icon" at the top-right side
  • Select the "Developer Settings" option and then the "Smart Contract Development" option.
  • In order to deploy a contract, we have to get the Classhash by declaring the contract. In order to declare the contract, choose the "Declare Smart Contract" option.
  • After that, select "Click to Upload Contract JSON" to upload your JSON ABI, which was procured from compiling a basic "Cairo" contract.
  • Next, you have to select the "Network" and the "Account" used for deployment. After that, click the "Declare" button. Sign the transaction, and you will be automatically redirected to the next page with your contracts class hash.
  • Copy the "Outputted Classhash" and paste it into the required field. Click the "Do to Deployment" button.
  • Now, again you have to select the "Network" and the "Account" used for deployment. Then specify the "Constructor Parameters" and choose a random salt. Also, you can use a different address and press the "Deploy" button.
  • Lastly, sign the transaction, and you will be landed on a page with your deployed contract address.


Conclusion

Argent X Wallet is used to interact with decentralized applications built on the StarkNet ecosystem. It's different from the Argent wallet but has the same functions. You can create your account and use themes to transact with various dApps. Fortunately, it also creates private and secured keys and deploys account contracts with your keys. But before starting any transaction, you need to create your account first, and the setup process can be found in the below section. The steps will guide how to set up an Argent X Wallet on StarkNet and how to deploy and declare a contract with this wallet.

collect
0
avatar
Adam Smith
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more