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
1answer
6 views

Is there any way to send a call message, requesting a transaction?

Example: The human owner of ERC20 wallet (X) owes the human owner of ERC20 wallet (Y) an amount of (T) ERC20. Is there any function that the owner of Wallet (Y) can send a request message to the ...
0
votes
1answer
11 views

Execution of sending transaction never ends

I send a transaction with web3 1.0.0 from a script like: async function sending(deployed_contract) { await deployed_contract.methods.mymethod(1).send({from: account}) .on('...
1
vote
1answer
19 views

Smart Contracts without ETH Transactions

Maybe I'm wrong, but I understand that Smart Contract Transactions must always contain a "VALUE" field, that's to say, the amount of Ether Alice will transfer to Bob in case certain condition ...
0
votes
2answers
29 views

How do uncle blocks affect Ethereum world state?

Let's say you have two miners: A and B. Let's also say you have two transactions: one which increases a number at a smart contract by one (transaction X), and another which decreases the same number ...
0
votes
0answers
11 views

proof of stack detailed mechanisme

oke, after googling about pos i know that you put you coins in a wallet and let the system pick you up for validating transactions inside the blocks, the way i understand is that transactions are ...
0
votes
0answers
7 views

Transaction initiation and response

When we initiates a transaction(let say by remix using injected web3), we will get response which includes hash of transaction as transaction id which helps to track the transaction. Before this, if ...
1
vote
1answer
29 views

Offline signed Transactions not being mined on private net

I am running a geth node and tried to perform a load testing by giving multiple transactions (1000 tx) from front end. As the application is not crypto related and need the blocks to be mined faster, ...
0
votes
0answers
11 views

eth_getTransactionCount RPC Method returning a different answer every time

I've been trying to get the pending transaction nonce for a test account on Kovan using the infura gateway, and every time I call the method, I get a different answer, despite the fact I'm not ...
0
votes
1answer
16 views

How to use “bignum.toNumber” to know the trasaction is complete [on hold]

const bignum = require('bignum'); web3.eth.getBalance("0xXXXXXXXXXXXXXXXXX") .then(function(firstmoney){console.log(firstmoney); return(firstmoney); }); web3.eth.getTransactionCount(addressFrom)....
1
vote
1answer
12 views

Does a non-miner node validate both single transactions and an entire block?

My understanding is that an originating node broadcasts a transaction to its neighbours, who all validate the transaction to ensure (a) the signature is valid and (b) the state change is valid, before ...
2
votes
1answer
21 views

Remix: Gas required exceeds allowance or always failing transaction

I have a contract which has transferFrom function mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; mapping (address => bool) public ...
0
votes
1answer
25 views

Send signed transaction from nodejs to private SmartContract using webjs in Quorum network not working

Context I have a quorum network mounted following the example of 7nodes. In node 1 I have deployed a smart contract privately, putting the public key of this ("BULeR8JyUWhiuuCMU/HLA0Q5pzkYT+...
1
vote
0answers
62 views

Error: Returned error: invalid sender

I'm trying to sign transaction and send it to remote node, but I keep getting this error: UnhandledPromiseRejectionWarning: Error: Returned error: invalid sender This is how I perform signing and ...
0
votes
1answer
18 views

Quorum private transaction is being reverted by EVM

I had setup an quorum network using quorum maker (3 nodes). I tried to perform a public transaction and it worked. But when I tried to perform a private transaction it gets reverted by the EVM node:...
0
votes
0answers
9 views

Get transaction hash of address.transfer(amount) [duplicate]

I'm new to etherum as well as solidity and having trouble getting transaction hash of actual address.transfer(amount) transaction I have following solidity function function sendWinnerMoney() public ...
1
vote
1answer
16 views

Send eth from one account to another using transfer() function

I am trying to write a smart contract that will send eth from one account to another account : Contract Send { event Sent(address from, address to, uint amount ); function send(address _receiver,...
0
votes
1answer
23 views

Transfer() will transfer the ether in the form of wei or ether by default?

pragma solidity ^0.4.17; // I want to write a code for loyalty points when user pays contract GiveRefreceId { mapping(address => uint256) ...
0
votes
1answer
35 views

get pending transactions in `txpool` via web3

I want to monitor the mempool for my pending transactions. I understand one can monitor pending transactions by eth_subscribe (e.g. answered here). But some of my transactions have been stuck in the ...
0
votes
1answer
15 views

how to include transations in genesis block

can one please advise how to include transactions in the genesis block of private ethereum network ? can it be done via genesis.json similarly to contract using code: parameter ?
0
votes
1answer
13 views

Power of signing transactions and what you can do with that

I have been playing around with state channels and am starting to see the power of signing information/transactions, but haven't got a completely clear idea of what I can do with them. I think I can ...
0
votes
1answer
8 views

Contract's transaction count in a certain period

I want to determine the number of transactions of a contract in a certain period. My question is that in the transaction receipt, if we want to say that contract A has x number of transactions will ...
0
votes
1answer
20 views

Avoiding for loop and making function call only once by any user

pragma solidity ^0.4.17; // I want to write a code for loyalty points when user pays contract GiveRefreceId { struct referenceids { uint256 rid ; address addressrid; } ...
0
votes
2answers
25 views

Can I have someone submit my transaction to the network, so I don't have to pay the gas fee (in ether)?

My account is a new account with 0 ether. I just received 100 of ERC20 tokens. I would like to send these 100 tokens to the other account. However, since this account does not have any ether in it, so ...
0
votes
0answers
12 views

Metamask mysterious tx showed up

A tx appeared in my Metamask which looks like this: I don't understand what it's about. I noticed there is a 'Cancel' button and I clicked it, but nothing is happened. And now I have 2 txs in the ...
1
vote
1answer
21 views

Ethereum sidechain application

I am developing a simulation that will be made millions of transactions, studying Ethereum, I realized that it would not be worth storing these transactions in the ethereum platform due to the cost of ...
0
votes
1answer
24 views

ethers.js (node.js) call solidity function that is payable

I understand that you can send ethereum to a smart contract, although when you do this with sendTransaction it doesn't seem that you specify a function on the smart contract when you do this. I don't ...
0
votes
0answers
12 views

how to return transaction receipt in JSON format web3.py

I am trying to return transaction receipt in a JSON from my flask API (python). in JS this is absolutely easy but I can't get the receipt or the transaction hash to pass. All I get is Object of type ...
0
votes
1answer
25 views

Trying to send signed transaction through web browser using ethereum-tx

I am working on signing and sending a transaction using web3 v1.0 and Infura.io. I have setup a script to run the TX but cannot seem to get ethereum-tx to connect in the browser. <script src="...
0
votes
1answer
19 views

Transaction Limit per block

I am developing a transaction analysis in a certain scenario on the Ethereum platform. Reading about, I understood that there is not a limit of transactions per block, but a limit of gas. Would anyone ...
2
votes
1answer
52 views

Extended private key vs private key

I am trying to make an hd wallet based on nodejs. So to have a secure wallet I have created wallet in my offline machine const hdkey = require('ethereumjs-wallet/hdkey'); const bip39 = require('...
0
votes
1answer
18 views

How do I send coins over personal blockchain?

What I have done --> I have created my own blockchain which is basically forked from Ethereum. So everything that can be done on Ethereum, can in theory by done on my blockchain. I can run a local ...
1
vote
1answer
26 views

Cannot send transactions

I have a online shop where users can recieve ETH and do shopping. So to have a secure wallet, I have created an offline service which generates xpub and xpriv which I use to generate addresses in my ...
0
votes
1answer
13 views

A way to track latest interactions with the contract?

I need a function which will track latest interactions with my contract on the server side. So let's say something like getRecentTransactions() which will return transaction hashes of interactions ...
0
votes
0answers
20 views

Ethereum Transaction in Dapp

I'm trying to do a transaction - wherein "One account is sending some data to another account". I've written the transaction in the dapp itself and not using a smart contract for this. But it always ...
0
votes
1answer
22 views

Type Error memory is not converted into struct storage

pragma solidity ^0.4.17; contract hoteltranscation { struct hotel{ string HotelName; uint256 BookingNumber; } function HotelBooking(string _HotelName,uint256 _BookingNumber ) public ...
1
vote
1answer
14 views

Balance should not be zero on this address I suppose

for address https://ropsten.etherscan.io/address/0x00916c608868c68f4cd8bea6786ab40b24b55392 balance is shoving 0 but from transactions it should be little more than one ether I believe there is ...
1
vote
0answers
33 views

Create Accounts Using Web3.js in Browser

TL;DR - Replicated Ethereum Blockchain. Running Local Node. Connecting Local Node to Web3.js in browser using RPC. Want to create addresses & send transactions Details - I have a blockchain that ...
1
vote
2answers
137 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
19 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
35 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
41 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
71 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
43 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
24 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
0answers
25 views

Blockchain Transaction similarities [duplicate]

I have a theoretical question about blockchain transactions. Imran Bashir describes a blockchain transaction as a transfer of value from one address to another. Futhermore in Bitcoin you have ...
0
votes
0answers
18 views

Trace a contract to contract transaction

is it possible to trace a transaction that goes from Account A to contract B to contract C? etherscan only shows the transaction from Account A to contract B. for Ex. Account A calls setNumber on ...
0
votes
2answers
43 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
25 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
48 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
11 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....