Linked Questions

1
vote
0answers
284 views

Sending signed data from web3 [duplicate]

So I'm only using Infura and web3 here, no local node running and I want to use functions like : mycontract.methods.function(msg).send({from: address, gas: 200000}) it won't work because it is a ...
1
vote
0answers
77 views

(UPDATED) Send signed transaction interacting with a contract [duplicate]

I have a local blockchain where I have deployed a contract. I want to interact with it sending multiple responses at the same time. For this propose, I cannot use Metamask to confirm each transaction. ...
2
votes
0answers
65 views

Calling a contract function in Geth console after mining the contract [duplicate]

I got the message : Contract mined! address: 0x72b878799d98131bca157ccaccfcd386023147e9 transactionHash: 0x66b9436240103e79c07492fe2479d97eeaa6c45779d00e1fc126285072eba327 for example, and there is a ...
16
votes
5answers
26k views

How to send ERC20 token using Web3 API?

I created some custom token in Ropsten testnet using this guide: https://steemit.com/ethereum/@maxnachamkin/how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified I can send it to other ...
5
votes
1answer
3k views

contract.at is not a function

I'm learning about ethereum and smart contracts and I have a simple contract that stores a string. I'm trying to use web3js to change that string. I'm having trouble following the instructions from ...
8
votes
2answers
3k views

Syntax for calling contract state changing methods

I've been struggling a bit with calling methods that change the state of the contract. Take, for example, the following contract: contract C { uint[] numbers; function initNumbers() { ...
2
votes
1answer
7k views

How to use web3 to send money from wallet A to wallet B?

var myContract = web3.eth.contract(abi); var address = contract address; var contract_data = myContract.at(address); var sender = '0xd3aaa525c087978133abb517593ea334f16abd1f'; var receiver = '...
1
vote
2answers
1k views

How to increase gas supply while making a transaction call?

I am using a private chain for deploying contracts. I came to a problem that when I call one of my functions in contract, it runs out of gas and function could not get executed. Any suggestions on how ...
3
votes
1answer
2k views

How to call contract functions using web3?

I have deployed my contract in private blockchain, now I am calling functions using Nodejs and web3. Here, I want to transfer tokens for which I need to unlock my account from which I am transferring ...
2
votes
1answer
733 views

recommended datatype for “data” in ethereum transaction

I am sending data with my transaction by using following way var tx = {from: eth.coinbase, to:eth.accounts[1], value: web3.toWei(1, "ether"),data:web3.toHex("Test Data")} personal.sendTransaction(tx,...
0
votes
3answers
491 views

how to withdraw ether from smart contract?

I am writing a smart contract which receives Ether. How can I transfer Ether from the contract to my personal purse Can I send Ether from the contract like as I can do with regular wallet? I would ...
1
vote
1answer
276 views

execute function on ropsten tesnet thru geth, adapt truffle console/testrpc commands

This is the smart contract I'm trying to interact with, verified on etherscan.io, and reproduced here: pragma solidity ^0.4.13; // This contract demonstrates a simple non-constant (transactional) ...
0
votes
2answers
153 views

Cryptocurrency Tutorial: how to transfer on the geth console?

I build, compiled and deployed (to Testrpc) the token contract from the cryptocurrency tutorial. The token offers the transfer(addres _to, uint256 value) method, which I would like to call from ...
0
votes
1answer
39 views

why do i see input data in the transaction details when i didn't pass it as a data parameter

When I create a transaction like below App.contracts.Soccer.deployed().then(function(instance) { return instance.purchaseShoes(name, age, { from: accounts[0], value: value}); }).then(...