Questions tagged [polygon]

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

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

How do I get the amount of asset i have on the pool?

I' am trying to retrieve the amount of token i have on my liquidity pool but i don't know how should i do it i've been trying to use the NonFungiblePositionManager but i can't use the token amount ...
Paucar's user avatar
  • 11
1 vote
0 answers
26 views

Make AA wallet signature permanent

I have a 0xsequence wallet which implements AA, I am signing a EIP712 message using signTypedData and verifying with the SignatureChecker.sol using the function isValidSignatureNow. Everything seems ...
Biel43's user avatar
  • 11
0 votes
0 answers
11 views

Multiple Solidity Versions in flattened file

I have deployed a contract to Mumbai Polygon testnet. While verifying and publishing source code, the flattened file has multiple solidity versions. I got the error below. The OpenZeppelin contracts ...
Valli Nayaki's user avatar
0 votes
0 answers
16 views

Fund deposit on Polygon safe wallet whereas wallet is on gnosis chain

I've created a safe wallet on the gnosis chain using the safe relayer: https://gnosisscan.io/tx/0x1f41365850321f6ec1ee6d05acf44fc53fa56165fc5ef2f6139a67b06494b108#eventlog ChainId being 100 and ...
user3668100's user avatar
0 votes
1 answer
33 views

Trying to send Matic from one wallet to another on Mumbai but it is not sent

Below is my solidity code. I am trying to send MATIC to the "receiverAddress". Everything looks fine. I have 2.3875 MATIC in my wallet and I'm inserting 87500000000000000 as sending MATIC ...
nihilisama's user avatar
0 votes
1 answer
26 views

Trying to send matic to a wallet but Can't stake MATIC

basically what I am trying to do is create a contract that different wallets can send MATIC to one single wallet and after some time withdraw with some reward as MATIC. ie. Stake 100 matic, then ...
nihilisama's user avatar
1 vote
1 answer
30 views

How to fix invalid sender error using alchemy-sdk?

