Questions tagged [polygon]

The tag has no usage guidance.

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

Error : A Status code indicating if the top-level call succeeded or failed (applicable for Post BYZANTIUM blocks only)

I am trying to send Transaction using Zapper which swaps MATIC to USDC. Here's my script which worked few times but later started throwing the error from web3 import Web3 import json import requests ...
0
votes
0answers
6 views

Transaction Error. Exception thrown in contract code. polygon bridge

i am tryin.g to bridge transfer WETH to ETH saved in my metamask but its got stuck mid way on a checkpoint and there seems to be no way to go forward. i tried shifting midway from Ethereum mainnet to ...
0
votes
0answers
9 views

Mumbai Network Tokens are not being listed as "created by `you`" in testnet.opensea.io

Here is an example tokens description part of a contract in Mumbai network. And below you see the description part of that exact same contract in Rinkeby network. Due to this issue I can not delete ...
0
votes
0answers
11 views

HardhatError: HH110: Invalid JSON-RPC response received: {"statusCode":404,"error":"Not Found","message":"Not Found"}

i am using hardhat to deploy my contract on matic testnet. its compiling successfully but then give me this error: here is the code require("@nomiclabs/hardhat-waffle"); const fs = ...
0
votes
1answer
25 views

How does polygon deal with Eth values within smart contracts?

I want to deploy a Smart Contract to Polygon. My contract takes 0.01 eth to pay for some digital goods. When deploying to Polygon, the native currency of the chain is not Eth anymore, but Matic, so if ...
1
vote
1answer
30 views

Why would Pending transactions disappear?

I've been working on integrating with the Polygon blockchain programmatically (using Nethereum) but my contract interactions and send transactions all appear to be pending, then when I search for them ...
0
votes
0answers
17 views

How to use geth devp2p to find nodes on non-ethereum chains?

Non-ethereum chains: other chains use geth such as BSC or ethereum layer2 chains such as Polygon. I can find ethereum nodes with devp2p discv4 crawl -timeout 30m all-nodes.json But can't find Polygon ...
0
votes
1answer
57 views

Retrieving Matic Reward Rates on AAVE with a Python script

I am trying to build a Python script to retrieve different AAVE rates programmatically (borrow, lending, and rewards), on the Polygon blockchain (will be very similar for Ethereum). I am using Python. ...
0
votes
1answer
25 views

How to call method and send ether to it from web3? [duplicate]

Have this in solidity function claim() public payable nonReentrant { ...... require(mintingFee <= msg.value, "Not Enough Ether Required To Mint"); .... } Trying to call it ...
1
vote
1answer
31 views

Why is transaction reverting with no additional error details?

I don't understand how people can debug transactions when there are no error details shown. Here is a recent transaction I submitted to Polygon: As you can see, it doesn't in any way indicate what ...
0
votes
0answers
25 views

Problem with deploying on Polygon [duplicate]

I hope you are all well. I am trying to deploy a smart contract on Polygon and I get this error: "only replay-protected (EIP-155) transactions allowed over RPC" I have made some research but ...
0
votes
0answers
68 views

1inch swap contract error (callBytes failed)

I'm currently doing some tests using 1inch smart contract in order to be able to swap currency to another. But I'm facing multiple errors that I didn't understand. Scenario (on Polygon): Call https://...
0
votes
0answers
16 views

Error when deploying to Mumbai Test net "gas required exceeds allowance"

I've written a very simple smart contract in Solidity and I'm trying to deploy it to the test net to make sure that I have not made any mistakes or anything when writing my code. The smart contract is ...
1
vote
0answers
42 views

How to a deploy payable smart contract to polygon mainnet

I've been trying to deploy a payable contract to polygon mainnet but remix doesn't see I have matic in meta mask on polygon mainnet. Can someone help me thank you ?
0
votes
1answer
40 views

Problem with Matic tokens(Polygon)

I hope you are all well. There is something I don't udnerstand. I have matic tokens(polygon tokens) in my metamask under the main ethereum network(mainnet). I had configured the matic mainnet in my ...
1
vote
0answers
21 views

How is Polygon a scaling solution to Ethereum?

Polygon blocks appear to happen 6 times faster, and each block has on average 33% more gas. In total, this means Polygon can process 8 times as much gas as Ethereum. How can one even call this a ...
0
votes
1answer
578 views

Are Ethereum Addresses the same as Polygon?

