Questions tagged [polygon]

The tag has no usage guidance.

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

What are the pros and cons selling NFT using the ETH on Polygon?

I know sellers are trying to avoid the gas fee on OpenSea by using the polygon blockchain. What are the pros and cons of both buyer and seller?
0
votes
0answers
12 views

Wouldn't bridging between L1 and L2 result in incongruence when token is burnt on L2 but still exists on L1?

Most bridges between L1 and L2 (let's say between Ethereum and Polygon), particularly with NFT, perform their bridging through the following: From L1 to L2: Hold NFT token in escrow by the bridge on ...
0
votes
0answers
7 views

When minting NFTs on opensea to the polygon network, is there a way to actually use my own address?

When minting NFTs on https://opensea.io to the polygon network, is there a way to actually use my own address? Even if I have MetaMask connected to the polygon network, it seems that opensea uses its ...
0
votes
0answers
33 views

Error: [ethjs-query] while formatting outputs from RPC, when trying to deploy Contract from remix

I get the following error when i try to deploy my smart contract on remix onto the polygon chain: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"...
0
votes
0answers
14 views

Error: Returned error: unknown account

Any ideas why am i getting Error: Returned error: unknown account? WalletAddress and others are correct (I'm sure) when calling method like this: (I'm using MetaMask with custom network, Polygon) ...
1
vote
1answer
107 views

How to properly implement a ContractURI for on-chain NFTs

I am trying to implement contract-level metadata for an NFT collection on OpenSea, However, if I do so with the following code, the contract's metadata won't update on the OpenSea collections' page, ...
0
votes
0answers
20 views

How do I find transactions on the polygon blockchain that were initiated by a particular Etherium wallet address?

An NFT is created on opensea.io. Using the link on opensea we can inspect the transaction data for the NFT on https://polygonscan.com. Looking at the transaction log on the polygon blockchain we see ...
1
vote
0answers
37 views

How to transfer an ERC1155 Matic token using Node.js?

I'm trying to write a Node script that will transfer an ERC1155 token on the Matic network from my address to someone else's address. Here's an example token: https://opensea.io/assets/matic/...
0
votes
0answers
14 views

Need help with ABI Encoding for smart contract verification (Polygon)

Help Lost here i need to encode ABI for smart contract verification ... here is a json code [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType"...
0
votes
0answers
16 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
2answers
91 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....
0
votes
0answers
24 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
19 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
196 views

How to Verify smart contracts deployed on polygon scan?

we have deployed solidity contract to polygonscan, but for some reason, the smart contracts with imports cannot be verified. Has anyone else experienced this?
0
votes
0answers
16 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
77 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
0answers
144 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
1answer
52 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
38 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 ...
1
vote
1answer
54 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
1answer
211 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/...
1
vote
0answers
25 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
30 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
104 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
0answers
18 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 ...
0
votes
1answer
150 views

Polygon (ex-Matic): L1 and L2 communication

I try to send a URI to the layer 2 (Matic sidechain) from the "ERC721 Dummy contract" as Matic/Polygon team calls it and deployed on L1 (Ethereum mainnet). Their current Dummy ERC721 ...
1
vote
0answers
55 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
59 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
22 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
946 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
28 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
43 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
89 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
20 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 ...
0
votes
1answer
64 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
1answer
68 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
112 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
28 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.
1
vote
1answer
154 views

Trying to switch dapp to MATIC

I'm trying to switch a dapp to MATIC/Polygon. I get this strange error: Something went wrong: Error: Internal JSON-RPC error. { "details": "Unauthorized method: net_listening.", &...
0
votes
0answers
39 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
1answer
698 views

Unable to connect to polygon mumbai test network using truffle

I'm trying to use Polygon test network with truffle and I followed this document and youtube video to configure Polygon network for truffle. But when I'm trying to execute truffle deploy --network ...
1
vote
1answer
563 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(...
0
votes
0answers
15 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 ...
1
vote
0answers
53 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
65 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
55 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
20 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
18 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
28 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 ...