Questions tagged [polygon]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How is the gas information transmitted into Metamask signing transaction on Polygon?

we are building a swap tokens feature using your API to get the quotes data. The reason is the inability to provide adequate gas value to Metamask on Polygon (other chains work fine) We wonder how ...
0 votes
1 answer
10 views

Flashloan Equalizer

I try to understand how to get a flashloan from euqlizer finance and make something with it. There is a documentation where they say I have to call the onFlashLoan(...) function to borrow the ...
  • 1
0 votes
0 answers
17 views

Use AAVE contract in my own contract. cannot estimate gas; transaction may fail or may require manual gas limit

I am tring to use AAVE contract in my own contract. but I have a question on this mysterious error. Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://...
  • 101
0 votes
0 answers
8 views

Node js: Error [OpenError]: IO error: /var/task/matic/exceptions/eth/LOCK: Read-only file system

Can someone help me? I am using node.JS 16.17.0 (includes npm 8.15.0). The code is working locally without errors, but not when I deploy it on Cyclic and Vercel. This is the code - const fs = require(&...
0 votes
1 answer
15 views

How to run the approve method of Matic smart contract on Mumbai Chain?

I am trying to interact with Matic smart contract on Mumbai chain. The contract address would be - 0x0000000000000000000000000000000000001010. This code below is calling the approve method. ...
1 vote
0 answers
11 views

How to identify ethereum nft holders on polygon?

I have an nft contract 'A' deployed on ethereum and I want to have a contract deployed on polygon to identify which users are the nft holders of 'A'. In short I want to identity the nft holders of 'A' ...
1 vote
1 answer
15 views

ERC20 Token Transfer Inside a Contract Not Show In Explorer

I created a token in Mumbai Polygon Testnet. Token: 0xe6fABBF30a2aDc850E507aCbcF7D0BAFFe64A4Ad Transfering etc. works well. Then I created a contract interacting with that token. Contract: ...
  • 13
0 votes
0 answers
7 views

Will dynamic metadata persist for bridged assets transfered Between Ethereum and Polygon?

Im exploring how I can use polygon for my existing eth nft 721 contracts. From what I can gather once Eth contract is mapped to polygon you can then bridge your assets over. This seems simple. I know ...
  • 101
1 vote
2 answers
41 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 ...
  • 13
1 vote
0 answers
16 views

Error deploying contract via Truffle to Polygon mainnet

When I try deploying with command npx truffle migrate --config=truffle-config.js --network polygon, I get the following error. Error [ERR_UNHANDLED_ERROR]: Unhandled error. ([object Object]) at ...
  • 138
1 vote
1 answer
15 views

Why don't I have "Create a basic sample project" in HardHat?

The situation is like this. I watched the tutorial and it came to "Deploy Smart Contract". I create a folder and open it in Visual studio. I activate the command "npm i -D hardhat" ...
  • 11
0 votes
0 answers
17 views

How to retrieve NFT/Crypto from an hacked wallet on Polygon?

My wallet get compromised and a bot is retrieving all my funds each time I try to put somes on it. The thing is that I want to retrieve an NFT on it. I saw this : How to Tranfer Remaining NFTs And/Or ...
  • 1
0 votes
0 answers
9 views

Can ERC721A be implemented with opensea proxy

Can ERC721A be implemented with opensea proxy. Please can someone show me an example for eth or polygon? I would like to add gasless transfers. Thank you!
  • 1
4 votes
1 answer
22 views

Polygon mainnet has two official ERC20 Link token contract. Which one DEXs use when on polygon mainnet

I was going through the top erc20 token by marketcap on polygonscan. There I have found these two LINK tokens: https://polygonscan.com/token/0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39 ~ from polygon ...
0 votes
0 answers
8 views

Polygon ERC71 metadata attribute reading from external source

I'd like to know if it's possible to have a property in the metadata that's connected to the ERC721 NFT's TokenURI that get's it value from an external source? e.g. "attributes":[ { ...
  • 143
1 vote
0 answers
22 views

Contract Deployment on mumbai testnet stuck at (pending)

Im running through some tutorials and all the contracts that I deploy to the polygon testnet always get stuck sitting there as (Pending). Any ideas why that would be? Here's an example of one: https://...
  • 143
0 votes
0 answers
16 views

Solidity - Claiming a reward once every N units of time

What is the workaround for logic where a user can only claim a reward once a month, I have noticed an exploit in the below code so that if a user calls the claim function multiple times before the ...
1 vote
0 answers
15 views

does opensea treats differently ERC721 and ERC721URIStorage? What about using pinata vs custom IPFS server?

I developed a contract and uploaded it to the polygon chain. I wanted to use my own IPFS node to be as "decentralized as possible", so I used URIStorage. It costs more gas but because in ...
0 votes
1 answer
56 views

Im trying to deploy contract on Polygon Mumbai but cant

I get this error when deploying my contract. It only takes 3,600,000 gas to deploy and mumbai gas limit is 20,000,000. deploying "DeqityFactory"exceeds block gas limit {"name":&...
0 votes
0 answers
11 views

How to solve this error, for counter smart contract in reactjs

How to solve this error got in call the function inc // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; contract Counter { uint public count; // Function to get the current count ...
  • 3
0 votes
0 answers
28 views

CALL_EXCEPTION execution reverted due to less gas limit

I have kind of complicated function with an dynamic array. Always, when I execute hardhat or metamask the gas limit is calculated to less, that the function runs into a CALL_EXCEPTION. Is there a ...
0 votes
1 answer
101 views

Ethers setup provider for mumbai testnet

I try to connect to mumbai testnet in javascript. I don't want to use alchemy, infura or something like this, but want to connect drectly. I already have deployed a smart contract to mumbai-testnet. I ...
  • 1
1 vote
2 answers
34 views

How to verify in PolygonScan correctly?

I am trying to verify a contract in Polygonscan. I flatten my contract, remove the constructors, compile in REMIX IDE without erros with Petesburg EVM version using enabling optimization (200). The ...
1 vote
1 answer
36 views

trasnsaction not confirmed forever at polygon mumbai

since a few weeks, I tried deploy contract on polygon mumbai by hardhat. but transcaction not confirmed for a while then timed out. so I set higher gas, gasprice, and time out limit. but nothing ...
  • 13
0 votes
0 answers
28 views

refreshe metadata on opensea on polygon Network

I see some methods how to refresh collection metadata on opensea. one method was this https://api.opensea.io/api/v1/asset/[contract-address]/[token-id]/?force_update=true but it doesn't work on ...
0 votes
1 answer
40 views

Is there sdk to create new account in Polygon through web3

Is there any functions or API to create a new account in polygon, like hashgraph in hedera, is there any function or API to create a new account through code in the polygon? I really appreciate any ...
  • 3
0 votes
2 answers
136 views

Polygon Mumbai Testnet Not Working

I'm trying to deploy a contract to the Polygon Mumbai testnet and transactions just don't get processed, even after more than two days. I've tried setting higher gas amounts. I've also tried both ...
0 votes
0 answers
23 views

Is there any way i can call the Contract methods from INFURA and use Metamask to sign this contract calls?

I'm getting an error randomly when i call the Smart Contract methods from metamask: it says "Internal Json RPC error: Header not found". I think it's because of I call 10 to 11 contract ...
0 votes
0 answers
17 views

websocket: bad handshake (HTTP status 503 Service Temporarily Unavailable) - Go-Ethereum

I have encountered a problem. I have followed this tutorial (https://goethereumbook.org/en/event-subscribe/) in goethereum, but when I replace node endpoint matic(wss://rpc-mumbai.matic.today), I ...
1 vote
3 answers
64 views

NFT on polygon community mint or directly list to secondary market

Guys I am about to release an NFT art collection project with one influencer and his community. I am planning to mint all the 10000 items and list them on opensea (polygon). It will be easier for me ...
  • 73
0 votes
0 answers
12 views

How to accept payments in USDC on the Polygon Mainnet? [duplicate]

I have a ERC-1155 multi token NFT contract, and I want to accept the NFT payments in USDC on polygon main network. Currently, I'm using chainlink data feeds to get the latest MATIC/USD price.
0 votes
0 answers
22 views

Migration of ERC1155 from ETH mainnet to polygon for exchanging items

We have two ERC1155 contracts deployed on two networks ETH Mainnet (10K sword items) Polygon Mainnet (wearable items) Our goal is to allow a sword item holder on ETH Mainnet to exchange its item to ...
1 vote
0 answers
21 views

Can't verify contract on polygon even though constructor params matches

I'm trying to deploy a contract and verify it on mubai test network. Even though I have the exact same parameters in deploy and in verification, I can't seem to be able to validate it. It seems to be ...
1 vote
1 answer
69 views

Alchemy - replacement transaction underpriced

SC: 0x3c445903aCa6c4d1B55357Fb9F8e22252899478A I simply try to mint() on Polygon Mumbai but I had to workaround "replacement transaction underpriced", I still can't see any pending/unmined ...
  • 31
1 vote
1 answer
24 views

Minting ERC20 on ETH and Polygon

I am looking for creating an ERC20 smart contract on ETH and mapping it to Polygon. The idea is to have 100.000 tokens available in total and allow users to mint from both sides. Is this possible? I ...
0 votes
1 answer
40 views

Do private keys map with MAC address for uniqueness? Can my eth private key and address match with another user in polygon network?

I learned that addresses are generated like this: privatekey->publickey->address. so, the uniqueness of the address depends on the uniqueness of private key. And private key is just a random ...
0 votes
2 answers
36 views

0x Protocol API - Polygon (Mumbai)

The 0x Protocol API Endpoint for Polygon (Mumbai) doesn't seem to work. curl --location --request GET 'https://mumbai.api.0x.org/swap/v1/quote?buyToken=0xcB1e72786A6eb3b44C2a2429e317c8a2462CFeb1&...
0 votes
0 answers
26 views

ERC 1155 batch minting issue solidity and nodejs

here is the function for my batch minting, when I test this function on my Js file i get an error: function batchMint( address to, uint256[] calldata amounts, uint256[] ...
  • 1
0 votes
1 answer
76 views

I am creating random accounts on brownie using accounts.add, are the account address "mine" even in the polygon-testnet?

I am creating random accounts on brownie using accounts.add, are the account address "mine" even in the polygon-testnet? if so, how does brownie know that address is a new address. Also how ...
0 votes
0 answers
74 views

EthersJS Polygon Mainnet Underpriced Transaction

I'm trying to do a transaction using EthersJS on Polygon Mainnet, I don't override the gas price. According to this: https://github.com/ethers-io/ethers.js/discussions/2439 I believe that EthersJS ...
0 votes
0 answers
143 views

Is it possible to send transaction in Polygon-mumbai using web3 and ethereumjs-tx?

const main = async () =>{ const abi = fs.readFileSync('erc20_abi.json', 'utf-8') const contract = new web3.eth.Contract(JSON.parse(abi), contractAddress); const transfer = contract....
0 votes
0 answers
19 views

Swap bundles in 0x Protocol

Do you know if future updates of the protocol will allow to swap NFT bundles as in version V3 of the protocol? I would be very interested in that functionality but I can't use the v3 version because ...
  • 1
0 votes
1 answer
19 views

Send token from owner account from backend (Custom ERC20 token)

I made a smart contract for token on the Polygon network. The server part is NodeJS. Now I'm trying to implement the functionality of sending tokens to the recipient's wallet from the token creator's ...
0 votes
3 answers
108 views

What is the easiest way to get an NFT json file?

I have an NFT in my wallet. It's contract address is 0x3cd266509d127d0eac42f4474f57d0526804b44e in Polygon mainnet. My NFT ID is 1234. What is the easiest way to get the NFT json file (getTokenURI) ...
0 votes
2 answers
53 views

Implement splitting payment in ERC-20 token

I am new to this topic. I'm trying to implement a method to split the payment inside the token contract itself. I know that there is a separate contract for payment splitting, but I want to try to ...
0 votes
1 answer
177 views

Polygon Mumbai - transaction pending infinetly when interacting with contract

I am trying to implement a ERC721 NFT smart contract at polygon mumbai network. First of all, contract code is here: https://github.com/Lorenzobattistela/melk-smart-contract When I first deployed with ...
0 votes
1 answer
66 views

Load different singleton in safe_cli on Avalanche

we have a Gnosis Safe in polygon, and by mistake we sent funds to the same address but on Avalanche. We tried to deploy a Safe in Avalanche, with the same address, but the problem is that the Safe ...
  • 29
0 votes
0 answers
12 views

Updated Question - Any alternative to while loop in conditional scenarios in solidity?

Referring to the question already posted here. Hi... The previous answer worked for me as posted above... So extending that now I have an updated scenario for a similar situation. Now I am trying to ...
0 votes
1 answer
92 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/...
0 votes
1 answer
21 views

My contract fails to receive value (MATIC) [duplicate]

I have a problem in sending 0.01 MATIC to the smart contract, I always get the not enough funds error: the called function (createBid) is payable in the smart contract and here is the code: I tried ...
  • 3

1
2 3 4 5
7