2 votes
Accepted

Can Metamask be used for all ERC20 token?

All ERC20 tokens are fully supported in Metamask, and WETH is an ERC20 token. The tricky thing is that you have to manually add the tokens, since otherwise Metamask doesn't know which tokens you have. ...
user avatar
2 votes

Network switching in HTML JS. Please support

Here it goes. The function below uses metamask and switches the network to the one received in the function parameter. Note that the network id must be passed in 0x format, for example, 0x1 for ...
user avatar
  • 181
1 vote

Transferring weth from my contract to an other wallet address on polygon without using bridges

Each blockchain (Ethereum and Polygon for example) have their own storages, and cannot be accessed one with other. Its only possible to manage with 3rd party backends that could monitor both ...
user avatar
1 vote
Accepted

Getting WETH from ETH on Hardhat Local Network

I think the easiest way to do this is to create an ERC20 called WETH. Something like: // SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/...
user avatar
  • 26
1 vote

Use WETH for NFT MArketplace

WETH is an ERC20 token which can be simply transferred between accounts. Technically, all ERC20 tokens are accounted within the token contract. Therefore your contract needs to just simply calling the ...
user avatar
  • 186

Only top scored, non community-wiki answers of a minimum length are eligible