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

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
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
340 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
84 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
52 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
28 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
86 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
52 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
251 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
90 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
29 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
44 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
115 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
96 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
39 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
46 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
44 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
110 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
37 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
21 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
81 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
34 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
62 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
53 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
40 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
33 views

Nethereum transaction

How can I send the msg.data together with my transaction? Nethereum.StandardTokenEIP20.StandardTokenService(Web3, Add).TransferAsync(...)
0
votes
2answers
157 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
39 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
88 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
30 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
12 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
103 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
48 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
36 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
144 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
75 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
31 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....
0
votes
1answer
42 views

Solidity: uint parameter not being set properly

Testing my contract locally with truffle. I have a function with the signature: function purchase(address buyer, address seller, bytes16 bookId, uint tokens) public onlyOwner returns(bool success) ...
0
votes
0answers
50 views

Trying to send money to account from contract -> transaction reverts

I am trying to execute a contract which after storing a certain amount on the contract sends 20 Wei to an account. So far I can add the money to the contract but trying to transfer money to an account ...
0
votes
1answer
51 views

why out of gas when gasLimit is not reached

https://etherscan.io/tx/0x43f39829b3a48c4146808b12489e01bdb5dfa32d5b49514298339a719e538c09 this tx failed, and the msg shows the cause is: out of gas, but Gas Limit is 520000, while only 86056 Gas ...
0
votes
1answer
79 views

Is it possible to calculate gas needed for a transaction to run within a certain amount of time?

I'm trying to find out how much gas is required for a transaction to complete in about 5-10 seconds. Is there any way to do that, or is my understanding of this wrong? Thanks in advance!
0
votes
0answers
177 views

Web3JS Batch transactions

So I have a script that distributes erc20 to multiple wallet addresses, but it creates a individual transaction for each address. Is it possible to group this transactions and save on gas cost? I ...
0
votes
1answer
24 views

Complete a transaction outside of Solidity

Example for my e-commerce site: uint public PO; function () { emit Purchase(PO++, msg.sender, msg.value, msg.data); // first param is indexed } The code above is for illustrative purpose only. ...
1
vote
2answers
314 views

RangeError: private key length is invalid (In New ETH Transaction pragmatically)

Followed this Ans Ans1 and Ans2 but no solution got. const web3 = new Web3('https://ropsten.infura.io/v3/3c52917848e945229c0d33d632b10490'); const account1 = '...
3
votes
2answers
28 views

Why does confirm that there is always 1 block apart on the mainnet when initiate multi-transactions simultaneously- by web3.py and Infura.io

1.I have a need to initiate multiple transactions to the same contract address in the fastest time and get confirmation from the network. Means that multiple transactions are recorded in the same ...
0
votes
1answer
99 views

Using the Parity or Geth light client, how can I monitor an address for transactions?

I'd like to use Parity or Geth, in light client mode, to monitor an address for transactions. Essentially, I should be able to check each block for transactions involving a certain address. In the ...
1
vote
0answers
67 views

UTXO vs Account scalability paradigms and Merkle proof of ownership

From Ethereum's design rationale: Potential scalability paradigms: UTXOs are more theoretically compatible with certain kinds of scalability paradigms, as we can rely on only the owner of some ...
0
votes
1answer
129 views

Web3.js callback

I have a contract method: function setFile(string fName, string fileHash) public{ File memory file = File({fileName:fName,fileHash:fileHash}); files.push(file); return something; } Web3.js ...
0
votes
1answer
100 views

Transaction taking too long on Ropsten testnet

I checked the syncing status, it returns false. I submitted transaction with a very high gas value but it takes long time to get completed. This is my local ropsten node: INFO [08-06|13:16:45.473] ...
1
vote
1answer
169 views

Pending transactions are not mined

Preconditions I'm running a private network with Geth, having custom smart contracts deployed by Truffle and a simple frontend which using Metamask as a provider to connect the network. Versions ...