Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [polygon]

Questions related to development on the Polygon EVM-enabled sidechain.

Filter by
Sorted by
Tagged with
5 votes
2 answers
5k views

Listen for all the events of a smart contract with ethers.js polygon

What I would like to know is if there is a way to continuously listen for a single contract and fetch all the events emitted in real time. What I was able to find right now are ways of listening for ...
colo's user avatar
  • 53
4 votes
3 answers
6k views

The same wallet address on the Mainnet Ethereum network and on the Polygon network. Are these two different wallets with two different owners?

I want to transfer some matic (Polygon network) to an Ethereum wallet address I know. But I don't know the address of this wallet on the Polygon network, I know its address on the Ethereum Mainnet. ...
solidsnake777's user avatar
3 votes
3 answers
736 views

How do nework bridges work e.g. ethereum to polygon/matic bridge

I understand what a bridge does but I 'm interested in knowing how it works under the hood. How does it work when transferring assets from one network to another. Lets take for example the ethereum to ...
rjs's user avatar
  • 131
2 votes
3 answers
1k views

What is the current size of a copy of the entire Polygon Mainnet chain?

I want to know the total size (in GB or TB) of the database on a node that has a copy of the entire Polygon Mainnet chain, so I can allocate resources for a production instance. How can I know that? I ...
Falcon Stakepool's user avatar
1 vote
1 answer
1k views

What are the pros and cons selling NFT using the ETH on Polygon?

I know sellers are trying to avoid the gas fee on OpenSea by using the polygon blockchain. What are the pros and cons of both buyer and seller?
CocoSkin's user avatar
  • 125
1 vote
1 answer
712 views

ETH Mainnet Readable Via Polygon Contract?

Is it possible to execute a read function of an ETH Mainnet smart contract from a Polygon smart contract? Example: I want to make it so Bob can only execute a function on Matic IF he owns a certain ...
sooprise's user avatar
  • 153
1 vote
1 answer
4k views

Gas Gwei not working: intrinsic gas too low

Why is the gas fee not working? If I remove the gas fee, the transaction works. But if I add a gas ffee, the transaction fails and returns error: {'code': -32000, 'message': 'intrinsic gas too low'} ...
Cyberlicious's user avatar
1 vote
2 answers
975 views

How to force smart contract to accept ether when deployed on Polygon chain

I have written a contract to mint NFT in solidity. I intend to deploy it to Polygon eventually. There’s a slight confusion, I have put the price in my contract as 0.1 ether which works fine on Rinkeby....
Usama Danish's user avatar
1 vote
1 answer
167 views

is there a way to extract smart contract code from bytecode?

I have deployed the smart contract into polygon mainnet but I do not have the smart contract code now, I only had the smart contract address. I have not 'verify and published ' after deploying the ...
Ashok Sandhyala's user avatar
0 votes
1 answer
57 views

Swap in matic without gas

How to swap WETH(POLYGON) or ETH(ETHERIUM) to MATIC with empty balance on polygon (no money for gas in matic). Current gas fee 41 usdt but i need only 0.01 - 0.02 MATIC. Thank you ...
sara's user avatar
  • 1
0 votes
3 answers
1k views

Unable to verify contracts on polygon Amoy testnet

I have deployed some contracts on amoy testnet. To verify I followed this doc and I have also used the same approach for other chains as well. But in this case I am getting the following error: Error ...
Solidity Nerd's user avatar
0 votes
1 answer
370 views

Conversion from Wei to Ether gives different results

I'm trying to analyze the transaction of this contract, but sometimes when I try to convert from wei to ether value of tokens I got comma in different position than expected. This is how I proceed: 1)...
giacomomaraglino's user avatar
0 votes
1 answer
205 views

How can I get the price of NFT on Opensea using chainlink?

I have tried to use the chainlink and contract address of NFT to fetch the price but I am not sure where I am wrong pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/interfaces/...
Samresh Kumar Jha's user avatar
0 votes
1 answer
434 views

Help regarding deployment in Polygon Matic Testnet

I am using truffle (Truffle v5.1.65 - a development framework for Ethereum) for my smartcontracts deployment. My truffle-config.js has network setting for matic as: //https://rpc-mumbai.maticvigil....
NinjaMAN's user avatar
  • 419