Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
0 answers
104 views

Cannot send transaction to smart contract, 'unknown account' even with account added to wallet

I am trying to send a transaction that updates the state of a smart contract. I have locally deployed a ethereum network using Geth and three VM. Here is my JS code: import { Web3 } from 'web3'; ...
robeng's user avatar
  • 41
6 votes
1 answer
15k views

Execute transaction Approve directly against contract address (without ABI)

Solved For now, you will always need the ABI to execute a call against the ethereum network with web3. A simple way is to reconstruct the function you wish to execute is to, either create a separate ...
Fifth Dimension Dragon's user avatar
2 votes
1 answer
1k 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 ...
Mohammed niyas's user avatar
1 vote
0 answers
438 views

Can't send transaction using NODE-RED platform - "Warning! Error encountered during contract execution [Bad instruction]"

I'm trying to use NODE-RED (https://nodered.org/) on my RPi using web3 and geth to send simple transactions. The code is the following: //variables var Web3 = global.get('web3'); var upc_abi = //...
simoh92's user avatar
  • 123
5 votes
1 answer
1k views

From an account's address is it possible to tell whether the account is a contract account or externally owned contract?

I am trying to visualise transactions for Ethereum, currently, I know there are blockchain explorers such as Etherscan.io and Etherchain.org, however I don't want to keep calling their API to get data,...
Athaheer's user avatar
  • 175
1 vote
2 answers
2k views

How does getBalance() work?

How does the eth.getBalance() function work? Which file does it call exactly? How and where all parameters are passed? Please someone explain it to me.
sandeep's user avatar
  • 21
3 votes
1 answer
130 views

Isn't there an unlockAndSendTransaction function in web3 JavaScript API?

I really believe that I saw a function named unlockAndSendTransaction on a web3 Javascript API reference page somewhere on Friday 12/09/2016 but today (Monday, 12/12/2016), I am unable to find this ...
Ajoy Bhatia's user avatar
  • 1,446
23 votes
4 answers
35k views

Unlocking accounts and making transactions in web3.js

This question is related to this one and this one. It also has a partial answer here and here. In the third link the account is being unlocked for a period of time using web3.js: web3.personal....
Sebi's user avatar
  • 5,284
21 votes
4 answers
13k views

Does Web3.js have the functionality to create new accounts and unlock an account for a period of time for a series of transactions?

I want to create new accounts through my Dapp web interface and unlock a specific account so that transactions can be processed. I didn't see it in the web3.js documentation so wonder if that's on the ...
Alan Wunsche's user avatar
  • 1,665