Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

Why Ethereum addresses contain lowercase and uppercase letters

Ethereum address checksum is encoded in alphabet cases in hexadecimal. This allows to detect copy-paste errors in Ethereum addresses. This is EIP-55 standard.
Mikko Ohtamaa's user avatar
3 votes

How to sign message EIP-712 with whitespace in name?

Metamask's typed-data signing implementation is more permissive than eth-account's encode_structured_data. A new python implementation is in process that will be more compatible with EIP712 signing as ...
pacrob's user avatar
  • 181
2 votes

How to Reduce Wallet Prompts for Enhanced User Experience in a Blockchain Gaming dApp?

To streamline the user experience in a blockchain-based gaming dApp, consider the following strategies: 1. Batch Transactions: Batching allows you to group multiple actions into a single transaction. ...
MShakeG's user avatar
  • 1,713
2 votes

fallback and receive function on WETH

No, there is no need, because Wrapped Ether is actually an ERC20 token and there is no need for fallback or receipt functions to receive tokens, these functions are only used to receive native coins ...
Mehran Ra's user avatar
  • 590
2 votes

Error: VM Exception while processing transaction: reverted with reason string '12'

Error: VM Exception while processing transaction: reverted with reason string '12' 12 means "Stable borrowing not enabled"; https://docs.aave.com/developers/v/2.0/guides/troubleshooting-...
Hit's user avatar
  • 21
2 votes

New Account with no transaction

nice to meet you. In Ethereum, creating a new account is not a transaction and doesn't consume gas because it happens off-chain on your device. Your new account shows up on Etherscan because it's a ...
Ari Setiawan's user avatar
2 votes
Accepted

Why does a wallet user need to sign a message to login?

My question is why wouldn't this be enough ? Because anyone can all you API endpoint with any address they want.
Mikko Ohtamaa's user avatar
2 votes

How to catch multiple events from a single function in the hardhat framework?

In my case, it didn't work. The event expected first wasn't correctly tested, I can put any value, and it returns always true. I change it like this: const tx = contract.claimTokens(busd....
Noel Nathan Planell Bosch's user avatar
1 vote

Error Connecting to Ethereum Wallet Using ethers.js in HTML Page

Your connectWallet() function is not implemented correctly, due to which the provider is not getting initialised. Here's how it should be done: Connect Wallet: const accounts = await window.ethereum....
SYED ASAD KAZMI's user avatar
1 vote

getPublicKey is not a function

Try this way: const { secp256k1 } = require("ethereum-cryptography/secp256k1"); function _getPublicKey(_privateKey) { return secp256k1.getPublicKey(_privateKey); } const privateKey = &...
Miroslav Nedelchev's user avatar
1 vote

does account abstraction wallets have different address across different chains?

Not always. Account Abstraction Wallets/Smart Wallets (mostly) uses create2 opcode, which lets you predict the wallet address before even deploying. Using this method, Account Abstraction wallet ...
Aditya Arora's user avatar
1 vote

Consolidate multiple Ethereum accounts

Yes, it's possible to consolidate your Ethereum wallets by transferring the Ether from each wallet to a single one. To do this, you simply initiate a transfer from each of the smaller wallets to the ...
Ari Setiawan's user avatar
1 vote
Accepted

"eth_estimateGas" throws execution reverted error

After googling for a while, I solved the error by removing the value property, I don't know why It threw an error, but I think, Since my case was a erc20 token transfer and has value in data, That ...
Reza Aslejeddian's user avatar
1 vote
Accepted

Metamask getBalance method doesnt work

BigInt worked. Thanks to Zartaj Afser.
seojunchian's user avatar
1 vote

Stuck in Smart Contract

The transaction is calling the method payForItem() of the contract here. And the method is actually doing nothing: pragma solidity ^0.4.26; contract MyShopNew { address private owner; ...
0xsam's user avatar
  • 101
1 vote

New Account with no transaction

Dev Advocate at Chainstack here! Here is a brief explanation in common terms: Imagine you're given a lock that has never been used, and you create a unique key for it. In Ethereum, creating an account ...
Dave Dev Advocate Chainstack's user avatar
1 vote
Accepted

Error Handling in Solidity Using Custom Errors with Web3js

Emit the error as an event in your Solidity contract: Modify your contract like this: pragma solidity ^0.8.4 ... event NotOwnerError(address expected, address received); function example(address ...
Mehran Ra's user avatar
  • 590
1 vote

TypeError: Cannot read properties of undefined (reading 'match')

UPDATE to above question! So after several attempts, it seems I have found the culprit. For some reason, the network provider name ("sepolia") I entered with getDefaultProvider function does ...
David Blake's user avatar
1 vote
Accepted

Building Cryptocurrency Tracking system for monitoring stolen cryptocurrency transactions

You can track the wallets in real time using the Streams API provided by moralis. Morlais streams can track any wallet, contract transactions, and contract events send you alerts in real-time and can ...
JohnVersus's user avatar
1 vote

How to Reduce Wallet Prompts for Enhanced User Experience in a Blockchain Gaming dApp?

I want to explore the best approaches to minimize or even eliminate the need for users to open Metamask repeatedly. Create an in-game hosted wallet that can be e.g. a web browser localStrorage based ...
Mikko Ohtamaa's user avatar
1 vote

What is the purpose of the constructor?

The constructor is what will be called at the deployment of your contract. It allows to run functions or set variables, only once during deployment. It can be useful when you want to pass in arguments ...
Torof's user avatar
  • 780
1 vote

What is the purpose of the constructor?

When calling this contract, you must enter a name in the contract call. For example, if the name of the contract is Lottery, then you would call it like so: Lottery("BigAmerica"); The ...
ChefAharoni's user avatar
1 vote

Someone has defrauded me using this contract. What should i do to get my money back?

Unfortunately, there's nothing you can do to get your funds back. Once tokens \ Ethereum has been withdrawn from your account - they are lost. For future references, please do not deploy contracts ...
ChefAharoni's user avatar
1 vote
Accepted

What are Ethereum Genesis transactions?

In simple terms, Genesis transactions are the very first transactions that take place in the Ethereum network. They are different from regular transactions because they don't have a typical ...
Maximus Stacks's user avatar
1 vote

State variable not returning value when the contract is deployed into sepolia test network

The issue is in the abi variable in lottery.js module. The abi should be in JSON format but this is not the case, so the contract object exported could not be read by the web3 library. Solution: send ...
Rakshith's user avatar
1 vote

View Function Error in Ethers js

One possibility is that the function isn't specified as view in the ABI. In any case, according to the docs you can try forcing a call by adding callStatic before the call: Rather than executing the ...
0xSanson's user avatar
  • 3,249
1 vote
Accepted

taking too long time to sync Ethereum Full Node

Syncing a full Ethereum node can be a resource-intensive process, and it's not uncommon for syncing speeds to decrease over time. However, there are a few things you can try to improve the speed: ...
DEFI Expert's user avatar
1 vote

How to check the life of the wallet address?

The only way you have to check something "close" to that is to actually look for the oldest tx timestamp at which the address of the wallet made/received a transaction. That said, it doesn't ...
CPereez19's user avatar
  • 2,835
1 vote

Can i transfer token to a account for next 180 days automatically without any further interaction with function using for loop?

The only way I can think of for this to work automatically without having any transaction go onchain each day for the user would be if you are only locking a token you have created, where the lock ...
Bruce's user avatar
  • 967

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