Questions tagged [rpc]
The rpc tag has no usage guidance.
183 questions
0
votes
0
answers
50
views
Personal Polygon RPC: heimdall & bor not syncing after starting from snapshot
I need personal RPC, because of volume of requests, so I decided to host it on one of my servers. Installed and configured heimdall as two services: heimdalld and heimdall-rest (for the REST API). ...
1
vote
0
answers
55
views
Web3 python websocket persistent connection
I am implementing a crypto payment system for my django web app. I have a smart contract that exposes some functions that let users purchase credits for my application by sending crypto to the smart ...
1
vote
1
answer
63
views
To what extent categorization: full node, light node and fast node is relevant today?
Found such categorization from "mLSM: Making Authenticated Storage Faster in Ethereum" paper https://www.usenix.org/system/files/conference/hotstorage18/hotstorage18-paper-raju.pdf.
There ...
0
votes
0
answers
140
views
How to bundle lp+buy first your own contract?
How to bundle lp+buy first your own contract ? as here https://etherscan.io/address/0x68ff0e5f034561d0571afe8b586af166f0c254a1
0
votes
0
answers
71
views
How to access transaction data in Alastria networks?
I have read an article about a personal data leak on Alastria networks: https://medium.com/@4k-research/personal-data-leak-alastria-blockchain-ecosystem-9366544d1cd9. Following the article idea I have ...
3
votes
1
answer
175
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 ...
0
votes
0
answers
28
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: ...
0
votes
1
answer
400
views
Methods allowed by RPCs providers for contracts Solidity Event listeners at etherjs
GM everyone.
I'll appreciate any help to know how is the correct form of consume events in a backend listener of EVM solidity contracts, and if can share your favorite Rpcs Providers like infura,...
0
votes
1
answer
45
views
My Arbitrum Alchemy node is randomly returning -3 for block number
Basically I'm getting an error from my RPC node provider (Alchemy) where sometimes, when I query for the block_number I get the response -3.
I don't quite understand why or if this is a rate limit ...
0
votes
1
answer
488
views
How to find the rpc url for local private network on windows to connect to metamask?
INFO [02-20|20:41:18.478] WebSocket enabled url=ws://127.0.0.1:8551
INFO [02-20|20:41:18.478] HTTP server started endpoint=127.0.0.1:8551 auth=true prefix= ...
1
vote
0
answers
12
views
What is the semantics of block labels in `eth_getNewFilter`?
I am wondering how exactly fromBlock and toBlock in eth_getNewFilter are supposed to work. The documentation is a little confusing.
This page (which seems to be official) says that these parameters ...
0
votes
0
answers
27
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?
0
votes
0
answers
11
views
Internal Rpc error when i call claim function on this my contract and i got payload error if use edge browsser instead of chrome to perform same task
My js code
document.addEventListener("DOMContentLoaded", async () => {
let web3;
let accounts;
const initWeb3 = async () => {
try {
// Use the appropriate provider ...
0
votes
2
answers
50
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 ...
3
votes
3
answers
111
views
Is it 100% guaranteed to check an address that it is a smart contract using eth_getCode?
I'm getting a transaction from an Ethereum node using RPC. I need to understand if this transaction to an Externally Owned Account or to smart contract address. I was advised to use eth_getCode for ...
0
votes
1
answer
216
views
Is it possible to distinguish full nodes vs archive nodes without using RPC calls?
I was wondering if there are ways to distinguish Ethereum full vs archive nodes without using RPC calls to ask for old state information.
This is helpful because lots of nodes have RPC disabled so you ...
0
votes
2
answers
535
views
How to pass blockNumber to viem call?
I'm trying to view the owner of a certain NFT at a specific blockNumber, when I make the viem call without the blockNumber parameter it works perfectly, however, once I try to pass a blockNumber with ...
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,
...
2
votes
2
answers
148
views
Need an advice about a stable RPC Provider (doesn't have to be free) [duplicate]
Need a full ETh Node, please share a good RPC provider with stable connection and not enou
3
votes
1
answer
1k
views
How to work with foundry anvil custom rpc methods?
I'm running an anvil fork node on localhost:8545, and I create a provider by ethers:
const provider = new ethers.JsonRpcProvider('http://localhost:8545')
I tried some common rpc methods like: ...
0
votes
2
answers
161
views
Facing issues while running Chainlink node on XRPL EVM Sidechain network
Basically, I’m trying to run a Chainlink node on XRPL EVM Sidechain network.
Here's the content of the config.toml file that I'm using:
[Log]
Level = 'warn'
[WebServer]
AllowOrigins = '\*'
...
1
vote
0
answers
216
views
($10 ETH Bounty) Base Chain - My submitted transaction is always 2 blocks behind the current block
For some reason whenever I submit my transaction it is always included 2 or more blocks behind the current block. There's an address that always has their transaction included in the same block as the ...
1
vote
1
answer
40
views
Is paying to an API provider the only way to get reliable events notifications?
I am new to Blockchain development. I am developing a game that depends heavily in random numbers. My first naive implementation was flagged by the auditor as I was generating them on-chain. So I ...
1
vote
1
answer
65
views
Null keys when using `debug_storageRangeAt`
I'm currently trying to use the debug_storageRangeAt on a Hyperledger Besu RPC to extract the contract storage. For some contracts I get the expected response which is a list of keys and values:
"...
0
votes
3
answers
319
views
What are the GraphQL API providers for blockchain data?
I know there are RPC providers like QuickNode and Alchemy
Irwing Tello
2
votes
2
answers
147
views
Looking for some good RPCs [closed]
Where can I find good Ethereum RPCs for free? I know there are some public RPCs but I am looking for one without any/less rate limiting.
2
votes
1
answer
376
views
How to get block and receipts data?
Is there a way to get the entire block information and transaction receipts within the block all in one function/method?
Irwing Tello
0
votes
1
answer
442
views
Snapshot extension registration failed and Snapshot extension registration failed docker image bsc:1.2.5
Good Day Team
I have used the following latest docker image to run a node
ghcr.io/bnb-chain/bsc:1.2.5
I start up my docker container using the following
docker run -v
(pwd)/data/node:/bsc/node -p 8545:...
2
votes
2
answers
207
views
Ethereum RPC API
I am building an analytics dash for wallets, which constantly tracks balance changes for wallets. I am using this small snippet to get the balance
(async () => {
const provider = new ethers....
2
votes
1
answer
129
views
How to add a NFT to metamask wallet with a RPC method
We have a way to add an ERC20 token to the metamask wallet from our dapps with a RPC method:
const addTokenToMetamask = async () => {
if (typeof window.ethereum !== "undefined") ...
1
vote
1
answer
423
views
How can I use ethers.js to get streaming events via sockets instead of polling?
I try to use ethers.js events, but they seem to be polling constantly and eventually the RPC provider sends HTTP code 429: Too Many Requests.
I understand that I can use non-standard APIs of providers,...
1
vote
0
answers
62
views
What kind of malicious activity could an RPC gateway inflict on the user?
Let's say, a third-party RPC gateway for an Ethereum-like networks decided to turn itself into a malicious one. Apart from the likes of selling users' data, what kind of malicious activity could it ...
0
votes
1
answer
150
views
Is private key sent out at any ocassion in a request to any RPC?
Do I understand correnctly that no RPC whether it be the standard Ethereum full node, or an RPC/REST API gateway, require a private key to be sent to it in the pure text? A private key is only used to ...
1
vote
2
answers
384
views
Can I determine balance change of a swap via receipt data?
tl;dr: If I execute a swap transaction between two tokens (native or ERC-20 on either side) that is subject to fees/slippage, is there a deterministic way to tell how much the user received from that ...
0
votes
1
answer
37
views
Geth modes for address balance
After some research I saw that there are several types of synchronizations for the geth client: full sync, fast sync and light sync.
If I want juste check the balance of an address what is the ...
1
vote
1
answer
62
views
self-hosted solutions to get account balance
What are the most common solutions self hosted solutions to get the balance of an account with a python script? I know that there are RPC nodes or are there other solutions? Maybe solutions that use ...
7
votes
1
answer
3k
views
Failed to get EIP-1559 fees error when deploying to ZkEVM polygon using Foundry
I have this error
Failed to get EIP-1559 fees
after running this command
forge script script/BricksCore.s.sol:BricksCoreScript --rpc-url $POLYGON_ZKEVM_RPC_URL --broadcast
My script :
contract ...
1
vote
1
answer
415
views
increase the gas limit for read functions
hey guys this may be a broad question...
I'm writing a smart contract that recursively builds an svg image given a seed number. the function that draws the image is a view function so it doesn't cost ...
0
votes
1
answer
51
views
Remix not connecting to testrpc
I am trying to deploy a smart contract on testrpc using External Http Provider which I have learnt has replace web3 provider. However when I try to run it. It says 'Error while connecting to the ...
1
vote
1
answer
151
views
Is there a RPC API equivalent of fetching my Ethereum balance by using CURL in the cli?
Since metamask connects to a RPC server and passes in the eth address to make a api request. Is it possible to do the same functionality using CURL in the cli to do a basic balance inquiry of an ...
12
votes
17
answers
33k
views
TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')
const ethers = require("ethers");
const provider = new ethers.providers.JsonRpcProvider('https://mainnet.infura.io/v3/MYKEYISHERE')
web3.eth.getBlockNumber().then(console.log)
Error:
...
1
vote
0
answers
182
views
How to recover from intermittent 'the resource eth_call is not available' during runtime?
When I call a contract function using a block_identifier from the past,
I get error code -32002 the resource eth_call is not available in ~4/5 times
when using a public RPC using Python web3.
~1/5 ...
2
votes
2
answers
765
views
Exposing RPC port: how to expose rpc on [::]:8545 and not only on localhost
I have a simple question but I cannot find the problem.
I want to expose the RPC port of my node in my local network (so that I can access it from another computer).
I run the node with :
geth --http ...
1
vote
1
answer
523
views
Is there a more decentralized RPC server for MetaMask than Infura?
The default RPC server for MetaMask browser extension is Infura. However, Infura is known to monitor the IP addresses and other data of its users.
Anyone who is touting decentralization of crypto, but ...
1
vote
0
answers
53
views
Arbitrum: Mapping L2 blocks to L1 batches using RPCs
I'm looking for a way to programmatically map L2 blocks to their corresponding rollup batches in L1 using RPCs.
Is there a way to do this, and if so, what would be the best approach? Any help or ...
1
vote
1
answer
146
views
Is it a requirement that RPC providers (Infura, Ankr, Pocket, etc) collect a wallet's IP address?
If you do not run your own node and must interface with Ethereum network through an RPC like Infura, is it a requirement they collect your IP address in order to route the response back to you?
Of ...
0
votes
1
answer
104
views
how connect in rpc file go ethereum
i try much more time to connect rpc my geth, i got it cant run ,,syncmode light,, okay but can i used --syncmode fast? or how i connect in my rpc file , to be read from the geth side, also see the ...
0
votes
1
answer
43
views
How can i know when somebody send me some bnb
i created a contract and write a backend for it i will make a presell on my website and i am new on this things if my question is too easy sorry for that but i am almost spend 24 hours for this thing. ...
0
votes
1
answer
261
views
How can I know if my rpcUrl is working or not?
I have a 2 rpcUrl, I would like to pick the one that's working. How can I pick the active rpcUrl? Unfortunately, I can't catch the error log on this one.
const provider = new ethers.providers....
1
vote
0
answers
54
views
Why the network request of web3 interaction through react or any other frontend framework or library is not showing in the network tab of browser?
All network request we make from browser is shows in the network tab , but the web3 request is not showing in the web browser. Web3 library uses network RPC to interact with the blockchain. The RPC is ...