Questions tagged [json-rpc]

json-formatted remote procedure calls to communicate with ethereum clients

Filter by
Sorted by
Tagged with
5
votes
4answers
2k views

Parity Trace Issue: TraceDB resync required

I am trying to use the trace functionality included in the parity node (https://github.com/paritytech/parity/wiki/JSONRPC-trace-module) but I am having trouble configuring my node. I have tried to ...
8
votes
2answers
7k views

Geth response: invalid content type, only application/json is supported

I started geth on a remote server running on rinkeby with the parameters --rinkeby --fast --cache=128 --rpc --rpcaddr 0.0.0.0 When I try to test my access to geth using curl -X POST --data '{"...
3
votes
2answers
3k views

How do you get the Contract JSON Interface from Truffle?

I'm developing smart contracts using Truffle. I got the contract's bytecode through truffle compile. This produced a large json file and it wasn't too ahrd to find the bytecode. Now, how can I find ...
3
votes
1answer
512 views

How can I deploy a smart contract via URL?

I want to deploy a smart contract via curl and send parameters in the constructor, I found this example but he does not send parameters, thankyou!!
0
votes
2answers
901 views

In the JSON RPC API documentation, where is the part about sending ERC20 tokens?

I'm looking to use the JSON RPC API to automate the sending of ERC20 tokens. Here is the documentation for it: https://github.com/ethereum/wiki/wiki/JSON-RPC Does anyone know where the documentation ...
1
vote
0answers
338 views

Can't connect to RPC on php server

I am using php to connect RPC server. In localhost, everything works fine. I moved my files to host to test and I realised that $geth->Method_Name() is not working. If I print_r($geth), here is the ...
4
votes
2answers
2k views

How to unlockAccount account using private key instead of password

I am working with https://github.com/ethereum/wiki/wiki/JSON-RPC api + curl . And implementing custom api using this php library: https://github.com/Achse/geth-jsonrpc-php-client below method is ...
5
votes
1answer
2k views

Subscription using websocket through Geth

I am trying to build a dapp which will monitor a particular address balance, and update in case someone send fund (ether) to it. Instead of polling using call getBalance, I want to take advantage of ...
5
votes
3answers
3k views

Where can I get list of open Ethereum nodes so I can use the RPC calls?

In Bitcoin I can use the rpc calls to manage the node or broadcast transactions. How can this be done with Ethereum? Is there a list of public open nodes I can use? How can I do this in the browser ...
1
vote
0answers
105 views

How to best react to geth events from a server app?

I have a geth node running on a server. I want my Ruby app to take action every time a contract emits an event. The app cannot miss any events. One way would be to poll for transactions to that ...
0
votes
3answers
283 views

Unlocking Ethereum wallet using Geth JSON-RPC

When I use ETH with JSON-RPC I have error "message": "authentication needed: password or unlock» and If I manually unlock I have other error "message": "insufficient funds for gas * price + value" Any ...
1
vote
1answer
1k views

eth_blockNumber result is always 0x0

I am running geth/mist on windows 10. geth has been started with geth -rpc I've then waited for the sync to complete (some time) and can confirm the sync is finished with a call to eth_syncing ...
3
votes
2answers
2k views

JSON RPC calls using Parity. Difference between Infura and Geth?

I began by trying to follow the article on front running bancor with Python. I thought it would be easy to send an api request to my full node then replicate the same request in Python--all ...
0
votes
1answer
249 views

How do I export ethereum blocks with quickblocks to a JSON file?

I am looking for how to export or save data from ethereum blocks in a json file using quickblocks.
3
votes
1answer
647 views

Ethers.js - missing signer

I'm working on ethers npm package and after instantiating wallet, I'm trying to transfer some tokens to the address. but it is throwing out an error missing-signer. Do anyone know, what mistake I ...
0
votes
1answer
484 views

ethers.js connect to private net RPC

I'm trying to work on ethereum and currently I'm using ethers npm package and I was trying to connect it to my private net which I will be using it for testing. I've run my geth with this command. ...
0
votes
1answer
494 views

web3.eth.sendTransaction sending to random address

I've been trying since near 2 weeks to make my users able to deposit and send ethereum on site. I use geth mostly, and more recently web3.js. I face a very weird issue. All seems well, transaction ...
1
vote
0answers
115 views

Anyone hitting the blockchain with Go?

I'd love to switch from JS to Go on our back-end, but the constant development of web3 is such a boon. I can see some web3 wrappers for Gopherjs, and of course it's easy to do direct RPC calls with Go,...
2
votes
1answer
3k views

Using Web3 to pull block #, hash, and timestamp

Can anyone give me advice on using web3 to pull the latest block number, hash and timestamp using Web3? I can't get this to work, and the documentation is fairly weak from what I've seen. Once I pull ...
0
votes
2answers
378 views

Geth JSON-RPC only returns 0, null or error

I've set up a docker env based upon Ubuntu for working with Geth (for now on Testnet) and Geth's JSON-RPC, however every call I make to the JSON-RPC fails in either 0, null or an error because the ...
0
votes
1answer
718 views

Creating contract in ethereum-wallet using JSON-RPC on testnet giving “authentication needed: password or unlock”

I'm new to ethereum and blockchain technology. I'm trying to create my own crypto currency and using below JSON-RPC for creating new contract in our ethereum wallet on test network. curl http://**.**....
0
votes
1answer
69 views

What is rpc and p2p code for Ethereum token? What to give as GitHub source code of an Ethereum token in exchange?

I’m new to Ethereum development. From ethereum token docs I came to know the process of deploying the token. But at some exchanges they ask for RPC and P2P port as well as the github source of the ...
3
votes
1answer
561 views

Where do etherscan get the contract Addresses from for the creation Transaction

In etherscan each creation transaction has the contractAddress as 'to' value. e.g.: https://etherscan.io/tx/0xe0ddfde8610cceae5b360c58a7c016b6654f838b8d820f290403d0c8d2cacfdc here: [Contract ...
3
votes
0answers
518 views

JSON RPC transfer of ERC20 Tokens with Parity

How can I use Parity with JSON RPC to send and receive ERC20 tokens?
2
votes
1answer
162 views

Why is Ethereum json rpc using hexidecimal for numbers?

Playing around with geth jsonrpc. Sending the eth_sycing. {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1} What is the design decision to use Hexidecimal for numbers? { "jsonrpc": "...
3
votes
3answers
3k views

Send erc20 tokens using the json-rpc api

I need to send ERC20 tokens (golem to be precise) in an automated manner, so I set up a geth json-rpc server with ./geth --fast --rpc So I can call the api just fine. The documentation for ...
0
votes
1answer
882 views

Send funds via json rpc [duplicate]

could anybody provide request to transfer some funds from one account to another, like this, but with sending some ether: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBalance","params":["...
1
vote
1answer
951 views

How should I enable the api’s ‘personal’ and ‘admin’ over RPC on Azure ‘Ethereum Consortium Blockchain’

How should I enable the api’s ‘personal’ and ‘admin’ over RPC on Azure ‘Ethereum Consortium Blockchain’. Is there any way by which we get direct access to the VM console (Now we SSH on to the VM to ...
1
vote
1answer
397 views

RPC transfer funds doesn't work

I want to transfer some ether from one account to another. I use curl command in ubuntu, there is my request: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from": ...
1
vote
1answer
219 views

Connect pyethapp to testrpc - Is there an equivalent to `geth attach` in pyethapp?

I have an instance of testrpc running: testrpc -a 1000 when using geth, I'd do this: geth attach rpc:http://localhost:8545 to link to it. I have pyethapp installed and would like to do something ...
1
vote
0answers
73 views

List of transactions from the block that just has been mined and broadcasted but not confirmed yet

I'm looking for a list of transactions from the block that just has been mined but not confirmed yet. Right now I'm using JSON RPC method parity_pendingTransaction to return a list of transactions ...
1
vote
0answers
161 views

Get test ether in parity account

I installed parity-poa-playground from (https://github.com/dstarcev/parity-poa-playground) on Windows 10 and managed to made it working with parity configured from (https://github.com/paritytech/...
1
vote
0answers
479 views

geth eth_sendRawTransaction return “invalid sender”

I am not very good at English ! Please forgive me . I use the sendRawTransaction to send a signed transaction . The geth returns an error and I can not find the reason
2
votes
3answers
1k views

Error: Invalid number of arguments to Solidity function | when trying to pass in parameter from App.js to Solidity

I am trying to call a function in my Solidity file (Coder.sol), while passing through a parameter from my App.js file. My function in my App.js file looks like this: handleStartRequirement: function(...
1
vote
1answer
463 views

go-ethereum rpc connection via http for native dapps

For native dapps we can establish an rcp connection over IPC using conn, err := rpc.NewIPCClient("/home/karalabe/.ethereum/testnet/geth.ipc") Now what if I want to establish an rpc connection over ...
1
vote
2answers
1k views

Where can you download SOLC ( solidity compiler) from?

I am looking for the SOLC solidity compiler that works with JSON-RPC. The only one I find is the one at https://www.npmjs.com/package/solc However its says "this commandline interface is not ...
2
votes
1answer
289 views

WEB3.SHA3 JSON CURL

I am trying to convert the string function name Double(int256) to hash using the Keccak-256 SHA3 algorithm using web3sha3 for curl. In geth I use the command as such web3.sha3('double(int256)') and ...
6
votes
2answers
4k views

Curl JSONRPC to localhost:8545

I am trying to do a simple curl from the cmd line to my private blockchain. I have the geth console running on localhost:8545 The curl command I am executing is the following curl -X POST --data '{"...
0
votes
1answer
705 views

Web3JS: Error: Invalid JSON RPC response: “” When creating new contract

I am simplying trying to create a new contract on the testnet. I am using IFURA as a node and here is my code: var createInvoice = function(){ unlockAccountsIfNeeded(); fs.readFile('./...
1
vote
1answer
97 views

How to be notified with bad transactions when sending to a JSON-RPC server?

With Ubuntu, I've tried Wallet/Mist and MetaMask on Ropsten testnet: they both notify me with bad transactions before inputting my password. I've tried to do the same thing with a JSON-RPC server, in ...
7
votes
1answer
4k views

web3.js import contract abi from .json file

So I have a deployed contract with address0. I can easily interact with it using my index.html like so: import contract_artifacts from '../../build/contracts/contract.json' var contract0 = contract(...
0
votes
1answer
2k views

how to initialize a account in genesis.json file and fund it some money before mining?

in ethereum page of github,we can see something about genesis file below: Defining the private genesis state First, you'll need to create the genesis state of your networks, which all nodes ...
2
votes
0answers
349 views

Rejected/Removed Transactions how and when can they happen?

Background: I am writing a blockchain viewer/exporter that requests, via Parity JSONRPC, blockchain information and then stores this info off chain. Currently I am trying to accumulate all pending ...
8
votes
1answer
1k views

Decode JSON RPC result

How do I convert the result returned from a JSON-RPC eth_call from my geth client? This is the call: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"...
6
votes
1answer
328 views

How to detect if block was forked?

It's is possible to track by API, if block was forked/orphaned? Will be glad to see some example.
1
vote
1answer
559 views

Reading the data in a contract using Json-rpc

With access to the contract abi, how can the data from a contract be read? You can get the byte code with eth_getCode but I don't understand how that can be converted to a readable form
1
vote
1answer
876 views

How can I run Mist in JSON-RPC mode? [duplicate]

Or if Mist is simply starting Geth, how can I tell Mist to start Geth in RPC mode?
2
votes
2answers
2k views

How to access the event log by knowing the contract address (golang)?

At the moment I develope dapps that use smart contract as storage for specific data. I use abigen to generate specific go binding to my contract. If someone try change state of the contract I use ...
3
votes
1answer
485 views

contract string parameter

I'm trying to call Smart Contract with next method signature calculateHash(string) and Code like: function calculateHash( string testStr ) constant returns ( bytes32 ){ return sha3( testStr ); ...
1
vote
2answers
631 views

Do all nodes communicate using the JSON RPC protocol?

I'm reading through the JSON RPC Doc now on Github here: https://github.com/ethereum/wiki/wiki/JSON-RPC#net_version I assumed that this is the default communication protocol between any two nodes, ...