Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The term "transaction" is used in Ethereum to refer to the signed data package that stores a message to be sent from an externally owned account.

1
vote
0answers
12 views

How can we calculate swarm storage cost?

I am trying to integrate ethereum to another fin-tech app, the basic idea is to store the transaction details on swarm and then pass the hash on ethereum network. I haven't used swarm earlier and I am ...
0
votes
0answers
13 views

How to make a single account pay for transactions with Truffle Framework? [on hold]

I need a single account to pay gas for transactions without the user needing to have metamesk or mist. I saw that there was sendRawTransaction but I could not make it work on the Ropsten network. I'm ...
0
votes
4answers
35 views

Identify when a smart contract is deployed again in the network

I would like to automate the response of a Smart Contract from a script. Is there any way to identify when the contract was deployed again in the network to send a response? UPDATED: If the solution ...
0
votes
1answer
16 views

Why did the Status.im decided to accept deposits ONLY starting at a certain network block?

I was reading about the Status.im project & its ICO launch process. There are pros & cons regarding their methodology of launching the crowdsale. Somewhere I read that they decided to accept ...
0
votes
2answers
41 views

How to sign a transaction automatically?

An api will call the smart contract function. It should sign the transaction on its own instead of human intervention. I think raw transaction can work here. Are there any other options? Any help is ...
4
votes
1answer
50 views

how accurate are gas estimates?

I am currently running some tests on ganache using web3.js connector. Most of my transactions run OK if I supply the same amount of gas that is suggested by web3.eth.estimateGas(), however, one of ...
0
votes
1answer
11 views

Transaction successful but ether not transferred to destination account

