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.

2
votes
2answers
196 views

How is it possible for 0x0000000000000000000000000000000000000000 to send out ERC-20 tokens?

Isn't 0x0000000000000000000000000000000000000000 a burn address where no one has private key? If that is the case, how can this address send tokens to other addresses? If you look at Etherscan's ERC-...
0
votes
1answer
28 views

Implementing function to transact with other ERC-20 tokens in smart contract?

A while back I saw an example contract which allowed users to send any ERC-20 tokens through one of its functions, but I can't seem to find anything about this anywhere anymore. So, what is the ...
0
votes
1answer
80 views

Golang binding - call contract method and get its return value or tuple?

Suppose i have contract like: pragma solidity ^0.4.11; contract MyToken { uint256 a; function SimpleGetter() returns(string) { return "something"; } function DoTheGreat(address _to) ...
2
votes
1answer
47 views

Sending a transaction - can I assume that when the 'data' field is missing, the 'gas' field should always be 21000?

I have implemented a function for transferring ETH from my account to another account: async function transfer(to, value) { let options = { from : PUBLIC_ADDRESS, to : to, ...
4
votes
2answers
77 views

Is there a plan / EIP for native multi-signature transactions?

We have a 2-of-3 multi-signature wallet contract which works fine. However, when sending to exchanges or wallets which use RPC calls (rather than contract events) to capture incoming transactions, ...
1
vote
0answers
87 views

Signing a transaction: What is actually signed? [noob question]

I'm trying to wrap my head around how signing transactions actually works. As I understand ECDSA signatures roughly work like this: There is a magic function, let's call it sign that takes two ...
0
votes
0answers
72 views

Achieving ZERO fee ethereum transactions like EOS

How would Ethereum take on the approach of how EOS have ZERO fees when making a transaction? EOS has the concept of resources, but is there anything like this in the works of "shared resources" for ...
0
votes
2answers
53 views

Different Values for v, r, s? What am I doing wrong?

lets assume I have this private key (test account on ropsten, no need to worry): 785cdcd731a1b2438ec4511a25d04efbdc499ed350df612364af1aa6f4fd6abd When I use Pyethereum to run v, r, s = ecsign(tx['...
1
vote
1answer
32 views

Hashing header “offline” python

I am trying to prove that the TransactionsRoot and the ReceiptsRoot do belong to a specific block. So that I can verify without web3 that all the transactions and receipts actually belong to this ...
1
vote
1answer
58 views

Get time when the transaction was included in your node

Is there any way to obtain the time when you have received a transaction? I would like to know when is a Smart contract included in my node. (local testnet)
0
votes
1answer
22 views

Problem transferring ether to contract (Error: transact to EtherInteractionTest.deposit errored: VM error: revert)

I'm trying to test a simple contract to deposit and withdraw ether in remix. Code: pragma solidity ^0.4.17; contract EtherInteractionTest { function withdraw() public { msg.sender....
1
vote
1answer
64 views

Ethereum propagation delay

I have a very beginner level question. Suppose I have a list containing the IP address of different machines and I want to share them via ethereum blockchain and suppose that the list is very large as ...
1
vote
2answers
33 views

Check given adders transaction history? [closed]

I've created a voting game on eth blockchain. I would like to make a function, that only address with previous transaction history(not a fresh address) can call. So doesn't allow people to create a ...
0
votes
1answer
39 views

How to retrieve transactions' info such as gaslimit and gasprice from Etherscan?

This link shows the latest 500k transactions, and by clicking each one it opens a page with its info including gaslimit, gasprice, usedgas etc. https://etherscan.io/txs How can i retrieve the ...
2
votes
2answers
46 views

Transaction rolled back and re-mined later?

A few hours ago, I was testing my dapp on ropsten and something strange happened. I sent a transaction (A), to the blockchain, it got mined and my server synced it. Then 30 minutes later, I sent ...
0
votes
1answer
23 views

How do I prove that transactionsroot is correct?

I have this block on Ropsten, 'difficulty': 3963642329, 'extraData': '0xd88301080f846765746888676f312e31302e31856c696e7578'), 'gasLimit': 8000000, 'gasUsed': 7987824, 'hash': '...
1
vote
1answer
50 views

EOS VS Ethereum : Is it logical not to charge any transaction fees in public blockchain? [closed]

Ethereum Operating System(EOS) is a platform which is more scalable than ethereum. To execute a transaction in the ethereum network one needs to spend some transaction fees, in EOS one don't need to ...
1
vote
2answers
54 views

Watch pending transaction from all nodes in network

I have two geth nodes in my own private netwrok: nodeA and nodeB. When iam sending transaction from nodeA, i am able to see this transaction in pending pool after call method txpool.content if i have ...
4
votes
1answer
41 views

Can we transfer ethers using a EOS smart contract

Suppose we want to transfer ether from our EOS smart contract. I know atomic swaps is not possible between ether and EOS blockchain, may be in the future but not now. Is there any other ways round to ...
1
vote
2answers
88 views

weird transaction sending to self

see some weird txs calling self addresses, for example, the last 2(the first and second tx in this block) transactions, at https://etherscan.io/txs?block=6475251&p=2 https://etherscan.io/tx/...
2
votes
2answers
32 views

Does a transaction always require a smart contract to be executed?

I had a discussion with someone explaining that every time a transaction occurs (e.g. ICO token or ETH) on Ethereum it would pass via a smart contract or would require one. I would like to know what ...
1
vote
1answer
176 views

How can I retrieve the transaction hash / block hash of a contract that has already been deployed?

If you use Web3.py to deploy a Solidity contract to the blockchain, you can retrieve a transaction hash, like this: tx_hash = w3.eth.sendRawTransaction(signed.rawTransaction) Once you have that ...
5
votes
1answer
207 views

How etherscan.io is able to track ERC721 tokens on the blockchain

My question can be rephrased as: how does https://etherscan.io/tokens-nft work? Does they analyze every transaction data? The NFT tokens listed there doesn't implement the exact same ABI, is there ...
0
votes
1answer
40 views

Retrieving transaction hash in all blocks after fast sync

I have set up an ethereum node using fast syncmode. I want to retrieve all the transaction hashes and the recipient between a range of blocks, let's say 0 - 13000. Will I be able to retrieve the ...
-1
votes
1answer
130 views

Found a Telegram ETH scammer/theif's main wallet address on Etherscan with $150,000 worth of stolen coin. What can be done?

Someone in my Telegram Telcoin group that I've talked to for months say they were a victim of ETH theft by a known ETH scammer in Telegram. This person sent me proof of pictures they took of ...
1
vote
1answer
54 views

Why store account nonce on chain instead of using timestamp to prevent replay attacks?

Why store account nonce on chain instead of using timestamp to prevent replay attacks, or any other random bit of information that will change thr hash and differentiate the transaction? As far as I ...
1
vote
1answer
38 views

when does a transaction get registered / included in a block

I want to know when does a transaction gets registered in a block ? Is there any queue type of structure where the transactions get stored before getting included in a block by miner ??? As in let's ...
0
votes
2answers
26 views

Using Python trie to build transactionsTrie. Why is my Transactionsroot wrong?

I am trying to build a TransactionsTrie with python. I am using this [trie][1]-Library. I followed the Instructions. Edit: Removed the original question because it was stupid. @carver Thank you ...
0
votes
1answer
69 views

solidity dynamic struct array

when I develop my smart contract with solidity, I encounter a problem. And Below is my solidity code. pragma solidity ^0.4.0; contract RegisterContract{ event setNewUser(bytes32 name,address ...
1
vote
0answers
57 views

How to decode input field(data) of a transaction object?

I have tried with web3.eth.decodeParameter(type,hexString) var input="0x0121b93f0000000000000000000000000000000000000000000000000000000000000004"; console.log(web3.eth.abi.decodeParameter('uint'...
2
votes
1answer
34 views

Transmit array as first parameter in web3.js

When I develop in solidity combined with web3.js, I face some problem recently. I create a contract code below //setContractDetail(index,bool isConsentItem,uint8[] detailItems) function ...
0
votes
1answer
24 views

Minimum Gas limit and how can it be reduced?

Why does this minimum exist and what can we do to to reduce it further. This line of thought was spurred by this tweet from Vitalik: "And there are layer 2's without data availability tradeoffs or ...
0
votes
2answers
35 views

Is there a service to guarantee that transactions are successful?

I have a node which I use to send transactions to the network. Those transactions are really important. They must go through at all cost. If I simply send the transactions, there is a chance that one ...
0
votes
1answer
38 views

How to persist contract data from Truffle transactions

After running Truffle tests, the blockchain reverts to a clean room environment and all the data is lost. How can you do transactions from Truffle and persist the data in your contract? In my case I ...
-1
votes
0answers
13 views

Unstable transaction cost in truffle test

I've written few tests for my smart contracts based Web service. Everything seems to be fine, but there is one unstable place - transaction cost calculation. Sometimes test runs successfully (average ...
0
votes
1answer
62 views

API to get transactions between 2 blocks in Ethereum

Assuming that I have a starting block and an ending block and I want to retrieve all the transactions that have occurred between these two blocks, is there any API that can help me achieve this?
2
votes
2answers
94 views

How to send a python bytearray into solidity function by web3.py?

I have a solidity function declared as: function setUnitData(bytes32[10] my_input_array) public payable {...} When I run this code: contract = self.contract_instance['../contracts/test.sol:test'] ...
1
vote
1answer
40 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
49 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
145 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
92 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
21 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
148 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
105 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
242 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
40 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
85 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
69 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
37 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
135 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 ---...