Skip to main content

Questions tagged [json-rpc]

json-formatted remote procedure calls to communicate with ethereum clients

Filter by
Sorted by
Tagged with
1 vote
0 answers
14 views

Why don't consensus clients have an RPC method to query the total supply of ETH (all ETH minted)?

I understand that the total supply of ETH can't be hardcoded into consensus clients because this value needs to be derived from the blockchain state to prevent tampering. To get the total supply, we ...
Geek's user avatar
  • 41
0 votes
1 answer
26 views

How I can send FIL in filecoin network

My network: filecoin. I use this RPC: https://api.node.glif.io I try send FIL token from A to B address on filecoin network and I got error: { jsonrpc: '2.0', error: { code: 1, message: &...
Eligijus Girdenis's user avatar
0 votes
0 answers
14 views

No "SSTORE" opcode found in the result of debug_traceTransaction()

when I try 'curl -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0", "id": 1, "method": "debug_traceTransaction", "params": [ ...
Lyn's user avatar
  • 1
0 votes
0 answers
24 views

Recovering crypto from ethereum RPC

I have found some of very old RPC credentials on ethereum. I tried to run it or try to recover the balance from it. But the hostname it had is down. If I get other RPC hostnames and same credentials ...
Sameer shahi's user avatar
0 votes
0 answers
20 views

why am i getting negative value for effective gas price?

