Questions tagged [json-rpc]

json-formatted remote procedure calls to communicate with ethereum clients

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

The method does not exist/is not available

web3py 5.15.0 i tried w3.geth.personal.new_account('pass-phrase') then get {'code': -32601, 'message': 'The method personal_newAccount does not exist/is not available'} then figured out that i need ...
2
votes
1answer
95 views

Do all Ethereum networks return the revert reasons as a “message” field?

I noticed that reverted transactions on Kovan don't include the revert reason. I'm getting the generic "Reverted"/ "VM execution error." Is Koval special in this regard? I know ...
0
votes
1answer
26 views

Dumping erc20 token transactions via rpc?

I'd like to do dump all transactions of an erc20-token via the json-rpc interface. I've got a full node running but I'm lost, since the ethereum blockchain is harder to navigate than bitcoin for some ...
0
votes
0answers
8 views

Is light mode client able to serve JSON-RPCs?

Can Geth sync in light mode server JSON-RPC queries from DApps? I know light nodes only store block headers but will it forward the JSON-RPC to other peers to get it served?
1
vote
1answer
22 views

Is there a Ethereum mainnet node that I can query txpool APIs?

I want to call txpool APIs of Ethereum mainnet but I found Infura doesn't provide that. Is there any service providing txpool JSON-RPCs?
0
votes
0answers
14 views

RPC call with web3

