Questions tagged [polygon]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

What to pass for abi encoded arguments

I had cloned usdc contract on polygon test network and deployed it. I want to test deposit method but couldn't able to figure what to pass in depositData( more specifically in which format should i ...
0
votes
0answers
4 views

Is WETH's price the same accross diffrent blockchains?

If I open https://coinmarketcap.com/currencies/weth/ I see that weth has multiple contacts in different blockchains. I'm wondering does that mean the market price for this token is the same (or should ...
0
votes
0answers
6 views

Deploying Migrations using network Matic-- insufficient funds for gas * price + value

Trying to connect to the Matic network on Metamask. I funded the account with matic and followed the directions using Polygon's documentation. How do you solve the insufficient funds error?
0
votes
0answers
10 views

Is it possible to point a ERC721 TokenURI from an L1 to a tokenURI on an L2 (i.e. Ethereum to Arbitrum or Polygon)?

Is it possible to point a ERC721 TokenURI from L1 to a tokenURI on an L2 (i.e. Ethereum to Arbitrum or Polygon)? Other than using a centralized oracle, is there anyway to link data between an L1 and ...
1
vote
2answers
32 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....
0
votes
0answers
19 views

Event not firing - Alchemy Polygon Mumbai API difference to Alchemy Eth Ropsten API?

I have a simple smart contract deployed via Hardhat to both Eth Ropsten and Polygon Mumbai testnets. It contains a function that my app calls, and the function fires an event as below. event ...
1
vote
0answers
3 views

Is there a config file to set the default network in a file for Metamask extension? I want to be able to set it as the Polygon network when it starts

I'm forking the metamask extension and I want to set the Polygon Network as the main network in my fork of Metamask. Is there a config file I can just edit to add this in before a user sets up their ...
0
votes
0answers
16 views

Is it possible to verify and publish a contract with openzeppelin imports without uploading imported contracts?

