Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [transactions]

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
1answer
62 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 ...
1
vote
3answers
52 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
2answers
205 views

How to sign a transaction automatically? [duplicate]

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
114 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
24 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[...
1
vote
2answers
262 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
165 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
293 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
48 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
117 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 ...
2
votes
1answer
98 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
104 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 }) ....
2
votes
2answers
199 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
56 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. ...
3
votes
4answers
447 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
175 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
70 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
33 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
14 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
88 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
58 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
357 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
97 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
34 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
48 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
166 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
111 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
1answer
44 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
49 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
52 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
128 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
41 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
26 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
98 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
35 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
66 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
73 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
41 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
40 views

Nethereum transaction

How can I send the msg.data together with my transaction? Nethereum.StandardTokenEIP20.StandardTokenService(Web3, Add).TransferAsync(...)
0
votes
2answers
312 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
44 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
139 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
34 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
13 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
117 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 ...
0
votes
1answer
63 views

ENS Resolver Transaction [duplicate]

If I want to find out which address a name resolves to, say example.eth, does this mean I need to send a transaction to the appropriate ENS contract for resolution? Does running a local node reduce ...
2
votes
1answer
71 views

Where can I find failed transactions?

Couple of test transaction in the Rinkerby network failed due to insufficient gas during execution. I assumed that these transaction where failed since I was not able to find them on the pool or queue....
1
vote
1answer
184 views

Locally submitted transactions to the light node gets lost if the node is restarted

What happens to the transactions submitted to light node in the following scenarios? 1) Light node does not have a network connection with its peers.I could find that the transactions are submitted ...
1
vote
1answer
101 views

Strange ERC20 “withdrawals” from a secure wallet

I have some ETH and ERC20 tokens at an address whose private key is secured by a hardware wallet. I'm confident the private key has not been disclosed to any third party. Yesterday, however, I ...
1
vote
0answers
34 views

What's the point in the 'gas' parameter passed to function 'signTransaction'? [duplicate]

I am using web3.js v1 in order to sign and send transactions: async function signAndSend(transaction) { let options = { to : transaction._parent._address, data: transaction....