Questions tagged [matic]

For questions related to Polygon (formerly Matic) blockchain.

44 questions
1
vote
2 answers

Why is polygon mumbai giving error when trying to verify contract code?

I have tried using truffle, hardhat, alchemy and remix to do various methods of flattening then verifying or trying to verify using polygon API endpoints but all of them result in the same…
eljimm
  • 43
  • 5
1
vote
0 answers

Polygon Edge local node: cant ADD transaction to TX POOL

I already have a local Polygon-Edge blockchain running on my system. It is working as expected with four nodes running (I can query address balances, for example, and it works just fine). Now I'm following the Polygon Edge documentation to ADD a new…
Eduardo G.R.
  • 377
  • 3
  • 18
1
vote
0 answers

Is there a simple API to transfer ERC-1155(Polygon Mainnet) tokens to other users?

Sorry I am new to blockchain development, so pardon my silly basic question. I have created a bunch of ERC-1155 using Polygon main net. I have all the address and ids of the token. Now I want to transfer them to other users from my backend(nodejs)…
Shafqat Jamil Khan
  • 1,039
  • 1
  • 9
  • 17
1
vote
1 answer

ERC 20 Token transferFrom isn't working in my smart contract. Doesn't throw any Exception either

I wrote a contract in Solidity with the following task in mind: The user approves the smart contract to transfer a certain amount of tokens from their wallet. The smart contract uses this amount to transfer to an address given as a parameter. But…
Javi
  • 461
  • 6
  • 11
0
votes
0 answers

"RouteProcessor: Minimal ouput balance violation" when trying to wrap MATIC through sushiswap route processor

I'm trying to programmably wrap and unwrap matic/wmatic calling the processRoute function on sushiswap route processor contract. I can unwrap no issue but I can't wrap. Source code of the…
cappu
  • 1
  • 1
0
votes
0 answers

What is Polygon MATIC crypto?

What is Polygon MATIC crypto and how does it work? Can you explain its features and benefits, as well as its use cases? what are some potential risks and limitations of using the Polygon network and the MATIC cryptocurrency?
0
votes
0 answers

"Error: processing response error: exceeds block gas limit" in ethers.js using the alchemy sdk (javascript/webpack)

This is my code in vsc I logged the gas numbers: Max fee for gas: 240394607536 Gas estimate: 149447303768 async function main() { //create new wallet const wallet = new Wallet(document.getElementById("prvkey").value, alchemy) const abi =…
Paul Play
  • 1
  • 1
0
votes
1 answer

How to get MATIC token on Goerli Networks?

I need help about getting Matic token or Swap from Goerli ETH to Goerli Matic token for development. I found this https://faucet.polygon.technology/ but it didn't worked and I tried uniswap didn't find the testnet goerli just found scroll-alpha…
HRYER
  • 1
  • 3
0
votes
0 answers

ERC-1155 token's metadata content on Polygonscan?

Is the Polygonscan explorer able to display the content of the metadata file stored off-chain? It seems it doesn't do this at the moment. On the other side, Metamask and OpenSea display those. Am I missing something with the explorer? I tried going…
0
votes
1 answer

Signed Transaction Once Broadcast on any Evm comptable blockchain

I am trying to make a signed transaction that can be broadcasted on any evm compatible blockchain. How i am doing it try{ const contractInstance = new web3.eth.Contract(contractAbi); const contractTrx = contractInstance.deploy({ data:…
0
votes
1 answer

Not able to bridge deployed ERC20 token through POS Bridge using Maticjs, getting this error "execution reverted: ERC20: approve to the zero address"

Here is my code, I have also added the options as well in the approve function which contains the from, to, gasLimit but that also doesn't work for me const { POSClient, use } = require('@maticnetwork/maticjs'); const { Web3ClientPlugin } =…
0
votes
0 answers

Polygon Edge migration from POA to POS

I have created a 4 nodes POA network using polygon-edge. As mentioned ,I have tried out the approach for migration. I have deployed the staking smart contract in block no 800 .All the validators staking has staked before block no 1500.I have…
0
votes
0 answers

My Matic.sol:109:49: ParserError: Expected '{' but got end of source function setBuyPrice(uint256 _newBuyPrice) ^

Please fix the error: My Matic.sol:109:49: ParserError: Expected '{' but got end of source function setBuyPrice(uint256 _newBuyPrice) ^ please fix the error in this code for me as i am having problem breaking my head trying to figure it out. please…
0
votes
0 answers

Error: Burn transaction has not been checkpointed as yet

I am trying to do withdrawal using Matic Plasma. but Getting error : Error: Burn transaction has not been checkpointed as yet Here is my code : const burnTransaction = async (plasmaClient, txHash) => { try { const erc20TokenParent =…
0
votes
1 answer

Connect Polygon dApp to Wallect Connect using Alchemy RPC Provider

We are currently using the "ethers" library to connect our dApp to Metamask and to send transactions on the Polygon blockchain. We would like to allow users to connect to the dApp via Wallet Connect as well. So far we tried this : import…
Max
  • 696
  • 2
  • 9
  • 24