A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [json-rpc]

json-formatted remote procedure calls to communicate with ethereum clients

Filter by
Sorted by
Tagged with
0
votes
1answer
356 views

Infura tutorial no longer accurate, how to get the initial curl HTTPS POST to work?

Following the guide at https://blog.infura.io/getting-started-with-infura-28e41844cc89, step 2 after registering is to send a HTTPS POST using curl. The command is curl -X POST --data '{"jsonrpc":"2....
1
vote
1answer
176 views

debug_traceTransaction returns “insufficient balance to pay for gas”

At block 916647, tx hash 0xca879fcf2d0146fc4e214ed5d9747a2743b6a586b4f1de1541e52c2fe6be5bad debug_traceTransaction returns error: $ curl -X POST --data '{"jsonrpc":"2.0","method":"...
1
vote
1answer
149 views

eth_sendTransaction vs eth_sendTransactionAsync - asynchronous or synchronous request

Understand that eth_sendTransactionAsync was added in Quorum. eth_sendTransactionAsync returns immediately to allow sending many private transactions/bursts of transactions without waiting for the ...
1
vote
1answer
415 views

Geth account unlocked for 2 seconds

My question relates to a older question on this stackexchange. Details Patrick used the Ethereum Wallet to transfer 1 ether to test out buying TheDAO tokens on his mining computer. When (so far it ...
0
votes
1answer
359 views

Oraclize: callback contain no result Error

I have the following contract to get a random number from 1 to 6 from random.org: pragma solidity ^0.4.0; import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; contract RandomOrg is ...
0
votes
1answer
360 views

Loading External data (in Excel/CSV) to blockchain engine [closed]

I am new to solidity blockchain. I have transaction dataset in csv files. I want to load it automatically to blockchain using ethereum solidity. How can I do it? Is there any UI available? Any guide ...
4
votes
3answers
635 views

What is the difference between JSON-RPC, Javascript API and web3.js?

As I am getting into blockchain-development (Ethereum), I'm often left confused with what the exact difference between web3.js [link here] and specification of JSON-RPC for ethereum on this page. And ...
0
votes
1answer
498 views

JSON RPC Get Tokens At Address

Getting a balance for a token from the JSON RPC is simple. This is all I need to get a Tronix balance. The "0xf230b790e05390fc8295f4d3f60332c93bed42e2" part is the contract address for Tronix. {"id":...
1
vote
3answers
2k views

Why web3 and not just call JSON RPC API

This might be a silly question. if one is able to call JSON RPC API methods such as eth_sendTransaction directly using Postman or any web client, albeit a little troublesome, why use web3? I have ...
0
votes
1answer
283 views

getTransaction returns null for some pendingTransactions subscribe results

I have subscribed to ETH pendingTransactions in mainnet. I am doing getTransaction for each received pendingTransaction like below. web3.eth.subscribe('pendingTransactions', function(error, txnid){ ...
1
vote
1answer
149 views

Documentation For Token Smart Contracts with JSON RPC

This is the documentation for the Ethereum Json RPC: https://github.com/ethereum/wiki/wiki/JSON-RPC Pretty straight forward, but where is the documentation for dealing with tokens via this protocol? ...
0
votes
1answer
31 views

What happens when a contract has overlapping function selectors? [duplicate]

The method to execute a function on a contract in Ethereum is to use the JSON RPC protocol to make a request which has the details of which function you want to call. https://github.com/ethereum/wiki/...
1
vote
1answer
1k views

What is the JSON-RPC method to call a contract's function?

I'm trying to figure out what exactly happens when a function of a smart contract gets called. Since all client communication is done through JSON-RPC I'm looking at their wiki to find which JSON-RPC ...
1
vote
1answer
221 views

Adding JSON-RPC call in geth

I want to build a custom version of geth that provides a new JSON-RPC call to clients. It looks like there are two pieces to make that happen: (1) a Go implementation in internal/ethapi/api.go, and (...
2
votes
1answer
1k views

How to send signed transaction to Ropsten through INFURA in Golang

I want to send and broadcast a signed transaction by sender to the Ropsten network through INFURA in Golang. I was able to send a signed transaction and recieved a response from INFURA as per below, ...
4
votes
2answers
1k views

JSON RPC API id

I'm reading the JSON RPC API documentation but I cannot understand what is the id that should be specified in the request (and that is also returned in the answer). Is this simply a nonce that ...
1
vote
2answers
506 views

How to secure a private chain?

Recently I've setup a private chain on cloud (to be more accurate, it is a separate public chain), after a few days, I found that there are some strange transactions sending ether to the same account ...
0
votes
1answer
351 views

How do I connect to MY full node using RPC

I have a full node(Parity) running at home. I know I can trust this node. How would I go about connecting to it from another computer?
1
vote
0answers
74 views

Is it possible to see the event log when using eth_call?

I want to perform a transaction locally (with the call method in web3 which perform a eth_call RPC call). It returns only the return value of the function called and I want to see the event log. I ...
1
vote
0answers
202 views

RPC call eth_getTransactionByHash fails against geth --syncmode=light --rpc

Will try without --syncmode=light (on a different PC) to see if that command line is the culprit; if it is, this question may be answered quite easily. Geth version Geth Version: 1.8.8-stable ...
2
votes
1answer
568 views

Is there a complete list of available values for the `--rpcapi` command line option of geth?

I known this page https://github.com/ethereum/wiki/wiki/JSON-RPC, but seems it doesn't contains all available apis, for example, it doesn't contain personal API.
2
votes
0answers
65 views

Programmatically unlock certain accounts with Parity?

Using geth it is easy to send transactions from multiple accounts but I do not know how to do this with Parity. I do not want all accounts unlocked. I do not want any account unlocked when it is not ...
1
vote
0answers
297 views

JSON RPC Load Testing / Stress Testing Tool

I am trying to test my quorum setup by load testing it. Are there any JSON RPC Load Testing / Stress Testing Tools? Does Postman or SOAP UI supports JSON/RPC calls?
0
votes
1answer
217 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 ...
0
votes
2answers
105 views

How can I read UTXO's for specific accounts?

With bitcoin, I'd use the JSON-RPC and keep track of transactions in blocks and have to build the UTXO database myself. Is it the same with ethereum?
0
votes
1answer
342 views

JSON-RPC estimate gas error

I am calling method with params: { "jsonrpc":"2.0", "method":"eth_estimateGas", "params": [ { "to": "0x8f0921f30555624143d427b340b1156914882c10", "data":"...
2
votes
0answers
269 views

Parity syncing status for smart contract events with warp

So I'm trying to find the fastest way to fully sync a parity node in order to get all smart contract events, not just account states. The problem I've found is that when parity has warp syncing ...
2
votes
0answers
243 views

eth.getTransaction returning null? Troubleshooting steps

Why am I getting null trying to query ANY transaction id? Any ideas to troubleshoot? Running in light mode. I can query last block number. I can query balances of addresses without issue. eth....
1
vote
1answer
79 views

How to get new transaction coming by address in my waller by json rpc

First !! sorry about english language. I'm newbies dev for ethereum json rpc. I'm hard to find and i don't understand how to use json rpc for check new transaction coming by my address.?? (i want to ...
3
votes
2answers
441 views

Invalid opcode 0x3d

Trying to submit a transaction using remix on local javascript vm and it succeeds. When I submit it on my real private network it fails with "invalid opcode 0x3d".. I can't seem to find 0x3d online......
0
votes
0answers
126 views

Unable to transfer ERC 20 token usign web3js

I am trying to transfer ERC 20 token using web3.js. Below is my code: <script type="text/javascript"> var web3; function send() { if (typeof web3 !== 'undefined') { ...
0
votes
1answer
2k views

CONNECTION ERROR: Couldn't connect to node http://localhost:8545

I have started geth using below: geth --rpc --rpccorsdomain * --rpcport 8545 --rpcapi personal,web3,eth,net and this is my web3.js code: <script src="/bower_components/web3/dist/web3.min.js">&...
1
vote
1answer
256 views

Detect mined blocks by specific nodes

Using web3 to connect to a geth's node rpc API, is there a way to detect when a block has been mined by a specific node? The only way I've found so far is to redirect the node's console output to a ...
4
votes
1answer
1k views

List all ethereum accounts using geth [duplicate]

Etherscan displays all accounts in ethereum being used in the following section https://etherscan.io/accounts Question: How can I get a list of all active ethereum accounts using geth? Possible ...
1
vote
0answers
70 views

how to check if account is unlocked via JSON RPC

How would one validate if ethereum account is locked/unlocked via JSON RPC ?
4
votes
1answer
133 views

Receive deployed contract address by transaction hash with JSON-RPC request

I want to receive deployed contract address by transaction hash. Transcation example - 0x996a683acd59a2ad17461f76ce0f387a89a5ac257ec5d667556219c6acc7f45a. As you can see this contract was deployed by ...
0
votes
0answers
113 views

Using jsonrpc to get eth data but the result is null

I use this command to get data from eth network, but get null return The command is curl -X POST --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":83}' localhost:8545 -H '...
0
votes
1answer
395 views

Web3.js unable to unlock account to call smart contract

I am using web3.js 0.20.6 and I want to unlock an account to execute a smart contract method on a private blockchain. The account is used to pay for the gas. I have used the following code to unlock ...
1
vote
0answers
308 views

Asymmetric encryption/decryption using ethereum public/private key [duplicate]

Is there any way to encrypt/decrypt data using web3js library(or any other standard tool), so that only user having access to public/private key can store and read data onto ethereum blockchain. ...
0
votes
1answer
492 views

JSON RPC sendTransaction data paramether

I'm trying to make a sendTransaction json rpc call and I don't know how to calculate the data paramether. From the documentation: data: DATA - The compiled code of a contract OR the hash of the ...
4
votes
2answers
881 views

Ethereum remix web3 connection problem

I tried to connect to an ethereum node by using remix. It means that I am using http and not https. However, I receive same error message: Not possible to connect to the Web3 provider. Make sure the ...
4
votes
1answer
1k views

“Invalid JSON RPC response: undefined” when using web3.personal remotely

When executing my script files from a machine that needs to connect to a remote geth node, I get an "Invalid JSON RPC response: undefined" when using web3.personal.* functions. In particular I have ...
0
votes
1answer
136 views

Eth_call through oraclize

so I have a contract deployed on Ropsten and now I'm trying to access the public variable using a JSON RPC call through Infura and Oraclize. Here's my contract: contract test_contract { uint ...
0
votes
1answer
442 views

How is it possible that Web3j is send Transaction over Infura.io?

Infura can't unlock Accounts over JSON RPC/web3.js infura FAQ. How is it possible that Web3j can send Transaction over Infura.io? Web3js uses also JSON RPC to communicate with the Blockchain. So ...
5
votes
1answer
283 views

Accessing custom JavaScript functions via RPC API on Geth

Geth allows me to define & load my own custom JavaScript functions with --preload flag or require() on Geth console. But is there way to access my functions via RPC interface? Like : curl -H "...
3
votes
4answers
694 views

Creating a Secure android wallet application using web3 js

I'm new to ethereum and geth. I just want to know that my current architecture or solution to make a new Android wallet in secure way. Mobile wallet -> sends private keys over https -> REST API(Node ...
1
vote
1answer
1k views

How to create an ERC20 Faucet?

I'm having some trouble wrapping my mind around the creation of ERC20 faucets. How exactly is this done? I have created a token (https://ropsten.etherscan.io/token/...
7
votes
1answer
1k views

Start up ganache-cli ethereum client in travis CI for testing

I'm trying to write a .travis.yml file to test my ethereum contract. In order to test it, I need to start up an instance of the ganache-cli ethereum client by calling ganache-cli -p 7545 and then ...
4
votes
1answer
357 views

Ethereum private network on docker

I am trying to create a private network on docker such that each geth node in the network is run on a docker container. I followed this git hub blog :https://gist.github.com/fishbullet/...
0
votes
0answers
94 views

Create unique address per user and get notification of incoming transaction

With bitcoin I can getnewaddress for a specific user, and then receive a notification when a transfer comes in, which I can use to match to that particular user. I was wondering how I would go about ...