Most Popular
1500 questions
15
votes
10 answers
How to get testnet ether?
https://youtu.be/NBwRXpCQta8
I watched this video and followed it.
But my account test ether is zero.
I used faucet.ma.cx:3000 site too.
But test ether is zero.
SeokRae
- 151
- 1
- 1
- 3
14
votes
1 answer
How to automatically add a custom token to MetaMask with ethers.js
I was playing around with creating BEP-20 tokens on cointool.app and noticed that whenever you generate a new token and pay the gas fee to mint it, the website automatically prompts you to add this custom token to your wallet. The dialogue window…
exakoss
- 141
- 1
- 1
- 5
14
votes
3 answers
Binance Smart Chain tokens: What are tTotal, rTotal, tSupply, rSupply, rOwned, tOwned which I see everywhere?
Looking at all the latest shitcoins' Smart Contract code on Binance Smart Chain, there's a lot of common,recurring themes because most of each project's code is mostly copy-pasted. The code is also completely uncommented, which makes it a pain to…
Dimitris Sfounis
- 348
- 2
- 10
14
votes
2 answers
Is it possible to send transactions to multiple recipients?
In other blockchain based platforms, it's possible to send transactions to multiple recipients. For instance, if I want to send 13 ETH to Alice and 7 ETH to Bob, Bitcoin has sendmany. Is it possible to accomplish this in one Ethereum transaction?
Or…
q9f
- 32,913
- 47
- 156
- 395
14
votes
3 answers
Can CREATE2 with the same salt override existing contract?
Deployed: https://rinkeby.etherscan.io/address/0x121e370ae349425d0d744f6db43c2f43e777f972#code
pragma solidity 0.8.3;
contract Test {
uint256 public a;
constructor (uint256 _a) public {
a = _a;
}
}
contract DeployTest {
…
Mars Robertson
- 1,011
- 1
- 15
- 35
14
votes
1 answer
Compiler solc expected a state variable declaration
I try example from book Mastering Ethereum:
contract Faucet {
function withdraw(uint withdraw_amount) public {
require(withdraw_amount<=10000000000000000);
msg.sender.transfer(withdraw_amount);
}
function () public…
Andrzej
- 141
- 1
- 1
- 3
14
votes
1 answer
Join mining pool with Geth
I followed this guide to set up aws to mine ethereum with an instance that has GPUs. After set up, I let the miner go for a day without any pay in the smallest denomination of Ethereum. I researched and found that, at this point, you should be…
user4432
- 141
- 1
- 1
- 3
14
votes
1 answer
How to connect Mist to the private blockchain on remote server (Azure)?
I've installed Mist on my local PC (Windows 10), but I don't want to sync Main/Test networks. So I've used this Ethereum + Azure tutorial and now I can work via SSH on my private network.
geth --dev console
More than that, I know that it's possible…
Sergey Potekhin
- 1,360
- 2
- 13
- 28
14
votes
2 answers
Updating ERC-721 Token's Metadata after it was Minted
Is it possible to somehow update an existing ERC-721 Token's MetaData after it was already minted?
Let's say we've created a Knight character for a game - by minting an NFT for it, and 3 months later we want to update that Knight's attributes to…
Mark55
- 1,011
- 2
- 13
- 27
14
votes
4 answers
How do I get enode in Parity
I'm setting a private blockchain using parity rust client.
In gethI can use admin.nodeInfo and get enode from there. But how can I get enode in parity client?
Igor Barinov
- 2,138
- 1
- 16
- 25
14
votes
2 answers
Sample code in ethers.js to send raw transaction and to sign transaction
Is there any sample code in ethers.js to send raw transaction and to sign transactions?
Louis
- 1,155
- 5
- 17
- 29
14
votes
3 answers
In ethers.js how to deal wait()?
In ethers.js,
provider.sendTransaction(rawTransaction).then((transaction) => {
// A full Transaction Response is returned
// - from
// - to
// - gasLimit, gasPrice
// - nonce
// - r, s, v
// - wait() => Promise that…
Louis
- 1,155
- 5
- 17
- 29
14
votes
5 answers
How to build an AST for Solidity?
I'm trying to build a parser for Solidity, and it would help if I could build a working version off of the existing parser. I've tried looking at the source code on the official git, but I haven't worked on a project of this magnitude before and…
hrishioa
- 479
- 3
- 7
14
votes
1 answer
Rationale behind 256-bit words in EVM
What were the design factors driving having EVM native words as 256-bit? It feels excessive, especially if one needs to process as large data set as blockchain.
Mikko Ohtamaa
- 22,269
- 6
- 62
- 127
14
votes
5 answers
Error: The contract code couldn't be stored, please check your gas amount
I am using the below code to create the contact it give the error:
Error: The contract code couldn't be stored, please check your gas amount.
Code:
primaryAccount = web3.eth.accounts[0];
//Multisignature source code
var testSource=' contract…
Veera Sarma
- 485
- 4
- 12