On OpenSea, I can sell my NFTs on Polygon (MATIC) to lower gas fees. Whenever the NFT is resold, I can specify a royalty to be received by certain wallets. When I create a collection, it prompts me ...
1
vote
0answers
8 views

Would transactions be committed back to the mainnet by sidechains?

When an L2 solution such as a sidechain like Polygon or xDai commits back to the Ethereum mainnet at every of its intervals, do the transactions, storage in the smart contracts, and everything that ...
0
votes
0answers
25 views

Sending Polygon via Metamask

I'm converting my DAPP to Polygon from Ethereum. And currently we have a frontend system that lets users pay us for our services. We are doing this using the Metamask RPC API. But because we are no ...
0
votes
1answer
28 views

What happens when a token is minted on multiple chains?

Let's say we have total supply of a token set at 10,000,000. There are 9,999,999 tokens at the moment. What if at the same time a token is minted on both Polygon and Ethereum?
0
votes
1answer
68 views

What is the Polygon equivalent of `import { useWallet } from '@binance-chain/bsc-use-wallet'`

I'm following a private code tutorial for building a bsc dapp that calls import { useWallet } from '@binance-chain/bsc-use-wallet'. However my current project is going to be for the Polygon network. ...
0
votes
0answers
19 views

Getting error code -32000 (rlp: value size exceeds available input length) while sending raw matic transaction in C++