Trying to send a transaction with Alchemy-sdk, but I keep getting invalid sender. What am I doing wrong or missing, code below: My provider is created using ethers.providers.JSONRPCProvider(...
Maniac_1979's user avatar
1 vote
1 answer
55 views

Need Help Generating LP Contract Addresses using Uniswap V3 SDK

I'm in a bit of a coding jam, and could use some help understanding how to utilize the Uniswap V3 SDK to generate accurate Liquidity Pool Addresses. I have already gone through the uniswap ...
armitus's user avatar
  • 113
0 votes
0 answers
45 views

Smart contrat working in remix ide but actions not working with web3.js html interface, only displays work and i can't figure out where and why it is

first of all thank you for your time reading this. I'm trying to learn and play with solidity on polygon mumbai blockchain. I worked with internet forums, videos and chatgpt4. Here is some details ...
Jawhar Aredsgfs's user avatar
0 votes
1 answer
23 views

Are ethereum and polygon ENS synced?

I want to buy myself an ENS domain, but i don't want to pay the gas fees on eth. I know that ENS is integrated on both blockchains but I can't find info if they are synced in any way. If I buy the ...
Josif Hamed's user avatar
1 vote
0 answers
32 views

Cannot deploy contracts on Polygon Mumbai, what am I doing wrong?

I'm trying to deploy contracts to the Polygon Testnet Mumbai, but I get no confirmation, it works maybe 1 in a 50 attempts. I've been iterating my code and I'm quite confused as to what is going wrong....
twangsta's user avatar
1 vote
0 answers
65 views

Are there any USDC off-ramp providers to convert USDC to Fiat currency for a Custodial Wallet?

We have a custodial wallet created for each of the users of our application. They should be able to purchase the NFTs using USDC in the platform. Users should be able to on-ramp and off-ramp USDC from ...
crypto-noob's user avatar
0 votes
0 answers
31 views

Solidity query works in dev environment but not in production build (nextJS)

I am calling a function that queries the token balance of a user. The query works on a dev environment but not in production build. I am using metamask and ethers to interact with my contract on the ...
Ciirno's user avatar
  • 11
0 votes
1 answer
49 views

Multisig wallet: Is it possible to start the signing process without eth or matic in the smart contract?

I built a webapp working nicely. I have a safe wallet, and I'm able to deposit on my app. But strangely, when my safe address don't have matic, the Safe application is not triggered when I want to ...
Nicolas Zozol's user avatar
0 votes
2 answers
33 views

Failing deposit transaction

The following deposit transaction on Mumbai test net is failing as opposed to this transaction on Polygon main net which had succeeded years ago. There are no fundamental differences from code or ...
Pulsares's user avatar
0 votes
0 answers
21 views

Eth::Client::ContractExecutionError - transaction underpriced

I am using the eth gem ruby library https://q9f.github.io/eth.rb/ to execute a function called from the ABI but it keeps getting the error transaction underpriced. I assume that it has something to do ...
javanoob2pro's user avatar
1 vote
1 answer
27 views

what are my erc-1155 transactions meaning? somebody airdrops or mints to my wallet

I currently made wallet in polygon. and some erc1155 contract was being made which i do not know. look below transactions in polygon scan. There are many erc-1155 tnxs to my wallet. but i do not have ...
jjunest Vpn's user avatar
2 votes
2 answers
61 views

Extract the amounts(t0, t1) for non-current tick from Uniswap v3 Pool

I want to get the amounts of the tokens for a tick range which is higher or lower than the current tick. For example I have current tick: -282986 with range [-282990, -282980], I want to get the ...
KunLun's user avatar
  • 197
0 votes
1 answer
35 views

Why is there only one USDT which PoS?

In Polygon wheneer I deal with USDT, it's always PoS. There's no ordinary USDT - without PoS remark, though. Are all USDT in Polygon PoS ones? Or are there other types too? Or did there use to be ...
Nondi's user avatar
  • 49
1 vote
0 answers
30 views

ethers.js can't transferFrom USDT. Numeric_fault Underflow

Error: underflow [ See: https://links.ethers.org/v5-errors-NUMERIC_FAULT-underflow ] (fault="underflow", operation="BigNumber.from", value=178193613693.6, code=NUMERIC_FAULT, ...
kalik's user avatar
  • 11
0 votes
0 answers
37 views

why can't use Apostrophe( ' ) in token Name,

Polygon explorer/ etherscan explorer why can't use Apostrophe( ' ) in token Name, And if I did the explorer shows "&#39"; instead Apostrophe. eg.(cat's = cat+ "&#39"+ s) ...
Jayasurya J's user avatar
1 vote
1 answer
45 views

where does the problem of this transaction come from?

So i've been working on a smart contract and im trying to perform a swap on uniswap using polygon mainnet but im struggling to get it to work, This is the solidity code im using: // SPDX-License-...
Paucar's user avatar
  • 11
2 votes
1 answer
70 views

What's Wrong With My Polygon Mainnet Aave Flashloan Script? - Fail with error '27' & Fail with error 'ERC20: transfer amount exceeds balance'

I have successfully deployed and executed a flashloan on the Polygon network in testnet and have since adapted it for mainnet. On Mainnet it compiles and gets deployed with no problem, but when I ...
Peter's user avatar
  • 23
1 vote
1 answer
158 views

Extract the amounts(t0, t1) per tick from Uniswap v3 Pool

I want to be extract the amounts of t0 and t1 from a Uniswap v3 Pool. I was trying with some method which I found on other post, but I think is not working, or I am doing something wrong. This is the ...
KunLun's user avatar
  • 197
1 vote
0 answers
43 views

After successfully deploying a subgraph via The Graph to Mumbai it suddenly stops working for no apparent reason

so I have succesfully deployed a subgraph to a fork of the masterchef contract from sushiswap. Before beeing able to sync up properly, the subgraph suddenly throws an error and stops. The error ...
CheeseMcBurger's user avatar
0 votes
0 answers
21 views

Facing ZIPPO_CONTEXT_INVALID error while fetching price or calling any other api on mumbai testnet

I am trying to call this endpoint on mumbai testnet using 0x protocol and getting the error . { "code": 100, "reason": "Validation Failed", "validationErrors": [...
ShisukeUrahara's user avatar
1 vote
1 answer
67 views

Encode an integer to a uint256 to call a function

I have the following task. I have a contract, which I don't have the source code for, so what I have is the contract's function selector: 0xddc24be3. The function accepts a uint256 as an argument. ...
iliev951's user avatar
1 vote
1 answer
101 views

How do I create polygon based private blockchain like Ethereum using geth?

I have been going through polygon blockchain. I understand that to reduce transaction cost and improve throughput, polygon employs zkrollups. However, I have not found any blogs or documents about ...
INDUKURI MANI VARMA 21911012's user avatar
0 votes
0 answers
71 views

Trying to deploy a gnosis safe multisig wallet with 3/5 threshold on mumbai testnet

I am trying to deploy a gnosis safe multisig wallet with 3/5 threshold on mumbai testnet. I try and launch it using their website interface but apparently it does support mumbai mainnet but not mumbai ...
ShisukeUrahara's user avatar
0 votes
1 answer
71 views

Gas Estimation Error during deploy a smart contract using remix IDE with Injected Provider (Metamask)

When I try to deploy this smart contract address Using Remix IDE with Injected Provider Metamask wallet (Polygon Mumbai testnet) //SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.4; import &...
Faisal Hussain's user avatar
0 votes
0 answers
57 views

Can't connect to Polygon wallet via ethersjs on production: Error: unknown account #0 (operation="getAddress", code=UNSUPPORTED_OPERATION

I'm creating an application where the user should be able to connect their wallet to the Polygon network. It works on my local machine (localhost), but fails on production (the live site). This is the ...
Jeremy Bernier's user avatar
0 votes
0 answers
17 views

Creating ETH Sidechains

I have been looking online for a resource that helps me how I can build ETH sidechain and Layer 2 How can i use the ETH blockchain and make it a sidechain are there any tutorials or guides ? Do i ...
michaelaberra's user avatar
1 vote
0 answers
22 views

Transaction failed [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] - Gas fee

I'm trying to create new safe wallet for my current wallet using deploySafe method. Following is my implementation: const provider = new ethers.providers.JsonRpcProvider('https://polygon-rpc.com); ...
Nick's user avatar
  • 21
1 vote
1 answer
119 views

Returned error: unknown account Web3.js

I'm trying to create new safe wallet for my current wallet using deploySafe method. Following is my implementation: import Safe, { SafeAccountConfig, SafeFactory, Web3Adapter, ...
Nick's user avatar
  • 21
1 vote
0 answers
23 views

Programmatically deploy Safe smart contract on Polygon Mainnet

I have created a mobile wallet using Flutter. I would like for users to be able to create a new Safe wallet within my app. How can I programmatically deploy a Safe smart contract within my app?
pivotal_cantata0c's user avatar
1 vote
0 answers
28 views

0x ExchangeProxy addresses point to different implementations on Ethereum and Polygon

Why is it that on ethereum the 0xDef1C0ded9bec7F1a1670819833240f027b25EfF contract is a ERC1155OrdersFeature and on Polygon it is a ERC721OrdersFeature? Does is mean that there is no ERC1155 support ...
AFMeirelles's user avatar
1 vote
0 answers
38 views

What does it mean to run a Polygon zkNode without the zkProver?

I was going through the "Setup Local zkNode" section in the Polygon zkEVM Developer Guides and came across the following line: If you are unable to meet the Prover requirements, you can ...
Ashutosh Pathak's user avatar
0 votes
0 answers
5 views

Cannot see sudhi token in wallet on polygon

I made swap on sushiswap on polygon. I cant find it in my wallet. Here is the transaction: https://polygonscan.com/tx/0x7e9ddfd769fece10898b2bebd76f75146cdeb34aa7450f8084e1a53cb786b45c I cant figure ...
GavriShley's user avatar
0 votes
0 answers
115 views

Thirdweb Contract Not working with react

My application was working properly but now it is not working properly made a crowdfunding platform this is my context file import React, { useContext, createContext } from "react"; ...
20C4060_Srajan Acharya's user avatar
0 votes
0 answers
46 views

Sourcify is failing to verify a contract that is verified on etherscan. Why?

This contract address: 0xA933268b812f97Cf623Af8d16780e45880fa1af2 Is verified on mumbai polygonscan. When I try to verify it with sourcify, I get this error: invalid json response body at https://...
Yan Digilov's user avatar
0 votes
1 answer
423 views

How to decode a log['data'] hexBytes from a solidity event using web3.py

I need help pulling zkEVM log data from testnet. I have this simple solidity event in my smart contract (https://testnet-zkevm.polygonscan.com/address/0x98544219dd60eCc071302dAfBfce22F74334f244) that ...
Adam Schroeder's user avatar
0 votes
0 answers
106 views

Make offer to opensea asset on polygon chain using opensea API

I have written this code using opensea API (not SDK) so far but it returns a 400 Bad Request error: const sdk = require("api")("@opensea/v2.0#xx4df2gljerlft1"); const web3 = ...
duskdusk13's user avatar
1 vote
1 answer
229 views

Flashbots on Mumbai/polygone

i'm trying to run a flashbot test on Mumbai. What is the flashbots RPC endpoint for Mumbai and Polygon network ?
adam mr's user avatar
  • 61
0 votes
2 answers
147 views

Hardhat Verify contract issue

I tried to verify contract in polygon mumbai! Harhat version: ^2.15.0 const hre = require("hardhat"); const ETHERSCAN_API_KEY = "" async function deploy(){ const ...
Karthick's user avatar
0 votes
2 answers
100 views

How to create a Mumbai Faucet

I want to create a Mumbai faucet to deliver Matic to people. To be able to do that I guess I need to set up a mining node so I can get Matic for validating transactions and them give this coins to ...
Kevin Kons's user avatar
1 vote
2 answers
52 views

Best ERC-721 wallet for polygon chain technophobes

As the title suggests, I'm looking for advice in helping non-technical people install an app on both android, iOS that is super simple to use and that will then allow me to send them ERC-721 NFTs. ...
Richard Green's user avatar
0 votes
0 answers
22 views

Forking Polygon PoS with hardhat + Alchemy Failing with Connection Timeout Error

I am trying to fork the Polygon PoS with Alchemy and it gives me the error of timeout while my internet connection is pretty good. I don't know why sometimes it runs successfully and sometimes it ...
Ajay Yadav's user avatar
0 votes
0 answers
11 views

Increase and decrease the Premined balance supply on polygon-edge based POS enabled blockchain?

Hy Helpers, I have a query regarding my polygon-edge POS enabled network that I wanted to increase & decrease the supply of Premined tokens, how can this be possible? If any idea or suggestions ...
Akshay Garg's user avatar
0 votes
0 answers
29 views

Getting INVALID_ARGUMENT Error in quickSwap function

I am trying to get amountsOut quote while swapping the USDT to USDC on polygon mainnet and getting a weird error even after doing the exact things that need to be done await window.ethereum.enable();...
Mohit's user avatar
  • 124
0 votes
1 answer
64 views

How to confirm that data has been written to chain?

Using this toy solidity example: contract ... { ... uint256 public value = 1; function setValue(uint256 x) public { value = x; } } Using ethers, if I call the above function ...
Justin Zhang's user avatar

1
2 3 4 5
9