May 27 10:51:16.745 DEBG Trying again after eth_getTransactionReceipt RPC call for transaction 0x77e3b240fb0e665edc49b4f2464095ae69a18a4760cf2f654103237ad1c3d3b3 failed (attempt #5) with result Err(...
user135733's user avatar
4 votes
1 answer
94 views

How to sign Ethereum message in C#

I`m trying to convert this code to c# const message = response.data.message; const jsonProvider = new ethers.providers.JsonRpcProvider(RPC_URL) const ethersSigner = new ethers.Wallet(privatekey, ...
Jānis Kļaviņš's user avatar
0 votes
2 answers
106 views

Fastest RPC Endpoint for Binance Smart Chain

What is the fastest RPC endpoint for accessing the Binance Smart Chain, and are there alternative methods of communication with this blockchain? Additionally, does the performance of these methods ...
adam mr's user avatar
  • 131
1 vote
0 answers
10 views

SSZ serialization and JsonRPC usage

As I understand, the SSZ was introduced in Ethereum 2.0 for the serialization of data in different contexts. The previously used serialization is RLP and it is used when making a JSON-RPC request to ...
Mathieu Dutour Sikiric's user avatar
3 votes
1 answer
103 views

how can we control the logic behind ethersJs fallbackProvider's choices

I am trying to use ethersJs to handle multiple RPCs with a fallback mechanism, to ensure we always get a response. I tried the FallbackProvider . The probelm with it is that event if you set a quorum ...
Kaki Master Of Time's user avatar
1 vote
0 answers
53 views

How to foundry test a function which uses 1Inch Swapping functionality?

I'm working on a protocol's Adapter contract. The Adapter contract have a function, which let users sell their PortalEnergy (assume tokens) to get ETH. They use 1Inch Swapping functionality to get ...
DevABDee's user avatar
  • 473
0 votes
1 answer
590 views

How to broadcast a transaction directly to a centralised sequencer (Arbitrum/Optimism/others)

Most layer two chains have their centralised sequencer which operates first-come-first-server, or so-called fair sequencing manner. If you use the centralised sequencer, there are no Malicious ...
Mikko Ohtamaa's user avatar
1 vote
1 answer
44 views

`eth_estimateGas` with `stateDiff` on a counterfactual smart contract

I have a counterfactual Safe ( v 1.3.0 ) , where funds have been already sent (ERC-20 token). I want to relay a transaction where Safe is being deployed funds are moved out of it Transaction will be ...
70ny's user avatar
  • 241
0 votes
0 answers
25 views

Trying to setup Astar zkEVM Mainnet Permissionless RPC Node but failed

I am trying to setup Astar zkEVM Mainnet Permissionless RPC Node following these docs, but it's not working for me. Looks like the container zkevm-rpc is not functioning. curl -H "Content-Type: ...
Tapas Jana's user avatar
0 votes
0 answers
41 views

JSON-RPC Connection Pool Implementation

I am using go-Ethereum ethclient and rpc packages to interact with block chain nodes to communicate via JSON-RPC. I usually code below two lines to get connection to the node and then use any of the ...
SriVani B's user avatar
0 votes
1 answer
31 views

Looking for BSC RPC Provider with Log Monitoring

I'm in search of a reliable RPC provider for accessing the Binance Smart Chain (BSC) network, preferably with log monitoring capabilities similar to Alchemy. Any recommendations or insights would be ...
adam mr's user avatar
  • 131
0 votes
0 answers
68 views

Foundry's Anvil localnode not prcessing transactions?

I've deployed smart contracts using the ContractFactory Objects provided by ethers.js 5.7 and they were working quite fine but today the contracts don't seem to be getting deployed; in fact any ...
Geek's user avatar
  • 41
0 votes
0 answers
17 views

Nethermind Execution Client RPC multiplicity

when running a nethermind-prism node can you route provider communications and local processes through IPC but also allow external HTTP RPC access?
Max.Koeg's user avatar
0 votes
1 answer
421 views

JsonRpcEngine: Response has no error or result for request:

I tried to deploy my smart contract on bsc testnet but it failed. Please explain where it went wrong.
alex's user avatar
  • 1
1 vote
0 answers
84 views

err="execution timeout" timeout when calling debug_trace transaction

I have one question. We have organized the ethereum en node as an archive. Since then, we have called large amounts of debug_traceTransaction to that node but err="execution timeout" ...
spark's user avatar
  • 11
0 votes
2 answers
38 views

How to optimally display over 500k EOA wallets' daily balances spanning three years back?

I would like to display over 500k EOA wallets' daily balances spanning three years back and wonder if there is a more efficient method than using eth_call and balanceOf 500k times per day for three ...
littlewatermeloncat's user avatar
0 votes
0 answers
20 views

How to query or compute historical gas usage by address?

I'm trying to understand how services like fees.wtf calculate lifetime gas used by and address. Is there an JSON-RPC call or would I have to run a modified full node to index? Similarly for top gas-...
casualprogrammer's user avatar
0 votes
0 answers
26 views

API Mechanisms for Crypto Asset Transfer on Tron and BNB Blockchains

I have experience using the Bitcoin RPC API, which provides the capability to create applications that can communicate with the Bitcoin network. This includes the development of self-custody wallets, ...
sci9's user avatar
  • 101
0 votes
1 answer
1k views

"eth_estimateGas" throws execution reverted error

I was trying to use eth_estimateGas but It throws execution reverted, The error doesn't indicate anything. This is my code : final gas = await _web3Client.estimateGas( sender: sender, ...
Reza Aslejeddian's user avatar
0 votes
0 answers
119 views

Can eth_estimateGas estimate gas for past blocks?

In my understanding, the eth_estimateGas json rpc method can currently only be used to estimate how much gas would be needed for a transaction based on the current/latest state of the blockchain. ...
MShakeG's user avatar
  • 1,825
2 votes
1 answer
51 views

Why are the params from the request object in reverse order between personal_sign and eth_sign?

Why are the params from the request object in reverse order between personal_sign and eth_sign? For example, the personal_sign request object has the hex message in params[0]: // Request { "id&...
jiamijiang's user avatar
0 votes
1 answer
50 views

Mismatch in `accessList` between Geth and Nethermind

Access Lists were introduced in https://eips.ethereum.org/EIPS/eip-2930, and one of the design decisions was to support duplicates "because it maximizes simplicity, avoiding questions of what to ...
Lautaro Emanuel's user avatar
1 vote
1 answer
1k views

How to set the timeout for provider http RPC requests in the ethers

I am using JsonRpcProvider in ethers V6. I am sending requests to node like getBlocknumber, getBalance ,sendTransaction etc through JsonRpcProvider. I want to set the response timeout for the requests ...
imelon2's user avatar
  • 570
0 votes
1 answer
183 views

How to get consensus layer data for many blocks in a single RPC call?

You can get consensus related values such prevrandao and validator details with eth_getBlockByNumber or eth_getBlockByHash, but how can you get this data for many blocks without making thousands of ...
user72364's user avatar
  • 135
1 vote
2 answers
271 views

Error in reading properties of JsonRpcProvider Error: TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')

This is the entire error message: Error: TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') at interactWithContract (contractInteraction.js:6:1) at handleAddProduct (...
Dhananjay Joshi's user avatar
0 votes
1 answer
761 views

jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '"transaction underpriced\"

I'm trying to deploy a BEP20 contract using Remix on Binance TestNet, but I keep getting this error: creation of TToken errored: Returned error: {"jsonrpc":"2.0","error":&...
mazagngy's user avatar
1 vote
1 answer
62 views

Fetching an implementation contract using ethersjs

I'm attempting to get the implementation contract for a proxy using ethers (and testing it using the recently published Paypal USD: https://etherscan.io/address/...
Abraham P's user avatar
  • 103
1 vote
0 answers
19 views

"not logged in" when metamask gets locked by password

I have a pretty standard code used by logging in via MetaMask, something similar to this: const connectWallet = async () => { const provider = new ethers.providers.Web3Provider(window.ethereum) ...
Camila326's user avatar
  • 115
2 votes
0 answers
527 views

Error HH604: Error running JSON-RPC server: Connect Timeout Error

I'm facing an error while running the command "yarn hardhat node" ERROR: Error HH604: Error running JSON-RPC server: Connect Timeout Error For more info go to https://hardhat.org/HH604 or ...
PsychoPunk_Sage's user avatar
2 votes
0 answers
137 views

How to query the ethereum network to get Validator status, balance and validator reward history

Is there a way to query the ethereum network with a json rpc call to get the current balance, the status and the reward history of a validator? thanks very much!
mazi's user avatar
  • 21
1 vote
1 answer
647 views

Flashbots on Mumbai/polygone

i'm trying to run a flashbot test on Mumbai. What is the flashbots RPC endpoint for Mumbai and Polygon network ?
adam mr's user avatar
  • 131
1 vote
1 answer
25 views

Does chain_id exist in any smart contracts?

Is chainId something any smart contracts have knowledge of, or does it only exist externally to any given chain? I see the eth_chainId function of the JSON-RPC. But are there any ABI queries against ...
Sergio Gliesh's user avatar
0 votes
1 answer
61 views

Sign a transaction with Metamask which will be submitted later using a custom backend

Currently have a custom micro-service that sends & creates transactions depending on the use case which utilizes eth_sendRawTransaction meaning I'll need a web wallet to prompt the users to sign a ...
CoderMan's user avatar
0 votes
0 answers
123 views

I can't create new account via rpc with personal_newAccount

I want to create new account via rpc curl -X POST http://localhost:8545 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"...
Madhan's user avatar
  • 1
0 votes
1 answer
498 views

Can't clear pending transaction with current nonce getting an rpc error

Somehow my transaction was sent with extremely low gas fees from ETH mainnet to zkSync bridge. Is stays forever on pending I saw this and tried to cancel it/speed it up but it did not work. I tried to ...
Car Konto's user avatar
1 vote
1 answer
1k views

How to get internal transactions using JSON-RPC methods

In etherscan I noticed that there are transactions that have "internal transactions" inside of them, see this link: etherscan transaction. Screenshot of the transaction: My question is: how ...
Jacob's user avatar
  • 155
0 votes
1 answer
151 views

How to detect if a transaction failed before Byzantium fork [duplicate]

In short: I'd love to understand how to detect if a transaction failed before the Byzantium fork. Explanation: After the Byzantium fork it's easy to understand if a transaction failed or not, I just ...
Jacob's user avatar
  • 155
3 votes
1 answer
781 views

What is the withdrawals field of the response of web3.eth.getBlock()?

I noticed that the withdrawal field has been added to the web3.eth.getBlock() response. Here is a small example: { <the usual fields>... , withdrawals: [ { index: '0x3812d', ...
Pierogi's user avatar
  • 203
1 vote
3 answers
5k views

How can I fix this JsonRpcProvider error?

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') at main (D:\ethers-simple-storage\deploy.js:9:41) at Object.<anonymous> (D:\ethers-simple-storage\deploy.js:26:...
Hammadullah's user avatar
0 votes
1 answer
401 views

HTTP requests limitation for an Ethereum Node

I have a fully synced Binance smart chain node with a proxy_pass to nginx for external request. The problem that i have is the JSON-RPC return "null" if i process a large amount of requests. ...
Mohammed's user avatar
1 vote
1 answer
143 views

Cannot get uncle block in my code but it exists in Etherscan

I'm following this very cool article on how to calculate rewards for a ETH miner and I'm stuck on the uncle rewards. In the example they calculate the rewards on the ETH block with id 15349734, click ...
Jacob's user avatar
  • 155
3 votes
3 answers
861 views

How to view the amount of storage a contract uses?

Is it possible to view the amount of storage a smart contract uses from an existing tool? Or if not is it possible to determine it by making json rpc calls? There are a few similar questions such as ...
MShakeG's user avatar
  • 1,825
1 vote
1 answer
2k views

How to connect to my locally run Ethereum node using RPC endpoint?

I have an Ethereum full node running locally on my machine and wish to connect to it via an RPC endpoint. I have the node running with the command geth --http --http.api eth,net,engine,admin --authrpc....
Kakarot12's user avatar
2 votes
3 answers
1k views

The block number argument in ETH JSON-RPC function calls

Multiple JSON-RPC API functions take an optional block number argument: eth_getBalance eth_getCode eth_getTransactionCount eth_getStorageAt eth_call My questions is this: for historical blocks, is ...
kfx's user avatar
  • 1,680
0 votes
1 answer
36 views

Please help me with this events error with HttpProvider

I have encountered this error while trying to put my oracle online. Please, help!
Vidhan Mangla's user avatar
0 votes
1 answer
284 views

How to get ERC-20 transfer events using curl?

I want to check whether my full node has historical logs correctly stored. How can I query historical ERC-20 transfer events, or any historical Solidity events, using UNIX curl command?
Mikko Ohtamaa's user avatar

1
2 3 4 5
14