rahul saini
  • Member for 3 years, 10 months
  • Last seen more than a month ago
  • Noida, Uttar Pradesh, India
How do I send an arbitary message to an Ethereum address?
4 votes

web3js v1.x.x const txParams = { nonce: nonce, gasPrice: gasPrice, gasLimit: gasLimit, to: to, value: value, data : web3.utils.toHex('rockstar blockchain developer'), // EIP 155 chainId ...

View answer
How to listen to events generated by an existing contract in web3 1.x.x?
Accepted answer
4 votes

In version 1.x.x using HttpProvider is deprecated you have to use webSocketProvider for listening events web3js.readthedocs.io/en/1.0/web3-eth.html?highlight=deprecated. web3socket = new Web3(new ...

View answer
Why is there block gas limit?
Accepted answer
3 votes

gas limit of a block defines maximum gas limit all the transactions inside block allowed to consume. its purpose is to keep propagation and transaction time of the block minimum and thereby make the ...

View answer
How to check if there is no smart-contract deployed on selected address?
Accepted answer
2 votes

If you want to check whether an particular address contain some code just run below command from geth web3.eth.getCode (addressstring). For more info https://googleweblight.com/i?u=https://web3js....

View answer
How to listen to the ether address for balance from my node?
Accepted answer
1 votes

on ethereum for ether, transaction listen I did not find a direct way but you can do it by given code web3.eth.getBlock("latest", function(err, res) { if (res.transactions.length) { for (var ...

View answer
web3 js send ether not broadcasting on main net
1 votes

just remove "from" address from your rawTransaction and try again.read about given link. https://web3js.readthedocs.io/en/1.0/web3-eth.html#sendsignedtransaction

View answer
What happens if already processed transaction is submitted to the network again?
1 votes

Whenever you make an transaction nonce get increase by one. This is how ethereum protect from double spending. If you again submit your transaction with same nonce. 1st rpc node check your nonce ...

View answer
What does an "Ethereum-based token" mean?"
1 votes

Best of my knowledge both are same, token are created during the phase of ico in any project. The project could be anything like making an decentralized gambling plateform like DAO Casino or ...

View answer
Event not found in Contract
1 votes

The correct syntax is var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); let c = new web3.eth.Contract(abi, keyaddress); c.events.QuantumPilotKeyPurchased((err, ...

View answer
How to generates the private and public key from a given name or address?
0 votes

The address is 20-byte hexadecimal string that is being generated by taking Keccak-256 hash of the public key. but the reverse is not possible. for more info check below link http://ethdocs.org/en/...

View answer
web3.eth.subscribe not working?
0 votes

You are trying to get the pending transaction so event may not be fired, the event only get fired when transaction mined successful, in your case the chain will always be incomplete as you are only ...

View answer
Batching transactions to reduce fees
0 votes

the more number of steps in smart contract the more cost would be. so somehow we can adjust the gas price it could be less or more than the combined gas. for info please prefer https://github.com/...

View answer
Why is UTXO model better than Account model?
0 votes

I found an intresting artical about it. https://medium.com/@sunflora98/utxo-vs-account-balance-model-5e6470f4e0cf

View answer
How to set rate in decimals in solidity?
0 votes

Add zeros and converts your decimal to an integer. all calculation will be done outside of the smart contract. like if 1 ether = 4.589 token; multiply the token value by 1000 and it would become an ...

View answer
how to call smartcontract with eth.sendRawTranasction()
0 votes

I did not find any command like eth.rawTransaction in web3js version 1.0.0. but you can use web3.eth.sendsignedTransaction() command for token transfer. for more info check link https://web3js....

View answer
Token transfer taking very long
0 votes

Transaction time is based on how much fee you pay to mine your transaction.. Fee =gas×gasPrice; Generally for token transfer put gas=60000wei &gasPrice=3Gwei; For reference https://ethgasstation....

View answer
Can some one suggest a method to know the incoming transactions in a nodes addresses?
0 votes

Jist use web3.eth.getBlock (blocknumber). You will get all the transaction hash inside block. Then use web3.eth.getTransaction (txhash) to get the tx recipt and match whether your address have some ...

View answer
How do ICOs with token price linked to fiat currency prices work?
0 votes

there is one more way they do it. they calculate the price of ether at the time they receive your payments or they just look the price of ether at the end of ico and all the prices are current value ...

View answer
How can a Dapp store seed keys of non-HD wallets?(tumbleweed)
0 votes

you could do it of course but no one wants to do it as you know on blockchain everything happens in the form of transaction and all the transactions are public on ethereum, mean everyone would be able ...

View answer
Why Deployment of ERC20 token contract to Ropsten is taking lot of time?
Accepted answer
0 votes

no relation with the batchOverflow bug, it also happen with mist wallet.it could be due to no miner available. i recommends remix with meta masks.the best way maximum developer prefer

View answer
Compilation warning in Ethereum Remix IDE
0 votes

visibility and mutability are two parameters you should always specify to avoid any warning for more about visibility and mutability there are four type of visibility 1) public (access from anywhere) ...

View answer
How to decode logsBloom
0 votes

in order to calculate HashNoNonce() value of the pending block logsbloom required without this it is impossible for a miner to verify if the hash he is mining on is corresponding to the particular ...

View answer