I wrote a contract and imported below contracts and deployed into polygon testnet, but while verifying and publish it is getting failed with : Error! Unable to generate Contract ByteCode and ABI (...
0
votes
0answers
12 views

Inconsistent availability of older transaction receipts on Polygon

I am trying to access transaction receipts on the Polygon blockchain with Python web3.py. I discovered that the function web3.eth.get_transaction_receipt(tx) sometimes throws an TransactionNotFound ...
0
votes
2answers
41 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 ...
2
votes
0answers
85 views

Transfer an NFT token from Polygon to Ethereum - Solidity smart contract

I am new to blockchain development, NFT and Solidity and i need your help. I have fount this twit and this Polygon documentation Most of the assets are pre-existing on Ethereum chain. But new assets ...
0
votes
1answer
43 views

Uncaught TypeError: Cannot read properties of undefined (reading 'Contract')

Trying to create a smart contract but keep getting a error for "bytecode" parameter. Using Local: 800 to run the code on google chrome browser. Can I get help fixing this issue ??
0
votes
0answers
15 views

INSUFFICIENT_ASSET_LIQUIDITY response for the sell amount when calling the Polygon API

When trying to make an api call to Ox through Polygon, I am receiving the following error: { "code": 100, "reason": "Validation Failed", "validationErrors": [ { ...
0
votes
1answer
19 views

swapExactTokensForTokens not working!

We are trying to "swapExactTokensforTokens" for swapping any token, and it runs well, but we get this error at the blockchain: TRANSFER_FROM_FAILED https://polygonscan.com/tx/...
1
vote
0answers
28 views

Web3.py Transaction with hash ХХХ not found

I have a issues. I need to receive a receipt for transaction "0x7a695820b6491b767308c45776e1da5445c7a2edac29aa14d916bda834d47c31" on Polygon, in which the Klima Token contract was created. ...
0
votes
0answers
106 views

I get "There was a problem processing your request" when buying or accepting an offer on OpenSea

I made my own collection of NFTs on OpenSea and I'm trying to buy or accept offers. The network I'm using it Polygon (Mumbai). The problem is, that there's no way, or at least I couldn't find a way, ...
0
votes
0answers
10 views

Getting "ValueError: invalid sender" in brownie and python when sending ERC721, eventhough the scripts does work on test-net

I'm using the following code: from brownie import myContract from brownie.network import max_fee, priority_fee from scripts.scripts import get_account import pandas as pd max_fee("50 gwei") ...
0
votes
0answers
10 views

How to verify polygon smart contract using truffle?

I deployed a simple NFT smart contract on polygon mumbai testnet but when I am trying to verify it then It is showing an error. please guide me how to verify it... This is the error which I am getting ...
1
vote
1answer
68 views

Polygon Mumbai test net MATIC tokens

I am developing a Dapp and I want to test it using the Mumbai testnet but I need many matic tokens. Currently the Mumbai faucet is giving you only 1 MATIC token. Is there a way to obtain some more? ...
0
votes
0answers
8 views

Do you think blockchain technology viable with very fragile and volatile gas fee?

This is not a technical question and I am wondering about the future of blockchain technology from a professional's perspective. Polygon being a layer 2 solution, it's gas fee has increased by 16 ...
0
votes
2answers
931 views

How to swap wETH for ETH on Polygon network?

The current largest mining pool Ethermine has an option to be paid in wETH through the Polygon network instead of in ETH on the mainnet. Through MetaMask on the Polygon network, I see my wETH in my ...
1
vote
1answer
36 views

Why computed number of confirmations is a lot larger than value from the block explorer?

As it has been explained here, here and even here I proceed with computing number of confirmations for a given txid. It works but gives weird results which are not consistent with the block explorer. ...
1
vote
0answers
31 views

What are the best practices when launching a smart contract protocol on multiple networks/chains?

Hi I have some questions on protocols that launch on multiple networks/chains. For example, Aave originally launched on the Ethereum network but now is also on networks like Polygon and Avalanche. To ...
0
votes
1answer
25 views

Gnosis Safe + Zodiac Module on Polygon - sending assets other than Ethereum

We are running into an issue with the Zodiac Module with Gnosis Safe integrated in snapshot on Polygon. The Safe contains some test assets (namely MATIC) other than ETH, but in the transaction in ...
0
votes
1answer
52 views

How to successfully utilise the safe mint or mint function?

function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an ...
0
votes
1answer
21 views

How to match DeFi transaction to vaults

I'm building a defi dashboard. I need to value a DeFi wallet. I can value individual tokens that trade on a dex, and even LP receipts. But I'm having trouble with protocols like Adamant Finance, which ...
1
vote
1answer
43 views

How to deploy a contract in Rinkeby, Ehereum, Polygon and Fantom with the same address?

I have noticed by doing some tests that when I publish the same contract on different networks, the address is the same. Then, the "Etherscan" of each network show a link to blockscan.com ...
0
votes
0answers
9 views

Gas limit exceeded when trying to mint 555 nft's

Trying to upload in a collection on opensea 555 nft's using remix. The error that I receive is Internal JSON-RPC error. { "code": -32000, "message": "gas required exceeds ...
1
vote
1answer
97 views

How to query my Polygon NFTs created on Opensea?

sadly I realized, that while querying my assets on Opensea, as well as collections, is feasible through OpenSea Api for Ethereum NFTs, the same is not true for Polygon Collections and NFTs in my ...
1
vote
0answers
26 views

How can I get current price for UniSwap token? [duplicate]

I have a token I created on the Polygon mainnet and am providing liquidity through Uniswap. I need to programmatically fetch the current price to use in my tipping widget. Is there an API for this? I ...
0
votes
0answers
16 views

How to correct wrong MATIC transfer

i have transfered MATIC Mainnet coins to MATIC ERC2 so its in the wrong address I have found my transfer in Polygonescan but can I retrieve those coins? or are they lost for ever??
0
votes
0answers
109 views

Trying to list an NFT but it says insufficient funds

I recently move ETH to Polygon so I can list an NFT for sale. However, it keeps saying I have insufficient funds when I try to list it. On my Metamask it's showing 0 ETH but theres a balance of ETH ...
0
votes
1answer
11 views

Dynamically supply link to chainlink upkeeper

I've created a simple chainlink upkeep task on polygon: import "@chainlink/contracts/src/v0.7/KeeperCompatible.sol"; contract Counter is KeeperCompatibleInterface { /** * Public ...
0
votes
0answers
13 views

Is there an API to get info on the liquidity pools on QuickSwap?

How to get the following info of the LP farms Total Deposits, Total Rewards, Pool rates, Rewards + APY
0
votes
0answers
25 views

Problem with transaction confirmation on MUMBAI test network (16 December 2021)

I have the above code which is creating a smart contract on MUMBAI network the code sends the transaction but the transaction is never being confirmed Transaction with hash: '...
0
votes
0answers
8 views

Finding Matic Balance History

I am working on an personal project where I need to fetch my MATIC balance at a given date, however there is not an endpoint for this on polygonscan. Anyway I can do this from the transactions? I ...
1
vote
1answer
230 views

How to signTransaction on Polygon Matic?

I have an smart contract running over Ethereum mainnet, Rinkeby, Kovan and BSC. I am using web3.js to sign transactions in the following way: var data = contract.methods.MyFunction(from+'', ...
1
vote
2answers
283 views

Metamask: wallet_addEthereumChain is not working when using polygon mainet but works with polygon mumbai

Im trying to programmatically switch the metamask network of the user. Using wallet_addEthereumChain It's working fine when requesting a network change for Polygon mumbai, however it doesn't work when ...
0
votes
0answers
22 views

Can I On-Chain Transfer an ERC20 token to an Ethereum Address using Polygon's POS Bridge?

I want to send an ERC20 token from the Polygon blockchain to an address on the Ethereum blockchain. I've read the docs and it seems like the only way to do it is to call the ERC20 withdraw function on ...
0
votes
0answers
118 views

How do I set provider for polygon mainnet?

If I have metamask installed my code works, but if its not installed I get this error: chovy, [12/12/21 10:58 AM] Uncaught (in promise) Error: Provider not set or invalid at Object.InvalidProvider ...
1
vote
1answer
83 views

Unable to get events in Polygon's test network

I want to get the address of an event for a contract I created in mumbai test network, but I get the following error Error: Internal JSON-RPC error. { "message": "Blockheight too far ...
0
votes
1answer
45 views

Where is correct information for 0x implementation on Polygon?

We are trying to use 0x protocol for trading ERC721 on Polygon. And I am kind of lost where is correct information. Could someone point to the right direction. Contract addresses: where is correct ...
0
votes
1answer
181 views

Cannot deploy by Truffle to Polygon Mumbai testnet

I`m trying to deploy by truffle to testnet polygon Mumbai a smart contract , However it does not work with my contract. It worked with another smaller contract , but with this one which imports ...
0
votes
0answers
40 views

Connecting to Polygon network with OpenEthereum

Have anyone already managed to connect OpenEthereum node to Polygon (mainnet or Mumbai testnet)? I seems to be technically possible. I need some kind of genesis.json file for these networks along with ...
1
vote
1answer
61 views

Schedule payment of ETH from polygon network to Ethereum network

I want to design a contract in polygon network which receives crypto (ETH) from sender and sends it to the receiver on a timely basis may be monthly. I am not sure if it is possible without polygon ...
0
votes
1answer
53 views

Transaction revered when fillOrder on 0x protocol

I am trying to write an app that sells NFT using 0x protocol smart contracts and test it on Mumbai Polygon testnet, Deployed my test ER721 contract and test ERC20 contract. Got 0x contract addresses ...
0
votes
0answers
29 views

How do I see token amounts in a polygon wallet?

I'm trying to write something that will allow me to see how much of each coin a wallet has. I only have the private wallet address and addresses for different tokens on the polygon network. I'm ...
2
votes
1answer
423 views

Deploying a solidity smart contract to polygon matic

I'm new to blockchain development and smart contracts. I've learned to create smart contracts with Solidity and deploy them on the Ethereum network. I'm planning to transition to polygon because of ...
0
votes
1answer
89 views

How to add Polygon (Matic) to MetaMask?

Metamask has mainnet installed, while testnets are hidden by default. But what details are required when adding a custom network to connect to the Polygon (Matic) network via Metamask? Are there any ...
1
vote
1answer
53 views

Transaction never gets minned on Polygon Testnet

I have been trying to send a tx using nodejs for some time now, however the tx only output’s the transaction hash but it is never confirmed or mined, I am using the following params for the same { ...