You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have no prior experience in dApp development, the following resources will help you get started with some essential tools for building, testing, and deploying applications on Polygon PoS.
20
20
@@ -44,7 +44,6 @@ There are several other third-party wallet options available to choose from, and
44
44
45
45
Refer to the following guides and follow along to set up your wallet for making web3 function calls:
Copy file name to clipboardExpand all lines: docs/tools/dApp-development/common-tools/remix.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ The `update` function is another public function that is similar to the constr
79
79
80
80
Now, we have to deploy our smart contract on Amoy, the Polygon testnet. Not only does it cost money (e.g., gas fees) to deploy a smart contract on Polygon mainnet, but the contract is immutable and can't be changed once deployed. Therefore, it's best to deploy your smart contract to the testnet first.
81
81
82
-
To deploy to the Amoy testnet, we have to connect to the web3 with a service like MetaMask, Brave, Portis, etc. We use MetaMask in this tutorial. Please follow this [guide to set up a MetaMask account](../../wallets/metamask/index.md).
82
+
To deploy to the Amoy testnet, we have to connect to the web3 with a service like MetaMask, Brave, Portis, etc. We use MetaMask in this tutorial. Please follow this [guide to set up a MetaMask account](https://support.metamask.io/getting-started/getting-started-with-metamask/).
83
83
84
84
- Open Metamask. Click on the network dropdown menu (set to **Ethereum Mainnet** by default) and click on the **Add Network** button. MaticVigil provides a public endpoint and is rate-limited. Therefore, most developers use a free blockchain provider like [Alchemy](https://docs.alchemy.com/docs/how-to-add-polygon-to-metamask) or [Quicknode](https://www.quicknode.com/guides/smart-contract-development/how-to-deploy-a-smart-contract-on-maticpolygon#setting-up-metamask-with-polygon-node) to have a dedicated RPC endpoint with faster throughput AKA computing units per second (CUPs). You need to create a free account to get your private API key from one of these providers to put into the dedicated RPC endpoint URL below.
Copy file name to clipboardExpand all lines: docs/tools/gas/matic-faucet.md
+30-36Lines changed: 30 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,45 +2,39 @@
2
2
comments: true
3
3
---
4
4
5
-
The Polygon Faucet is a tool provided by Polygon and ecosystem partners like Alchemy, QuickNode, and GetBlock. It enables developers to acquire free MATIC/ETH test tokens on the PoS Amoy and zkEVM Cardona testnets. Start deploying and testing your dApps on the Polygon network with test tokens that allow you to explore Polygon features without spending actual MATIC tokens on the mainnet.
6
-
7
-
Polygon Faucet drips:
8
-
9
-
- MATIC on PoS Amoy and Ethereum Sepolia.
10
-
- Test ETH on zkEVM Cardona.
11
-
12
5
!!! info "Testnet tokens hold no real-world value"
13
6
Tokens on testnets such as PoS Amoy, Ethereum Sepolia, and zkEVM Cardona hold no real value and are solely used for testing purposes.
14
7
15
-
Several faucet tools are available to receive test MATIC and ETH on Sepolia-anchored Polygon networks:
8
+
Several faucet tools are available to receive test POL and ETH on Sepolia-anchored Polygon networks:
The Polygon Faucet is a tool provided by Polygon and ecosystem partners like Alchemy, QuickNode, and GetBlock. It enables developers to acquire free POL/ETH test tokens on the PoS Amoy and zkEVM Cardona testnets. Start deploying and testing your dApps on the Polygon network with test tokens that allow you to explore Polygon features without spending actual POL tokens on the mainnet.
20
+
21
+
Polygon Faucet drips:
22
+
23
+
- POL on PoS Amoy.
24
+
- POL and a dummy ERC20 token on Ethereum Sepolia.
25
+
- Test ETH on zkEVM Cardona.
26
+
26
27
- Start by navigating to [faucet.polygon.technology](https://faucet.polygon.technology/) and connecting/verifying your Discord by selecting **Connect Discord** in the top-right corner of the page.
27
28
28
29
<center>
29
30
{width=70%}
30
31
</center>
31
32
32
-
- Select one of the blockchain testnet networks from the drop-down list:
33
-
34
-
- **Polygon zkEVM (Cardona)**
35
-
- **Polygon PoS Amoy (Amoy)**
36
-
- **Sepolia**
33
+
- Select one of the blockchain testnet networks from the drop-down list. We'll select **Polygon zkEVM (cardona)** for this example.
37
34
38
-
- Select the type of token you want to receive:
39
-
40
-
- **zkEVM ETH**: Testnet ETH on zkEVM Cardona.
41
-
- **MATIC**: Testnet MATIC on the PoS Amoy and Ethereum Sepolia.
35
+
- Select the type of token you want to receive; zkEVM ETH in this case.
42
36
43
-
-Once done, copy your wallet address and select **Paste** to paste it in the text box. Typing is disabled to prevent entering a wrong address.
37
+
-Copy your wallet address and either paste it directly in the **Wallet Address** field, or select **Paste**. Typing is disabled to prevent entering a wrong address.
44
38
45
39
- Select **Submit**.
46
40
@@ -50,45 +44,45 @@ Several faucet tools are available to receive test MATIC and ETH on Sepolia-anch
If you don't have enough MATIC testnet tokens in your account to pay for the gas fees, the transaction may fail. If you require testnet tokens in bulk, please fill out [this form](https://docs.google.com/forms/d/e/1FAIpQLSe4npoGldJknEs9EBtPaV3AS-0HTso2IuMWDCiMmLEMCx8euQ/viewform).
56
-
57
47
- Testnet tokens usually arrive within 1 to 2 minutes.
!!! tip "Always maintain sufficient test token balance"
54
+
55
+
If you don't have enough POL/ETH test tokens in your wallet account to pay for gas fees when sending transactions, the action will fail. If you require testnet tokens in bulk, please fill out [this form](https://docs.google.com/forms/d/e/1FAIpQLSe4npoGldJknEs9EBtPaV3AS-0HTso2IuMWDCiMmLEMCx8euQ/viewform).
56
+
63
57
## Alchemy Faucet
64
58
65
-
!!! tip "Get 0.5 Amoy MATIC"
66
-
If you sign up or log in with an Alchemy account, you get 0.5 MATIC per day. Without an account, you get 0.2.
59
+
!!! tip "Get 0.5 Amoy POL"
60
+
If you sign up or log in with an Alchemy account, you get 0.5 POL per day. Without an account, you get 0.2.
67
61
68
-
- You can request MATIC tokens from Alchemy's Amoy Faucet. In order to receive testnet tokens, head over to the [Alchemy Polygon Amoy MATIC faucet](https://www.alchemy.com/faucets/polygon-amoy), enter your wallet address and hit the **Send Me MATIC** button.
62
+
- You can request POL tokens from Alchemy's Amoy Faucet. In order to receive testnet tokens, head over to the [Alchemy Polygon Amoy POL faucet](https://www.alchemy.com/faucets/polygon-amoy), enter your wallet address and hit the **Send Me POL** button.
69
63
70
64

71
65
72
-
- Check the transaction hash as soon as you finish requesting your MATIC, and view the transaction details on [Polygonscan](https://amoy.polygonscan.com/).
66
+
- Check the transaction hash as soon as you finish requesting your POL, and view the transaction details on [Polygonscan](https://amoy.polygonscan.com/).
73
67
74
68
## QuickNode Polygon Faucet
75
69
76
-
In order to receive Amoy MATIC tokens using QuickNode faucet,
70
+
In order to receive Amoy POL tokens using QuickNode faucet,
77
71
78
72
- Head over to the [QuickNode Polygon Faucet](https://faucet.quicknode.com/polygon). Connect your Coinbase, MetaMask, or Phantom wallet by clicking on **Connect Wallet**. Then, choose **Amoy**, and finally select **Continue**.
Copy file name to clipboardExpand all lines: docs/tools/matic-js/get-started.md
+39-5Lines changed: 39 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,44 @@
2
2
comments: true
3
3
---
4
4
5
-
Matic.js is a javascript library which helps in interacting with the various components of Matic Network.
5
+
[Matic.js](https://github.com/maticnetwork/matic.js) a JavaScript library that facilitates interaction with the Polygon network. It provides developers with simplified operations such as depositing, transferring, and withdrawing assets, allowing them to focus on building dApps without requiring in-depth knowledge of blockchain systems.
6
6
7
-
In this get started document we will learn about how we can setup and interact with the POS bridge.
7
+
Matic.js supports two popular libraries:
8
8
9
-
In case you face any issues or have any queries, feel free to raise a [ticket](https://support.polygon.technology/support/tickets/new) to our Support Team or reach out to us on [Discord](https://discord.com/invite/0xPolygonCommunity).
9
+
1.[Web3.js](https://web3js.readthedocs.io/)
10
+
2.[Ethers](https://docs.ethers.io/)
10
11
11
-
!!! important
12
-
Make sure you have followed the [installation step](installation.md).
12
+
## Prerequisites
13
+
14
+
Ensure that your [Node.js](https://nodejs.org/en/) version is up to date.
15
+
16
+
We recommend using Node.js version v18.19.1 for optimal compatibility.
17
+
18
+
## Installation
19
+
20
+
### Matic.js core library
21
+
22
+
The library contains core logic and provides different APIs. The user interacts mostly with this library.
23
+
24
+
```sh
25
+
npm i @maticnetwork/maticjs
26
+
```
27
+
28
+
### Matic.js ethers library
29
+
30
+
The ethers library allows us to use any ethers function. It is injected into Matic.js using plugins.
31
+
32
+
```sh
33
+
npm install @maticnetwork/maticjs-ethers
34
+
```
35
+
36
+
### Matic.js web3 library
37
+
38
+
The web3 library allows us to use any web3 function.
39
+
40
+
```sh
41
+
npm install @maticnetwork/maticjs-web3
42
+
```
13
43
14
44
## Initializing
15
45
@@ -25,3 +55,7 @@ use(Web3ClientPlugin)
25
55
26
56
- Click for more details on POS applications that use [`web3js`](setup/web3js.md).
27
57
- Click for more details on POS applications that use [`ethers`](setup/ethers.md).
58
+
59
+
## Support
60
+
61
+
In case you face any issues or have any queries, feel free to raise a [ticket](https://support.polygon.technology/support/tickets/new) to our Support Team or reach out to us on [Discord](https://discord.com/invite/0xPolygonCommunity).
0 commit comments