New answers tagged

0 votes

How is the Ethereum Name Service Avatar records used?

No, it's not used for the token logo as far as I know. It's just a metadata field and can be used by any Dapp, as a profile picture for example.
user avatar
0 votes

How to Automate End to End Testing For Etherium Dapps With Metamask?

You can test Metamask interactions with Synpress, e.g check if you can connect with the metamask wallet from your DApp with the following test case: describe('Test User Login', () => { it('...
user avatar
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
0 votes

How to generate Private key, public key and address

Best way to generate 12/24 words of seed phrase or Ethereum private and public address key Use this tool - Seed phrases Generator
user avatar
  • 1
0 votes
Accepted

Next JS versus React. Which to use when for your Dapp?

Not every browser has metamask extension. By using next.js, when our code is taken and rendered on the server, on the next server we can reach out to the Ethereum network and do some initial calls ...
user avatar
  • 506
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
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
0 votes

How can I use my polygon erc20 custom tokens on other chains?

You'd have to bridge it over. Polygon has a bridge here: https://wallet.polygon.technology/. But just note that it's usually not done. Bridging costs gas, is time consuming, and has other risks ...
user avatar
  • 3,264
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
0 votes

Network switching in HTML JS. Please support

I think what you're looking for is the wallet_switchEthereumChain method from web3.js. You can find an example of how to use it here.
user avatar
0 votes

How to show my erc20 coin custom logo everywhere?

Fill a form on ethereum There is no form on Ethereum. You need to contact individual service providers to add your logo. For further questions, please contact any third party service provider ...
user avatar
0 votes

How to trim a string in solidity?

Here is a function in Solidity that I created to do just this. Typecast your string to bytes, and feed it into this function. function byteSlice(bytes memory _data, uint256 _start, uint256 _end) ...
user avatar
0 votes

Using Ethereum public and private keys to encrypt and decrypt message (metamask client)

You can use Metamask's built-in decrypt functionality. Check this out: https://betterprogramming.pub/exchanging-encrypted-data-on-blockchain-using-metamask-a2e65a9a896c
user avatar

Top 50 recent answers are included