Questions tagged [ether]

Ether is the currency used in Ethereum blockchain technology. Refer: https://ethereum.org/ether Questions about Ether which aren't about programming should be asked on the dedicated Ethereum site: https://ethereum.stackexchange.com. Questions which are about programming can be asked on either site.

Ether is a necessary element — a fuel — for operating the distributed application platform . It is a form of payment made by the clients of the platform to the machines executing the requested operations. To put it another way, Ether is the incentive ensuring that developers write quality applications (wasteful code costs more), and that the network remains healthy (people are compensated for their contributed resources).

The official website of is Ethereum.org.

There's also a Ethereum StackExchange site that's dedicated to Bitcoin.

162 questions
1
vote
2 answers

Retrieving total eth transaction value of block faster

I have written a simple while loop to return the total transaction value of a block, however, it can sometimes take almost 30 seconds depending on the number of transactions on the block. Therefore I am looking to the community for help with a much…
Diop Chopra
  • 319
  • 3
  • 10
1
vote
2 answers

Get registered assets in web3 metamask

In web3 we call web3.eth.getAccounts() or window.ethereum.request({ method: "eth_requestAccounts" }) to list the accounts in metamask, is there any specific method we could call to get the registered tokens/assets in metamask?
Muho
  • 3,188
  • 23
  • 34
1
vote
1 answer

Why is BigNumber with etherjs returning 0

I am using BigNumber from etherjs and I am doing this very simple operation: const cost = BigNumber.from(3) .div(BigNumber.from(1000)) .mul(BigNumber.from(3)); console.log(cost.toString()); It outputs '0', but should be 0.09. Why? What…
Stefdelec
  • 2,711
  • 3
  • 33
  • 40
1
vote
1 answer

Error with prysm beacon-chain with testnet pyrmont

I am trying to run a beacon-chain for Ethereum2.0 in the pyrmont testnet with Prysm and Besu. I run the ETH1 node with the command : besu --network=goerli --data-path=/root/goerliData --rpc-http-enabled This command is working and download the…
1
vote
1 answer

Scapy Ethernet packet from byte string loses information of top layers

I am trying to build scapy Ether packet from raw string. packet = packets[4] # this is the packet I get from pcap file str_packet = str(packet) # I get string form from here packet2 = Ether(str_packet) # I try to make packet2 from the…
Durgesh O Mishra
  • 51
  • 1
  • 2
  • 8
1
vote
1 answer

Which Node packages are used for Ethereum classic's (ETC) transaction implementation?

I want to send ETC from one account to another i.e how to do the transaction, signature in testnet environment?
1
vote
2 answers

How to withdraw PART of the Smart Contract's balance into an account?

I have looked through many similar questions but they only address transferring the entirety of the smart contract's balance to the personal account, and it is done like this: msg.sender.transfer(address(this).balance); What I am trying (and…
riverwastaken
  • 285
  • 6
  • 19
1
vote
2 answers

Exchange ERC20 token with other ERC20 token

I have 2 ERC20 tokens. The contract are designed as standard ERC20. Here are the 2 tokens to take as an example - AUDC --> Contract address: (0xContractAUDC) Wallet Address: (0xWalletAUDC) DAI --> Contract address: (0xContractDAI) …
DIGVJSS
  • 463
  • 1
  • 10
  • 21
1
vote
1 answer

Expected identifier but got 'payable'

Following is my code: pragma solidity >=0.4.17; contract Lottery { address public manager; address payable [] public players; constructor () public { manager = msg.sender; } function enter() public payable { …
1
vote
1 answer

How to check empty in solidity

In solidity can we check if(empty) just like we do in php Or anything equivalent to that. What I want to do is to check if msg.sender trigger the call with empty msg.value or has put some amount to trigger the function if (empty(msg.value))
Ophelia
  • 41
  • 5
1
vote
2 answers

Solidity 'out of gas' exception when trying to transfer Ether

I try to transfer Ether from the contract to an address but it gives the error that the transaction is out of gas. I think it's a small problem but I can't find it. I have to specifically use solidity version 0.4.24. The warning from Remix The error…
1
vote
1 answer

ERC20 token code from the Ethereum website

I took the code for the ERC20 token from the official ether website. link: https://www.ethereum.org/token (the end of the page) My question is why do they have two contracts there, namely TokenERC20 and MyAdvancedToken and don't unite all functions…
1
vote
1 answer

How to get Ethereum internal transaction list / contract transaction list by RPC?

How to get Ethereum internal transaction list / contract transaction list by RPC ? Contract: 0xa5025faba6e70b84f74e9b1113e5f7f4e7f4859f How to get the contract address transaction list by RPC ? enter image description here
1
vote
1 answer

Not running the solidity smart contract of splitting the transaction money?

code link: https://github.com/0xcaff/splitter-contract/blob/master/contracts/Splitter.sol Getting output: creation of SplitBalance errored: Error encoding arguments: Error: invalid address (arg="", type="string", value="") How to do overcome…
user10389226
  • 109
  • 3
  • 14
1
vote
1 answer

ParserError when verifying Truffle contract on Etherscan

I have a contract which has been deployed to the main Ethereum network, the contract code works and compiles fine when deploying and I can interact with the contract using metamask/MEW. However, when I go to verify the contract on Etherscan, I get…