Linked Questions
10 questions linked to/from How to properly create a raw transaction and sign it using web3 in browser
0
votes
1
answer
3k
views
call contract function signed on client side web3.js 1.0 [duplicate]
I don't think the web3.js 1.0 docs cover this.
I found this post. but the answer seems outdated.
How to properly create a raw transaction and sign it using web3 in browser
I'd like to use web3.js 1....
3
votes
0
answers
2k
views
Web3 - how to send transaction with some data and include Ether at the same time?
Using web3 0.20.3
I want to call function and send some Etherium at the same time.
JavaScript
Contract = web3.eth.contract(ABI);
Instance = Contract.at('0x162b74ea16da6ae9d7f7b349eaeab2fcadf4e835')...
1
vote
2
answers
803
views
Offline creation of signed contract transactions with web3js v1.2.11
I'm attempting to sign a contract transaction offline using web3js v1.2.11.
signingAddr = //my eth address
signingPk = //my private key
// docs: The options object for the contract instance. from, ...
4
votes
1
answer
1k
views
Can I use web3js without setting the provider?
So I have two NodeJS applications, both implementing web3js.
The first node is used for creating and signing transactions, then it sends raw signed transaction to the second node. Finally, the second ...
2
votes
1
answer
444
views
Is running a ethereum node necessary to deploy contracts with JSON RPC?
everybody, I'm currently trying to learn how to automatically deploy a smart contract to the Ethereum blockchain and I heard of the JSON RPC way of doing that. There are the eth_sendTransaction and ...
0
votes
2
answers
431
views
How can I use Web3.js to specify a specific user?
I'm new at Web3.js.
In geth, I need to unlock an account before I use this account to send some transactions. This does make sense.
But in web3.js, I don't know how to specify the account. ...
2
votes
1
answer
251
views
Calling payable state changing function on client side with metamask in ethereum infura testnet
I can't seem to find an answer for my problem, or it's either impossible and I'm missing something, or it's trivial and I'm missing something.
I have this function on client side:
const bet = web3....
1
vote
1
answer
227
views
How to update value on ethereum blockchain without metamask?
pragma solidity 0.4.24;
contract UniToken{
string value="Hello";
function set(string x) public {
value = x;
}
function get() public view returns (string) {
return ...
1
vote
0
answers
172
views
Interact with a contract using Web3 Wallet
I am trying to interact with a contract without a provider as Metamask/Mist. I know that web3 has an option to create a new Wallet and I have been seeing code examples about that but all of them ...
0
votes
0
answers
164
views
Can I use a truffle-contract instance in the data field of web3.eth.sendSignedTransaction?
I use truffle-contract for contract abstraction.
const myContract = TruffleContract(MyContractArtifact);
myContract.setProvider(web3.currentProvider);
I'm using Infura as the web3 provider so need ...