Raghav Sood
  • Member for 3 years, 10 months
  • Last seen more than a month ago
is ether itself an ERC20 token?
Accepted answer
2 votes

Ether is not an ERC20 token - however, the WETH contract creates Wrapped Ether, which is an ERC20 token backed 1:1 by Ether.

View answer
Why geth switch to full node when starting
Accepted answer
3 votes

A fast sync will switch to a full sync mode as it reaches the chain tip, once enough of the state trie has been synced in fast mode. Going forward from that time, it will sync in full mode and ...

View answer
Full Node Bigger Than Online Reports?
Accepted answer
2 votes

There are essentially four modes of operation for geth: light - in this mode, you sync next to no data locally, instead relying on other full nodes that have agreed to server light peers. It's more ...

View answer
Is it possible to have multiple private keys for a single public address?
Accepted answer
4 votes

An address is simply the last 20 bytes of the keccak256 hash of the public key. For ecdsa algorithms (and RSA), each private key has exactly one public key. However, when this public key is hashed ...

View answer
msg.sender problem for calling ERC20 token contract from another contract
Accepted answer
2 votes

If you want the tokens transferred from the user's account, the correct way is to first ask the user to call approve for your Adoption contract's address, and then use the transferFrom function within ...

View answer
solidity two dimentional mapping or array
1 votes

You can have a mapping of a mapping. mapping (address => mapping(uint256 => uint256))

View answer
Is payable fallback function not always invoked?
0 votes

That is correct. If ether is sent to a contract via the selfdestruct of another contract, the receiving contract does not have any way to prevent it. No code, including the fallback function, is ...

View answer
How to get balances of all the accounts(~1000) in Geth node?
0 votes

Any library or other script you use will ultimately end up at eth_getBalance. You could feasibly put together a script that can check multiple addresses in paraller via eth_getBalance, since your ...

View answer
Why the remote port connected by the geth node is not the initial port by remote node?
0 votes

You have specified that your geth nodes listen on port 30303, 30304, and 30305 respectively, which is what they are doing. When each node connects to the other, they open a socket connection that ...

View answer
transaction fails due to out of gas in mainnet
Accepted answer
2 votes

Your transaction is failing with an Out of Gas error due to one of the calls within your contract not providing sufficient gas to complete its operation. If you look at a Parity trace of your ...

View answer
Why ethereum dons't store transaction signature?
2 votes

A transaction will not be mined without a valid signature, under current consensus rules. Thus, if it has been mined, a valid signature was provided. This means that you can retrieve a historical ...

View answer
If I get transaction hash by PersonalSendTransaction, It means the transactions always be mined?
1 votes

Simply receiving a transaction hash is not a guarantee of it being mined. There are a number of reasons that could lead to a transaction being dropped, such as your node having no peers, a max gas ...

View answer
Manually specify extra gas amount required in solidity for apps such as metamask
2 votes

I believe after much research I've pinpointed this problem to the contract making extensive use of block.timestamp and "now" for pseudo-RNG purposes (which I'm aware of the limitations). Such function ...

View answer
OMG Tokens locked in smart contract - onlyPayloadSize
Accepted answer
2 votes

Your issue is likely unrelated to payload size, and related to the fact that your token interface expects transfer() to return a bool. OMG is one of a handful of major token contracts that deviates ...

View answer
Sending hundreds of signed transactions with web3js which succeed but can only find a couple on Etherscan
2 votes

As long as your nonces are sequential and do not skip, your transactions will be mined eventually. Etherscan will prioritize indexing immediate pending transactions, and show transactions that are ...

View answer
Balance should not be zero on this address I suppose
1 votes

The balance is correct, your outgoing transaction paid over 1 ETH in fees.

View answer
Golang binding - call contract method and get its return value or tuple?
Accepted answer
2 votes

type.Transaction is a transaction type. When you call a contract using the code generated via abigen, signing and broadcasting is handled for you, using the key details specified in your session. The ...

View answer
Problem transferring ether to contract (Error: transact to EtherInteractionTest.deposit errored: VM error: revert)
Accepted answer
1 votes

Your code requires that the msg.value equals the amount parameter. Yet, your remix screenshot shows you are sending a 0 value tx with an amount of 10 as the parameter. This fails the require ...

View answer
Syncing events on Database - Dealing with blockchain reorganization
Accepted answer
1 votes

If you want a reorganization free testnet, try Kovan. Ropsten is proof of work, and anyone who can point enough hashpower to it can rewrite the chain for a considerable number of blocks. Kovan is ...

View answer
Transaction reverted during contract execution [Reverted]
Accepted answer
2 votes

It looks like when buy() runs, it invokes token.buyTokens(). buyTokens() in turn calls transfer(). The vast majority of transfer functions check user balances before transferring, so I'm assuming ...

View answer
How to view and access the smart contract deployed by some other node in the Private Network?
Accepted answer
1 votes

Contracts work the same way as they do in public ethereum networks. Once your contract deployment transaction is mined into a block, any node on the network can broadcast a transaction that interacts ...

View answer
Intializing ERC20 token using payable constructor from another function of different contract
2 votes

By default, when you call new REP(), msg.value is not passed through, since the msg changes to the contract deployment. You need to pass value explicitly, as described in this section of the ...

View answer
All geth nodes getting the same enode id
1 votes

The enode is calculated based on the nodekey value. If all your nodes refer to the same datadir, or you bootstrapped multiple instances by copying the data dir, then they will have the same enode ID. ...

View answer
How to process Smart Contracts payable functions in batch?
0 votes

If you are running in batches, on a schedule, you could presign the transactions offline, and simply broadcast them when you want to process them. There is no way to sign transactions in realtime ...

View answer
Transaction rolled back and re-mined later?
2 votes

This is normal in the event of a chain reorganization. Blocks can be rolled back if newer blocks with more work appear (basically, if your chain is at block N, and someone broadcasts block N+1 with a ...

View answer
Service that can accept an Ethereum private key and then forward funds in the future?
Accepted answer
0 votes

To my knowledge, no such service exists, although building one would not be terribly difficult if you have access to a node. Naturally, entrusting private keys to a third party is a terrible idea and ...

View answer
What has changed with admin.getPeer?
1 votes

A node generates a key known as the nodekey when it first starts up. This is an secp256k1, same as ethereum addresses. Previously, the enode URI was scheme://pubkey@ip:port. This was recently updated ...

View answer
Deploy contract - have total supply but no token holder and balance
Accepted answer
1 votes

Your contract works as expected. It is simply an etherscan indexing issue that prevents the information from showing. If you look up the balance of 0x40bd749d975349e6aaf310007d3ee00bcef5ebdd using ...

View answer
Estimation of gas in web3js 0.20
Accepted answer
0 votes

eth_estimateGas estimates how much gas a transaction execution would require based on the current state of the blockchain. The gas consumed does not depend on the gas price (not directly, anyways, and ...

View answer
What is the size of byte code stored in the EVM?
2 votes

I mean the approx average value of it or bytecode of a simple hello world program (setting and getting a string). I'm not aware of anyone tracking these statistic, you will have to compute them ...

View answer
1
2 3 4 5 6