Linked Questions

0
votes
1answer
208 views

How to transfer the information of the token when transmitting RPC communication [duplicate]

I have difficulties during the project and ask you questions. Please help me situation Create an ERC20-based token and try to create a transaction. Communication with geth is RPC communication. How ...
90
votes
7answers
39k views

What is an ABI and why is it needed to interact with contracts?

ABI is referenced in many places including the official Ethereum website. What is an ABI and why is it necessary to use?
48
votes
3answers
21k views

How to reduce the chances of your Ethereum wallet getting hacked?

Summary The hack that occurred on May 12 2016 to steal 7,218 ethers from Patrick only affects miners where: Incoming RPC connections from the Internet on TCP port 8545 are forwarded to the machine ...
16
votes
6answers
11k views

Encoding/Decoding contract ABI data

How to encode and decode ABI data? Can someone show me an example with web3js library?
13
votes
2answers
4k views

How to load Solidity source file into geth

Is it possible to load Solidity source file .sol file to go-ethereum. I am using the 'loadScript' method by saving a .js file like the following and loads it. source = "contract test {\n" + " /// ...
15
votes
1answer
3k views

How can I retrieve my account's Augur (REP) token balance via JSON-RPC?

How can I check the contract balance, like Augur (REP), on an address with JSON-RPC? There doesn't seem to be alot of documentation about this.
2
votes
2answers
9k views

web3.eth.call. How can I set “data” param?

I deployed my first contract by using browser-solidity to make bytecode and web3.eth.sendRawTransaction to deploy. The following is the transaction and the deployed contract code. https://ropsten....
8
votes
2answers
5k views

Get smartcontract token balance via JSON RPC

Via Geth commandline I can get my smartcontract token balance with: var mytest = eth.contract([{interface}]).at(contract address); mytest.balanceOf(eth.accounts[0]) >998 I want to present the ...
0
votes
2answers
3k views

How to output all data from contract's mapping variable

Solidity enables the use of associative arrays with mapping: mapping(address => uint256) balances; Code can be written to iterate through this associative array. But, how can all of the keys and ...
2
votes
3answers
2k views

Trying to use eth_call to contract function which takes an address as it's argument

I'm trying to call a function on my smart contract that's deployed on the main Ethereum network. The function signature is balanceOf(address). So far I've followed the instructions of doing the SHA3 ...
9
votes
1answer
1k views

RPC error “invalid or missing value for params” when calling contract constant void functions

My contract has a function defined like this: {"constant":true,"inputs":[],"name":"queryNumEscrows","outputs": [{"name":"","type":"uint256"}],"payable":false,"type":"function"} Having no inputs. Its ...
5
votes
1answer
2k views

How to send a smart token transaction from one account to another account using JSON RPC interface

I would like to send amounts of a created token from one address to another. I would like to use eth_sendTransaction: eth_sendTransaction Creates new message call transaction or a contract creation,...
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 ...
2
votes
1answer
1k views

Ethereum transaction binary data field

There are a few questions on creating transactions and signing them offline using ethereumjs-tx. What I'm interested in is how do we build the binary data field based on the desired functionality. E.g....
3
votes
1answer
342 views

web3.personal.signAndSendTransaction as a Contract method?

As web3.personal.signAndSendTransaction method, Is there any such method available for Contract functions? for example: MyContract.storeName.signAndSendTransaction("name", {from:web3.eth.accounts[...

15 30 50 per page