I am using extend on web3 to use the evm_unlockUnknownAccount on ganache whit this snippet const localWeb3 = new Web3(ganache.provider( {fork : web3ws.currentProvider} )); localWeb3.extend({ methods:...
0
votes
1answer
40 views

getting Error: Invalid JSON RPC response: “” when calling getBalance from web3 js library

I'm exploring web3 following instructions from the docs and running the code below. The function throws with the error message being: Error: Invalid JSON RPC response: "" For context the ...
1
vote
0answers
17 views

smart contract Thether balanceOf method returns 0x

i used web3j-java call Tether contract method balanceOf(the server node is mine , and on ether mainnet),my address has 3USDT,but i call balanceOf , the node returns me 0x as the balance value,it is ...
1
vote
1answer
29 views

The security of JSON-RPC

I currently use web3 and geth to develop dapps, and we know that web3 interacts with geth through json rpc. If we want to unlock an account through dapp, we need to enter the password in the dapp, and ...
1
vote
1answer
33 views

message: 'invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go struct field SendTxArgs.value of type *hexutil.Big'

I am using a JSON RPC request and source code is as follows: var options ={ url: "http://127.0.0.1:8545", method: "POST", headers: {"Content-Type":"...
0
votes
0answers
34 views

Geth Setup: enabling JSON RPC endpoint with --http

I'm a beginner with blockchain and only starting to read programming textbooks. So a newbie to computer science as well. Right now I'm playing around with my Windows desktop though will be switching ...
0
votes
0answers
34 views

uncaughtException : RangeError: Maximum call stack size exceeded

Facing an issue while working multi-http-provider. When I write var Web3 = require('web3'); require('multi-http-provider'); It throws an error uncaughtException : RangeError: Maximum call stack size ...
0
votes
1answer
919 views

Error: [ethjs-query] while formatting outputs from RPC: “message”:“invalid sender”

I'm using MetaMask with an app I'm developing, and previously working functions are now returning a quite ferocious error. This error has been duplicated on a number of functions in the platform, so I ...
1
vote
0answers
45 views

Understanding eth_estimateGas with regards to gas price, and current mempool

Does anyone have a detailed understanding of how eth_estimateGas works with regards to gasPrice and the current mempool state? I have historically seen some really odd behavior when using ...
0
votes
0answers
64 views

How to collect logs from Uniswap V2: Router 2?

I have a problem with collecting logs from Uniswap router contract. I use json_rpc eth_getlogs When I call the method I receive nothing. What I'm doing wrong? curl -X POST --data '{"jsonrpc":...
1
vote
1answer
36 views

Pass json of address to Contract

i am wanting to import an array of json data into my contract on construct. I want to pass it an array of address to be saved into an array in my contract. Is this possible? I have seen a few posts ...
0
votes
0answers
36 views

Properly Exposing Geth RPC in 2020

With the default allowed ["net", "web3", "eth"], I want to expose Geth 1.9.21-stable RPC to another machine. In config.html I set HTTPVirtualHosts = ["*"]. The ...
0
votes
1answer
85 views

How to construct a raw Ethereum transaction from transaction data

Let's say I have the following transaction information: { "jsonrpc":"2.0" "id":0 "result":{ "blockHash":"...
0
votes
1answer
70 views

Replaying Ethereum transactions, how could I extract the “from” account key from an existing transaction

I'm trying to replay transactions that exist in one chain on another. I can replicate all transaction arguments that are available through eth_getTransactionByHash, but now need to sign the ...
1
vote
1answer
320 views

How to get contract object using ABI json and address with web3j?

I worked with web3js(JavaScript) and used web3.eth.Contract with 2 params (json, address) and successfully got contract object. Now I started to work with web3j(Java) and don`t understand how I have ...
1
vote
0answers
13 views

Transaction from non-miner node is not getting mined sometimes

I have a private Ethereum network containing 2 nodes,NodeA and NodeB. When I initiate a sendTransaction from NodeA(non-mining node) to deploy Ethereum contract using JSON-RPC, the transaction hash is ...
0
votes
1answer
38 views

sendTransaction returns Invalid JSON RPC response

I am trying to send a transaction to a Besu node that I have running locally. However, from the following code, when I run npx ts-node myFile.ts, I get Error: Invalid JSON RPC response: const Web3 = ...
0
votes
0answers
27 views

Geth node with RPC - accounts created automatically, always same addresses “0xffa4658ff14e486a3a57cc7163c153724c9d1904”

I am testing a private ethereum network using Geth 1.9.x. On all instances serving RPC (universally enabled CORS), a series of 3 accounts are created (always the same 3 addresses): ...
0
votes
0answers
26 views

Can't unlock account with geth attached to parity on classic chain

I run parity 2.7.2 on Ubuntu with --jsonrpc-apis=all on the classic chain: #> parity --chain classic --light --jsonrpc-apis=all 2020-08-05 15:20:15 Starting Parity-Ethereum/v2.7.2-stable-2662d19-...
2
votes
0answers
21 views

Why does clef not implement ethereum's JSON-RPC

Assuming that the RPC standard still matches what is to be found today on the ethereum wiki, I was rather surprised to learn that the method calls provided by clef do not match the signer methods in ...
0
votes
2answers
72 views

Why do blockchain networks like Ethereum utilize JSON RPC calls and not REST APIs or graphQL?

I'm sorry. This might be a silly question but I am very much new to backends and networking protocols. I can write decent smart contracts but I don't know much about the backend. So... I wanted to ...
0
votes
0answers
19 views

How to find a specific event if it has no indexed params

I understand that I can filter for logs with indexed events like so: event Transfer(address indexed src, address indexed dst, uint wad); whereby, I can search for all Transfer events with src=...
0
votes
0answers
79 views

Web3 IPC provider connect?

I am using Infura web3 provider to connect etherum but I want to use IPC provider(more secure), How to use IPC provider in ethereum web3.
0
votes
0answers
71 views

{“jsonrpc”:“2.0”,“id”:83,“result”:“0x0”}

if my geth is syncing in fast mode and I try to query method eth_blockNumber, will it throw me an error, cause it is not, i tried curl in verbose mode and below is the result. * Trying 127.0.0.1... *...
0
votes
1answer
83 views

how to connect ethereum local provider https://localhost:8545? [closed]

I am using infura web3 provider in ethereum but I don't want to use third party providers in my project so I want to use localhost:8545? how to use this provider? Is it connect to the ethereum node? ...
0
votes
0answers
145 views

Specified HTTP/RPC port, yet Geth 1.9.15 will not map that port

I am trying to expose port 8545 on a local geth client for use with MetaMask on Chrome 83.0.4103.106 (x86_64), using a Windows host (10.0.18362.900). I store all my blockchain data on a separate drive,...
2
votes
2answers
94 views

Why field `data` in `eth_call` optional?

Based on https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call The data is optional, but it also says it contains hash of the method signature. In what scenario you can send a eth_call without ...
0
votes
2answers
575 views

How to debug a “rpc error with payload”

Debugging smart contract errors can be surprisingly hard. There is one particular kind of error that annoys me the most: the infamous rpc error with payload. For instance, just a few hours ago, while ...
1
vote
1answer
82 views

Is it possible to filter pendingTransactions?

To get a list of the pending transactions that my node is aware of I can easily call the eth_pendingTransactions jRPC call. This will give a big list of pending transactions, which all need parsing to ...
2
votes
0answers
90 views

Why does Ethereum use JSON-RPC and not gRPC?

I am fairly new to networking protocols especially JSON-RPC and gRPC as they are not nearly as common in web development as REST. I was reading around and seems like gRPC generally performs better. So ...
0
votes
1answer
81 views

json rpc hex string weird padding/encoding

When sending eth_call to get erc20 token WETH name and symbol I get hex response padded with bunch of zeros and a mysterious digit '2'. for symbol I get response: "...
0
votes
0answers
16 views

how to sync a node from specific node or ip

I would like to sync a ethereum node but I got a problem i'm trying to sync it as light client but: hub=trezor vendor=21324 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -...
0
votes
0answers
202 views

How to config geth node to get ERC-20 tokens balances

I'm trying to tune my geth node to get ERC-20 tokens balances, but y API call always returns {'jsonrpc': '2.0', 'id': 1, 'result': '0x'} My geth node version: instance=Geth/v1.9.13-stable-cbc4ac26/...
1
vote
0answers
24 views

Simple way to balance web3j connections between nodes

Context: I have a client that can connect to 3 local-network nodes to distribute query-loads and be more resilient to network/software issues. I have managed to create a -simple- watch-dog with a ...
0
votes
0answers
64 views

sending request with curl returns that method does not exist

I try to make call with curl curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":67}' http://localhost:8545 and it returns this: {"...
0
votes
1answer
88 views

How can I tell if the node I am using is exposing the Parity trace methods?

What is the best way to tell if the node I am using is exposing the Parity trace methods? One way I know if is to call a contract on Kovan and look for a revert reason that says to expose the trace ...
1
vote
1answer
105 views

Will code utilising web3.js be compatible with Ethereum 2.0?

I'd like to start developing a solution targeting the Ethereum blockchain but I want to target the Ethereum 2.0 blockchain and I'm not so interested in 1.0 anymore. Can I already do the development ...
0
votes
2answers
50 views

.json files for contracts are not created

I am really new in ethereum and solidity and I am having hard time to figure out how to get the .json equivalent for contracts. I have the Campaign.sol inside the contractsFolder. The Campaign.sol ...
1
vote
0answers
38 views

Why does ethereum JSON RPC encode bytes as hex?

Why not use base64 since it would be more compact?
1
vote
1answer
81 views

Remix IDE Desktop + Geth node as test network

I'm trying to connect the Remix Desktop client to my local Geth node. as usual i added: geth --rpc --rpccorsdomain https://remix.ethereum.org while starting up the node. This obviously only works ...
0
votes
2answers
35 views

ERROR: Provided address “6.963865902119903e+47” is invalid

Full error log: formatters.js:471 Uncaught Error: Provided address "6.963865902119903e+47" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be ...
0
votes
0answers
38 views

Unable to get the Ethereum accounts (eth_accounts) using the JSON RPC

I launched an Ethereum installation with the Amazon Blockchain Templates using the simplest installation, the docker-local with a private network (not connected to the public Ethereum network). ...
0
votes
2answers
63 views

Accessing Ethereum network via JSON RPC from wallet balance/transactions

sorry if the question is silly.... I am tying to build a simple app that checks ETH wallet addresses balances and transactions (for both ETH and Tokens). As far as my knowledge goes, I think that I ...
1
vote
1answer
128 views

Parity IPC direct connect

Before Parity I used Geth, and made requests like: echo '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' | nc -NU geth.ipc and It worked! In Parity v2.7.2 and ...
1
vote
1answer
25 views

Problem with contracts being deployed multiple times in Node.JS backend

I have a Javascript frontend that passes records in a JSON to the backend via Express to be deployed to the blockchain (currently using Rinkeby) with truffle-hdwallet-provider. This appears to work ...

1
2 3 4 5
11