Questions tagged [matic]

For questions related to Polygon (formerly Matic) blockchain.

44 questions
6
votes
2 answers

Wallet Connect: No RPC Url available for chainId: 137

I am trying to create a WalletConnect provider. I am using the @walletconnect/web3-provider package along with Web3Modal for UI. I am instantiating the WalletConnectProvider using my Infura client ID let web3Modal = new Web3Modal({ network:…
David Callanan
  • 5,601
  • 7
  • 63
  • 105
3
votes
0 answers

Why do my ethers.js transactions keep pending/dropping on polygon even with a lot of gas added?

I'm trying to automate sending transactions through ethers.js. It works all perfectly on Rinkeby, but then on Polygon the transactions stay pending for days even when adding much more gas than neccessary. Pending…
SINCOS
  • 89
  • 6
3
votes
1 answer

Fetching MATIC / Polygon asset metadata from Opensea API / Polygonscan API

i'm using the Opensea API to retrieve collectable asset metadata, all results from the call return as expected for assets tokenized on ethereum mainnet, however, any assets tokenized on the polygon network are not returned. What is the current…
Lawrence3DPK
  • 33
  • 1
  • 8
3
votes
1 answer

Nethereum invalid sender: eth_sendRawTransaction on polygon chain

static async Task SendTx(Wallet wallet, string toAddress, double amountOfCoins) { var accountFrom = new Account(wallet.GetAccount(0).PrivateKey, 137); var web3 = new…
Jtara
  • 45
  • 5
2
votes
1 answer

Where event LogFeeTransfer is used in polygon contract?

When I decoded and checked a transaction's log about the polygon contract (0x0000000000000000000000000000000000001010), I found the signature like "LogFeeTransfer(address,address,address,uint256,uint256,uint256,uint256,uint256)". However I can't…
ttt
  • 23
  • 3
2
votes
0 answers

MATIC + Web3 : Unable to interact with a deployed smart contract

I have deployed the simple datastorage example smart contract on mumbai testnet. I have the smart contract abi and address. I am trying to use web3 in my python code to interact with smart contract. But, I keep getting this error "ValueError:…
skr
  • 127
  • 2
  • 16
2
votes
2 answers

Is it possible to get a metamask private key?

I'm beginner to blockchain development, and I have a question in the polygon documentation in order to make a deployment using hradhat, you need to pass account: process.env.PRIVATE_KEY, but how do I get the user's private key when logging in to the…
il Mir
  • 31
  • 1
  • 2
2
votes
1 answer

Using MATIC with Web3 and MetaMask: "Error: Returned error: unknown account"

I have a server-client DApp that I've tested working fine on an Ethereum test network. But due to gas fees, I want to use a L2, in this case I chose Polygon (MATIC). Basic app is reading and writing text posts to a website, the smart contract stores…
JDS
  • 16,388
  • 47
  • 161
  • 224
2
votes
1 answer

Polygon transaction working just fine on Mumbai but not on Mainnet

Hello I'm trying to mint an NFT using Polygon and it works just fine on Mumbai but as soon as i switch over to the mainnet the transaction doesn't go through instead of going through in 5 seconds on mumbai. Even though im using the exact same…
Max Campbell
  • 595
  • 9
  • 22
2
votes
1 answer

Can you use ethers.js with the Avalanche network, Polygon network, and Fantom Opera?

I am trying to use ethers.js to check the balances of wallets on evm compatible side chains. token.balanceOf(address) keeps giving me 0. I have changed the rpc, contract abis, and contract addresses to their respective chains. Am I missing something…
marrrrrrk
  • 65
  • 9
2
votes
1 answer

Error When minting ERC721 on Matic Testnet

Looking for help to trouble shoot the error below. I am trying to mint an ERC721 nft on the Matic Testnet. I am using hardhat and have tried the following tesntnet networks that gave me the same…
stochasticcrap
  • 350
  • 3
  • 16
2
votes
1 answer

Matic Mumbai deployment failed at migration with Replay-Protected (EIP-155) error

I'm looking to deploy dApp onto Polygon's Matic Mumbai test network, but I keep getting errors. Contracts deploy well on all Ethereum networks and I've made sure to have some MATIC (just in case even though it's not asking for any). Here's what I…
1
vote
1 answer

Why are polygon transactions being dropped and replaced?

It seems transactions on polygon can get automatically dropped and replaced. original: 0xa67609bacf51ab83b1989e4097b4147574b4e26399bec636c4cfc5e12dfa2897 replaced: 0xec0d501619b5fc9cde6af41df929eeded252138a49965f15a7598bf2e532e555 What is happening…
1
vote
0 answers

My function call is returning expensive gas cost on metamask

To context. I want to make a contract that receives USDC and send custom tokens to the buyer. After that, in the same call, the contract forwards those USDCs to another wallet. I have done tests, and calls. When I do it through Remix, I'm able to…
Tsss
  • 11
  • 2
1
vote
1 answer

Can i use polygon network to process the transaction from eth network

Can I actually process some operations in Polygon via contract deployed on Ethereum network? I tried to use plasma bridge and pos bridge but they are acting like normal bridges just for token transfering.
1
2 3