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
27 views

How to get the value of the transaction?

I am using web3.py but I need help to know the value of the transaction sent. I know that the information is stored in the input but how do I parse the string. I know nothing about ABI. Here is the ...
0
votes
0answers
40 views

How do I send a transaction to a smart contract?

I need to build this transaction and send it to the blockchain how do I do it ? I always used ethsendrawTransaction just to send eth but never I never built this type of transaction: { "data": [ ...
0
votes
0answers
6 views

Should Ethereum wallet need to be imported to a node to send eth from it using CURL JSON rpc?

I created 2 wallets using MyEtherWallet. Noted down the private key, public key pairs. If I then use one of the wallet's public key as the from address and the public key of the other wallet as the to ...
0
votes
1answer
10 views

does the transaction trie include the contract internal transactions?

Does the transaction trie include the contract internal transactions besides the transactions collected from the network? if not, how the contract internal transactions are handled in the EVM and ...
0
votes
0answers
13 views

Verify transaction was included in certain block within smart contract

Is there a good resource for proving that a particular transaction was included in block x?
1
vote
1answer
20 views

Method to verify an address nonce within a contract?

Hey I'm looking for a simple way to verify that a certain address has executed x number of transactions? I noticed that this can be accomplished by having them deploy some contract and verifying ...
0
votes
0answers
11 views

How can I better set up automatic sending of ethereum from the first address to the second address when I receive any amount for the first one?

I use Node.js. Every 5 seconds I check the address balance using the function eth.getBalance. When I receive funds to the first address, the function of transferring funds to the second address is ...
1
vote
2answers
19 views

How are transactions stored in a block?

In State, use Merkle Patricia Trie for storing data. "key value" is account address(hash value). And also, Ethereum block uses MPT for storing transactions. However, Additionally Ethereum Block use ...
0
votes
1answer
27 views

How can Contracts sign transactions, when they dont have a private key?

When transactions are made the sender is identified by his signature. But Contracts dont have a private key to sign any transaction or message. So I have some questions: Can a Contract initiate a ...
-1
votes
0answers
8 views

Last step of sending MultiSig transaction on Gnosis Safe

I have prepared multisig wallet using Gnosis Safe. There are 3 assigned addresses, which are required to sign every transaction. Everything look perfect and it should work out, but when I'm ...
0
votes
0answers
18 views

The sendSignedTransaction function does not activate the on('receipt') event at an appropriate time

console.log(transacting...); web3.eth.sendSignedTransaction('0x' + serializedTx.toString('hex')).on('receipt', receipt => { log(receipt); log(`https://ropsten.etherscan.io/tx/${receipt....
0
votes
0answers
9 views

Transaction added to already mined block

i run a private blockchain and i have realized some strange behaviour there. Concret i started a transaction and save the timestamp, when it has been started. Then i wanted to figure out, how long ...
1
vote
1answer
19 views

Where is the position of each paramter in a smart contract function when encoded as inputdata in a transaction

When I reviewed the BEC attack, I found the position of each parameters value in real transaction was not corresponding in to definition of function in smart contract. The exploit transaction is at: ...
1
vote
0answers
28 views

is there a library to convert transaction receipt to rlp?

I found ethereumjs-tx for transaction to rlp, but i didnt find any libraries to convert transaction reciept to rlp. or is there a way to get rlp format transaction receipt from a service like infura ...
0
votes
0answers
15 views

Spending from an Ethereum Private Key Paper Wallet

I have an Ethereum paper wallet with the private key. I want to only spend a fraction of the ethereum on this private key. I also have a few USDC tokens on it that I want to also spend. How can I ...
0
votes
0answers
11 views

Ethereum Multi Node network design - nonce management for address

I am running two nodes on two different machines and geth installed, and for educational purposes I would like to make both nodes work concurrently. I know that nonce management is quite pain in the **...
-1
votes
0answers
14 views

ERC 948 subscription model

When I try to call the excutesubscription() function in the subscription model EIP-1337 , I am getting estimated gas error
1
vote
1answer
17 views

How to parse input data in transaction using go programming language?

I know there are some resolutions about parsing transaction input data, but they don't work with go. I wander if there is any way i can use with abi available. Specifically, When i receive a ...
0
votes
1answer
19 views

how can we set auto transfer of my tokens to the wallet which transferred me ethers

Okay so I have deployed my contract to network, and my wallet or account via which I deployed it contains all my tokens of the newly created contract. I dont want to list my token anywhere since since ...
0
votes
1answer
25 views

Is there any way to decode to_address from getTransaction(hash).input of a token transfer?

Here is my code, web3.eth.getTransaction(txns.transactionHash,function (err,res){ console.log(res.to); // consoles contract address var input = res.input,erc20=input.slice(0,10); if(erc20 == '...
0
votes
0answers
14 views

Error - received an error when i sent transaction

Error - received an error when i sent transaction but it seemed to go through no problem. a few mins later it came up insufficient funds. My account has a positive balance. receiving address of my ...
1
vote
1answer
19 views

Ethereum transaction fails in simultaneous calls

I am making two calls simultaneous call with a single wallet. First I am making a contract call then I am making a ether transaction call. The first call succeeds, but the next call fails. I got this ...
0
votes
1answer
21 views

KBC to ETH transaction [closed]

I withdrew KBC from my HitBTC account to my countries local crypto app LUNO which only supports ETH. This transaction was sucssesfull however I can not retrieve it from my Luno account. They say it ...
0
votes
2answers
15 views

Is there any command-line tool to sign transactions offline on a Linux machine?

I have an air-gapped machine with Ubuntu Server. Is there any command line tool which I can quickly download to sign offline transactions? Something like: sign-tx private_key_file nonce=10 gasPrice=.....
1
vote
1answer
12 views

Function which only reads data still using gas/tx fee

I have a function call which only reads data from contract but it still costs gas to execute: function foo(int256 x) public returns (bool) { if(tuna[x].validOnce == true){ if(dog[x] == ...
5
votes
2answers
292 views

How is it possible to pay 2,100 Ether ($309,267) for a transaction fee?

Here is the transaction details that has transaction fee for 2,100 Ether ($309,267.00) only for sending 0.1 Ether. There is no fairness for users, hence accidentally adding a zero might cause them ...
0
votes
0answers
16 views

ERC20 token transfer with a multisignature wallet

I have a multisignature wallet(it is a different contract). I have some tokens to transfer to another address(token is an ERC20 and can transfer via (yourContract.methods.transfer(toAddress, amount)) ...
0
votes
1answer
48 views

How to get decrypted transaction data in quorum?

On Quorum_Node1 I am sending a transaction with privateFor: parameter as follows: eth.sendTransaction({from: eth.accounts[0], to: "0xca84356...9a3d0ccf92b8e", data: web3.toHex('sample message for ...
0
votes
0answers
41 views

TypeError: Cannot read property 'slice' of undefined

web3.eth.accounts.signTransaction(transactionObject, process.env.WALLET_PRIVATE_KEY, function (error, signedTx) { if (error) { log(`${error}`.red); } else { web3.eth....
0
votes
1answer
64 views

How to wait until transaction is confirmed web3 0.20.3?

I am new to web3. I am trying to connect UI with web3. Metamask version is 6.0.1 and web3 version injected by (don't know who), but it is 0.20.3. Following is my code to send ethers to a function of ...
1
vote
1answer
17 views

How to make transactions real-time for Dapps

I am intrigued how exactly an Ethereum transaction's "state changing" works. I have read about the Bitcoin transactions, and so understand how the basics of validation and propagation through the ...
0
votes
1answer
13 views

How you can have real-time database modifications if transactions require acceptance by all others

I'm trying to understand the current implementation of smart contracts and transactions and am wondering about real-time behavior. I read that it can take up to 10 minutes for a transaction to become ...
0
votes
0answers
15 views

ropsten eth что делать

I sent eth 2.62(NETWORK ETH) ON the eth ropsten wallet address 0xe2fcd50EfdD674C26f894aB5ad71fEcB14b7cDA4(BUT NETWORK ETH (myetherwallet.com)NOT ropsten eth). How to transfer to the wallet Eht ...
1
vote
1answer
77 views

Why transactions/contracts aren't priced/tracked based on computer running time

Amazon AWS and Google Cloud all base their pricing off of, among a few other things, the amount of compute and storage used. For compute, it's based on time, how much time the computer runs. This is ...
0
votes
0answers
15 views

Example of a low-level transaction

I am looking at this trying to understand exactly what a transaction can be like (from the outside, I don't know much about blockchain). I have also taken a look at these: https://medium.com/@...
0
votes
0answers
19 views

Geth losing transactions

I have a couple of applications running on an Ethereum Blockchain hosted on a VM. For some reason, every now and then, I find my VM rebooted... so my blockchain is turned off... There's no problem ...
2
votes
1answer
51 views

Returns TX Object instead result in Truffle test

I'm getting AssertionError: expected { Object (tx, receipt, ...) } to be true Here is my testing code let apprOrOwnr = await this.erc721.isApprovedOrOwner(owner, tokenId); expect(apprOrOwnr).to....
0
votes
0answers
21 views

UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: The field to must have byte length of 20

I'm encountering a problem that I'm not able to solve. The code should launch a configured transaction with the details object. The current configuration is set to Ropsten and I am using the INFURA ...
1
vote
0answers
28 views

Automatic sign of Transaction

Is there any secure solution(without exposing a Private key of the user) to automatically sign transactions, which are requested from a DApp, so that user doesn't have to sign each of them manually? I ...
0
votes
1answer
27 views

Check when a block is mined

Is it possible to know when a block is mined? Is there any timestamp or event/subscription?
0
votes
1answer
51 views

Is there any way to get all token transfers of a specific block number?

I am looking for a way to get all erc20 token transfers with specifying block number only. For ETH there is already a way exists here. I have done some search and found this method to find transfers ...
0
votes
0answers
25 views

Understanding web3.eth.subscribe('newBlockHeaders')

I am running two nodes in a testnet. Node1 = miner and Node2 = peer of Node1 I suscribe to both nodes with web3.eth.subscribe('newBlockHeaders') since I want to obtain when a block with a ...
0
votes
2answers
38 views

sending signed transactions from contract

Is it possible to send private key signed transactions directly from the contract? The thing I want to do is to create a similar function function sendTransactionForUser(_signedData, contractAddress)...
0
votes
0answers
30 views

Subscribe to changes in contract balance (Web3j)

Using web3j I would like to subscribe to changes in a contract balance i.e deposits and withdraws. I would like to base this subscription over transactions (and not events) since the contract does ...
1
vote
1answer
35 views

Is there any simple explanation to multisig wallets?

I read on ConsenSys and Ethereum MultiSigWallet. I got that "The purpose of multisig wallets is to increase security by requiring multiple parties to agree on transactions before execution. ...
1
vote
1answer
20 views

How are transactions ordered in POS?

With POW, the miners who finds the block chooses the order of transactions in that block. How will this work with POS?
2
votes
2answers
127 views

Why are transaction tries in Ethereum not plain Merkle Tries?

I understand the Ethereum block header contains a Merkle Patricia Trie (MPT) root for the global state, one for receipts (which I don't understand but am not focussed on for now), and one for all the ...
0
votes
0answers
29 views

Decline a transaction in a PoA network

Is it possible to decline a transaction in a PoA network? Or to say it in other words: Can a sealer decline to put a transaction into a block he is going to mine? I want to prevent transactions to be ...
0
votes
1answer
14 views

What is the cheapest way to send ERC20 to multiple Addresses? [duplicate]

Let's say I got 100 tokens of any ERC20, and I want to send one of each to 100 differents addresses. What would be the cheapest in term of gas between 1) creating a smart contract which takes in ...
1
vote
1answer
36 views

Designing for stalled transactions

We have been developing a dapp which submits a very basic transaction (placing a short hash and some Eth into a contract). We set the gas relatively high (250000). Often the transaction is mined in ...