I use this repo (as well as this one) to generate raw transaction and send it to the Polygon network through JSON-RPC in C++, but I get the error code -32000 (rlp: value size exceeds available input ...
1
vote
1answer
62 views

3 questions about bridging tokens between Polygon and Ethereum

I have an ERC721 token deployed on Polygon that I want to bridge into Ethereum. I'm having a hard time figuring out how bridges and layer 2 work, so I have a few questions about this workflow. 1 - I ...
0
votes
1answer
50 views

What does selling on OpenSea do with a NFT, and how can I do it programatically?

Whenever you setup an existing NFT (minted outside of OpenSea) and use the "Sell" button, I assume the network will know it is up for sale. However, if you'd need to sell a bunch of NFTs at ...
0
votes
0answers
65 views

Call getReserves() from goweb3

I've been using https://github.com/umbracle/go-web3 as my go web3 library, and I am having trouble finding out how to call the "function getReserves(address factory, address tokenA, address ...
0
votes
0answers
26 views

Swap tokens using smart contract on Polygon network

Is it possible to do swap tokens using smart contract and dex on polygon network, analogous to ethereum blockchain and uniswap / 1inch etc. if there is any example I would be grateful if you send.
0
votes
1answer
48 views

Getting error member `add` not found when using ChainlinkClient.sol v0.8.0

I'm trying to use Chainlink APIConsumer example and for the same I'm importing v0.8/ChainlinkClient.sol file. On compiling APIConsumer contract, I'm getting below error. ERROR TypeError: Member "...
0
votes
0answers
31 views

How to use AAVE borrow through web3py and RPC?

I'm using web3py on polygon network, through the RPC provided from MaticVigil I'm trying to borrow using the following python code : nonce = web3.eth.get_transaction_count(ether_address) contract = ...
0
votes
0answers
12 views

Can't start bor (polygon geth) after aws snapshot restoration

after restoring a node from an aws snapshot, starting heimdalld, waiting to sync and then start bor we got the following logs: INFO [08-11|19:15:23.244] Looking for peers ...
0
votes
3answers
77 views

I wonder where this hack started from

before I start, let me first give you the txn history. https://polygonscan.com/tx/0xc7927d4a8b0549dfd650eeab8b9570195d8fb9161884785e9b328c04b6a49232 And also adding my Metamask adress history for WETH....
1
vote
1answer
316 views

Listen to events in the Polygon network using Web3.py

Just started looking at Web3 and I'm currently trying to listen for an event emitted by a smart contract on the Polygon network by using event_filter = contract.events.<MyEvent>.createFilter(...
1
vote
0answers
51 views

Is there any trick (besides high gas fee) to get transactions included in the next Polygon block?

I recognize some arbitrage opportunities on the Polygon network and tend to include my transactions in the next block. Since Polygon's transaction time is too low, I know that I have to do it quickly ...
0
votes
0answers
47 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....
0
votes
0answers
48 views

Can't deploy opensea-creatures samples in Polygon

I try to deploy the opensea developer example (https://github.com/ProjectOpenSea/opensea-creatures) in Polygon and i have the same problem and I verify that my truffle-config.js have configurate the ...
0
votes
0answers
18 views

Must I have metamask installed in order to use Web3js

I forked the GitHub repository https://github.com/dappuniversity/price-bot and made some edits to the code. I used my laptop and ran the code using by typing the command npm run start in my terminal ...
0
votes
0answers
13 views

How to call exit function for POS Bridge with parameter of Calldata

I am working on POS Bridge for Ethereum to Matic and Matic to Ethereum NFT transfer. I have done all the steps. Transferred NFT from ethereum to matic. When I am trying to transfer nft to ethereum ...
0
votes
0answers
25 views

Main DApp on L1 , NFT minting on L2

I have developed DApp on L1 and because of high fees I made ERC721 token on L2(Polygon). When someone calls for example reward function from L1 contract, I just want to mint an NFT on Layer2 and set ...
0
votes
0answers
11 views

I am trying to deploy on Polygon network using truffle suite however during migration I am getting error!

Error message: truffle migrate --network matic --reset Compiling your contracts... =========================== / Fetching solc version list from solc-bin. Attempt #1 C:\Users\aryan\Documents\GitHub\...
0
votes
0answers
51 views

How to get all addresses that have had successful transaction in the last polygon block?

I need to listen for special events on some contract addresses in Polygon/Matic blockchain; However, my provider has limitations on the number of possible subscriptions. So, I have to get all the ...
1
vote
0answers
94 views

Gas estimation failed in remix with MATIC or BSC (ETH testnet works)

I'm facing a very annoying error but I'm unable to find an answer for it. Case: Using Metamask, having accounts in eth Popsten with ETH coins, bsc and matic with coins I'm using just a simple ...
1
vote
1answer
54 views

Does smart contracts "sync" between Polygon and Ethereum?

I'm deploying my ERC721 application on the Ethereum network and, of course, fees are a concern. I'm considering giving my customers the option to execute the contract calls on Polygon as well for ...
0
votes
0answers
184 views

Metamask Internal JSON RPC Error in Polygon testnet network

I am getting Internal JSON RPC error in all the pages of my Dapp when connected to polygon testnet(mumbai). Application is compatible with BSC testnet and Polygon testnet. It is working fine for BSC ...
0
votes
0answers
25 views

1Inch Swap with Go Return amount is not enough

I'm attempting to do a swap with 1Inch and Go but an error of "Return amount is not enough" is returned. The token has been approved and I have tried adjusting the slippage to 10% without ...
0
votes
1answer
59 views

Is my matic lost?

Recently I sent erc20 matic from an eth wallet to an matic wallet address the tx was successful on etherscan but my sent amount or tx is not found in the destination matic address and or polyscan. Is ...
0
votes
1answer
164 views

Quickswap router function error when liquidity is added on WMATIC pair

i've been trying the functions from the router using the web3.py library. However am getting into troubles when calling the function with a WMATIC/Token liquidity pair and using USDC as currency to ...
0
votes
1answer
159 views

QuickSwap transaction reverts on Polygon

I'm attempting to swap USDC for DAI using Web3JS and QuickSwap on Polygon, but the transaction always reverts and I have no idea why. I have tried different value amounts in the transaction without ...
0
votes
1answer
119 views

Can not migrate on Matic network: There was a timeout while attempting to connect to the network

I am trying to deploy my smart contracts on the Matic Mumbai testnet. Please find below my truffle-config.js: module.exports = { plugins: ['solidity-coverage'], migrations_directory: './dist/...
0
votes
1answer
143 views

Have gas fees the same usage on Polygon/Matic as Ethereum?

I've noticed that recently, Polygon blockchain becomes too slow at specific hours of the day. My transactions getting queued for several hours and then only some of them being sent to the blockchain (...
1
vote
1answer
120 views

The current provider doesn't support subscriptions: HDWalletProvider on Polygon (matic) blockchain

I use wss://rpc-mainnet.maticvigil.com/v1/MY-APP-ID as my polygon dApp provider, however I cannot subscribe on newBlockHeaders event with the following error: Error: The current provider doesn't ...
1
vote
1answer
21 views

Remix not recognizing WMATIC address in an array

I am stuck trying to compile a contract using Remix. I am initializing an array as follows: address[] public wmaticToUsdcPath =[0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270, ...