I am following this article and everything works expected but ether is not getting transferred to the to account.Please find the logs below. eth.sendTransaction({from:eth.accounts[0], to:eth.accounts[...
0
votes
0answers
21 views

I'm so confused [closed]

I'm 100% new and 100% confused. A friend introduced us to this crypto currency world and so being as cautious as I could be I purchased just a small 15.00 share into ethereum classic. It was cheap and ...
1
vote
2answers
42 views

Understanding the state transition function

In Bitcoin, one has to refer to the UTXO as input,if you want to spend bitcoins. There are no accounts or a world state. Since Ethereum uses accountmodel, does one refer to the state transition ...
0
votes
1answer
28 views

ERC20 transferFrom function results in “Error: gas required exceeds allowance or always failing transaction ”

I'm trying to learn my way around ERC20 tokens and upon attempting to create a lottery contract for an erc20 token the transferFrom function always spawns an error, specifically "Error: gas required ...
0
votes
1answer
25 views

How to initiate a transaction with address and privateKey using web3js

I have a list of ethereum addresses and private keys, I need to write an automation script which checks for the balance in each address and transfer the balance funds to another ethereum address. My ...
2
votes
1answer
28 views

Problem creating my own wallet with multiple accounts

I have a local blockchain where I have deployed a contract. I want to interact with it sending multiple responses at the same time. For this propose, I cannot use Metamask to confirm each transaction. ...
1
vote
1answer
24 views

Ethereum Transactions Content

I am new in ethereum blockchain and I am trying to understand completely how it works. I have read this document, but there are still some points which are not obvious to me. One of these points is ...
0
votes
0answers
24 views

How can I reverse non transmitted transactions?

I made some eth transactions. They never transmitted. Now I cannot find them to cancel and my wallet appears to 1. not functioning and if I try a new transactions, it gives a message that I have 0 ...
0
votes
0answers
49 views

out of gas when calling a contract function which has return value from another contract

Please consider the following 3 contracts "Team", "Manager" and "Member". pragma solidity ^0.4.24; contract Member { uint8 number = 7; function get_number() view public returns (uint8) { ...
1
vote
1answer
27 views

Difference between .sign and .signTransaction

I have this two kind of codes and I would like to know what is the difference between them: First. .sign() var tx = new Tx(rawtx); tx.sign(privateKey); Second .signTransaction() web3.eth.accounts....
1
vote
0answers
14 views

How can we get other transactions result like using window.web3.eth.getTransactionReceipt on our own transaction?

If I send a transaction, I can watch the result using window.web3.eth.getTransactionReceipt like this: tradeContract.methods.test(...args).send({ from: pubData.user.address, gas: gasAmount }) ....
1
vote
3answers
44 views

Problem using require('ethereumjs-tx');

I am making a dapp and I am trying to import modules. The structure of my folders is the one that you can get from the truffle webpackage, the following: -App ---build ---constracts ---migrations ---...
1
vote
0answers
47 views

(UPDATED) Send signed transaction interacting with a contract [duplicate]

I have a local blockchain where I have deployed a contract. I want to interact with it sending multiple responses at the same time. For this propose, I cannot use Metamask to confirm each transaction. ...
2
votes
3answers
58 views

how to easily transfer ERC20 token from 1000+ accounts which has no ETH in it initially?

I have a requirement to have 1000+ ethereum addresses, which in fact used to store small amounts of various ERC20 tokens. I want to move all these crypto assets in all these 1000+ wallets into a ...
1
vote
1answer
31 views

How do exchanges transfer tokens from user wallets?

​ I am wondering how exchanged like Binance are able to transfer out tokens from user wallets that have no ETH in them? ​ For example if I create a new binance account and say I transfer ADA from ...
1
vote
0answers
27 views

Monitoring Eth Transactions and Syncing Native Database transactions with Etherium Blockchain

Currently, I have a node.js application which interacts with geth through web sockets. I have a listener, web3.eth.subscribe( 'pendingTransactions', function(err, result) { if(!err) { ...
1
vote
1answer
20 views

If I get a full hash from a submitted tx, doesn't that mean the transaction is good?

I am running a geth full node on Rinkeby and testing ERC20 transactions. Recently I submitted two transactions and received transaction hashes for each of them, so I assumed I was good. But later on ...
1
vote
0answers
9 views

What happens to the missing coins in this transaction? Copy paste this code into remix to reproduce my original bug. Thank you

pragma solidity ^0.4.24; contract TheCaseOfTHeMissingCoins{ string public name; string public symbol; uint8 public decimals = 18; address public owner; mapping (address => ...
3
votes
2answers
74 views

Process to find out an account's balance in the past

What would be the process to find out the balance of an account at a specific point in the past? Is it correct to say that we have to get the balance from the current World State Trie and then roll ...
1
vote
0answers
15 views

Interact with a contract using Web3 Wallet

I am trying to interact with a contract without a provider as Metamask/Mist. I know that web3 has an option to create a new Wallet and I have been seeing code examples about that but all of them ...
1
vote
1answer
36 views

How the blocks and tries are stored

Newbie here! I still not sure if I understood how some structures of Ethereum are physically stored (assuming Geth implementation) State Trie: only one off-chain Merkle Patricia Tries stored using ...
1
vote
0answers
16 views

How to access data from web3.eth.Contracts.send() function?

If I run this chunk of code from my async function I will get a transaction receipt as an output: const response = await contract.methods.recoverAddr(hex_msg, v_decimal,r, s).send({from: accounts[0]}...
1
vote
0answers
24 views

How to compute the Contract Address from the Transaction Hash? [duplicate]

I am aware that different versions of this question were asked but my interest is specifically working out the contract address following dynamic deployment in a UI using web3 or something similar. I ...
0
votes
2answers
38 views

Is it possible to call a function of smart contract “without” installing “Geth” or “Parity”?

Is it possible to call a function of smart contract to send a transaction (for example, writing on the Ethereum blockchain) but "without" installing "Geth" or "Parity" clients? In a more general ...
1
vote
1answer
21 views

Why doesn't my contract call create a new transaction in my ganache transaction section?

goes easy on me because I'm quite new to all of this stuff. So I've created a function which signs my transaction using web3js library and looks like this: signTx = async () => { const { ...
2
votes
1answer
50 views

Invalid transaction signature on sending transaction

Hello guys I'm having a "Invalid transaction signature." error. Can't get pass this one. Am I missing something? client, err := ethclient.Dial("path/to/geth.ipc") if err != nil { return err } ks :...
2
votes
2answers
30 views

Can anyone tell what might had gone wrong with the transaction below?

May I know what does this transaction mean? I am running this inside my private node. Running the same transaction repeatedly none stop. Sending on average 10 transactions / sec. So I had to keep ...
1
vote
0answers
36 views

Possibly hacked but not sure Help!

I recently had most ERC20 tokens moved from a MEW wallet through the individual ERC20 contracts. Does anyone know how this may have happened? I am sending pertinent info from one on etherscan.io 1)...
1
vote
1answer
24 views

In what way does Sharding allocate transactions for each shard? state? or node selection?

In what way does Sharding allocate transactions for each shard? I know that accounts are assigned to each shard based on prefix in the account's address and each shard processes the transactions ...
1
vote
0answers
19 views

Nethereum Getting TransactionHash of SendTransaction

I am using Nethereum for Unity3d and I have managed to muddle my way through a lot of issues, but I have a huge problem I just can't seem to solve. I can get this to work with signed transaction ...
2
votes
1answer
28 views

Can I use a random number for nonce?

When I was trying to send multiple transactions, I received an error saying that "replacement transaction underpriced". Searched around and it says that I was trying to replace an existing ...
1
vote
0answers
14 views

web3js cant send transaction

I have a problem. Few days ago, I could send transaction but now I can't.I don't understand why.I hope someone will help me. Just get hash, no receipt, no confirmation. geth geth --fast --rpc --...
4
votes
2answers
39 views

personalUnlockAccount.accountUnlocked() giving NullPointerException even if correct passphrase has been inserted

When I trying to unlock the account with personalUnlockAccount.accountUnlocked() method of PersonalUnlockAccount class of web3j library, it's giving NullPointerException even if I am entering right ...
1
vote
2answers
30 views

Are there networks that doesn't require ether to be spend to run?

When you deploy smart contract and then alter it's state in Ethereum networks (at least master and Rinkeby) you need to spend some gas = ether. Can there be networks that don't need gas to run?
1
vote
0answers
38 views

Unable to deploy contract due to extremely high gas estimate

I'm getting issues with the following contract for no obvious reason (I'm banging my head over this problem last 8 hours), I'm getting: Gas estimation errored with the following message (see below). ...
1
vote
1answer
30 views

Smart Contract execution time through Truffle

I would like to know if there is a way to obtain the smart contract execution time when you send it to the network through Truffle. Is it possible using the test tool? through an application? I know ...
1
vote
1answer
31 views

Can't withdraw from Crowdsale multiple times

I'm using a crowdsale contract (listed below) and on Ropsten network I just set founding goal to 1ETH send it to crowdsale address and then I can withdraw to beneficiary address but when I send ETH a ...
0
votes
0answers
18 views

Nethereum transaction

How can I send the msg.data together with my transaction? Nethereum.StandardTokenEIP20.StandardTokenService(Web3, Add).TransferAsync(...)
0
votes
2answers
42 views

How to send transaction/call function from server-side?

After an event emits from my smart contract and I hear it server-side, I want to call a certain function in the smart contract and pass it some information to use. I'm wondering how you place a ...
3
votes
0answers
24 views

Storing Private Keys in IoT Devices

In a network of IoT devices like internet-connected Raspberry Pis which sends transactions to the Ethereum blockchain, the Pis need to be able to access their own Ethereum private keys in order to ...
2
votes
1answer
23 views

Do all Ethereum addresses have a specific format?

I know all ethereum addresses start with 0x, but is there a common letter/number after the 0x to represent an address? Because I get confused on how to tell if its an Eth address or if its a ...
1
vote
0answers
14 views

Why is the transactionsRoot the same hash as “empty patricia merkle trie” root hash?

My setup is as follows: I am Using ganache-cli and metamask to send 1 ETH from account 1 to account 2. When I use JsonRPC to get the Information about Block 1 (the one with the transaction) the ...
1
vote
1answer
10 views

Change contract transaction payer from initiator to contract

I have smartcontract that creates some internal structures in external call. Now, when calling this creator function transaction paid by initiator. Is it possible to make contract paying for this tx?
1
vote
1answer
25 views

Contract calling own function emit event?

Does a contract calling a function defined within itself cause an Event to be emitted? Etherscan is not showing events emitted when a function is called using sendSignedTransaction(), despite the fact ...