New answers tagged

1 vote
Accepted

Smart Contract Execution Transaction Fee

It depends on the used token standard. If you use the most typical tokens, using ERC-20 standard, your idea requires two transactions. That's because the standard doesn't include any way to let the ...
Lauri Peltonen's user avatar
0 votes

Error HH8: There's one or more errors in your config file: * Invalid account: #0 for network: sepolia - Expected string, received undefined

require("@nomicfoundation/hardhat-toolbox") require("dotenv").config() require("@nomicfoundation/hardhat-verify") console.log(process.env) const SEPOLIA_RPC_URL = ...
SeekeyeLobster's user avatar
0 votes

Error HH8: There's one or more errors in your config file: * Invalid account: #0 for network: sepolia - Expected string, received undefined

I have the same issue. How can I do to fix the problem? hardhatconfig.js require("@nomicfoundation/hardhat-toolbox") require("dotenv").config() require("@nomicfoundation/...
SeekeyeLobster's user avatar
0 votes

Roadmaps to become a blockchain engineer?

Maybe this roadmap could be helpful https://roadmap.sh/blockchain
Marco Chang's user avatar
0 votes
Accepted

Roadmaps to become a blockchain engineer?

It is true and unfortunate that there are not much material on the core layers. here are some resources I've found to be useful: Alchemy overviews on Ethereum some videos of the Ethereum Engineering ...
Bastin's user avatar
  • 146
1 vote

When I try to deploy my smart contract with ganache and try yo conect to the virtual blockchain, this message pop up in the terminal of visual studio

I've never seen anyone use the IP address 0.0.0.0. Probably you meant to use localhost 127.0.0.1. Also check that the port is the correct one. Unless you changed it, the default should be 8545. Lastly,...
0xSanson's user avatar
  • 3,154
0 votes

Hardhat is not generating private keys when I run `npx hardhat node`

i tweaked the node_modules and found this at node_modules/hardhat/src/builtin-tasks/node.ts there is check that to output the private keys only if you have the default configuration in your hardhat....
Hemram Kumarapu's user avatar
0 votes

What is the best way to monitor all token balances of wallet address?

If I understand your query properly, you want to show balance of multiple Tokens in individual wallet address. If this is your question then as a solution you can use Ether-scan or other blockchain ...
Aayush Kasera's user avatar
2 votes
Accepted

How to collect Contract Addresses via blockchain API?

Dev Advocate at Chainstack here. There are a couple of options depending on your goal. Efficient way If you want to efficiently build a local database of all contract addresses, a third-party API like ...
Dave Dev Advocate Chainstack's user avatar
0 votes

How to collect Contract Addresses via blockchain API?

As per the Blockscout API docs, the API endpoint to fetch all the verified smart contracts is: https://eth.blockscout.com/api/v2/smart-contracts It supports pagination. So, here's the JS code to ...
SYED ASAD KAZMI's user avatar
0 votes
Accepted

How to enter values in a tuple in a contract function?

In exitFarming() function, the key (tuple) is of type struct IncentiveKey, that is defined in the IIncentiveKey interface as: /// @param rewardToken The token being distributed as a reward /// @param ...
SYED ASAD KAZMI's user avatar
0 votes
Accepted

Does the graph-node re-sync all blocks every time it gets restarted?

This is from the official The Graph documentation: When making changes to your subgraph definition, for example, to fix a problem in the entity mappings, run the yarn deploy command above again to ...
Falcon Stakepool's user avatar
0 votes

Call smart contract method with ethers.js version 6

For me, this worked. const signer = await getSigner(); const contract = new Contract(contractAddress, abi, signer); contract.functionName();
pakoray's user avatar
  • 145
0 votes

i am compiling this lottery contract but the picWinner and getPlayers are not working

I believe you are trying to pull getPlayers to the front-end from your local copy instance. If this is the case, I'd recommend you compile and deploy the contract on remix.ethereum.org Once you have ...
Ndhlovu1's user avatar
0 votes

I was trying to convert private key of an account to its public key but getting an error

privatekey=0xafdfd9c3d2095ef696594f6cedcae59e72dcd697e2a7521b1578140422a4f890 you have to add '0x' before your privatekey
MD.Tameem Gazi's user avatar

Top 50 recent answers are included