All Questions
9 questions
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';
...
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 ...
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 ...
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 = //...
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,...
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.
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 ...
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....
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 ...