Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rpc]

The tag has no usage guidance.

0
votes
2answers
43 views

How do I monitor 50k addresses for incoming ERC20 transactions?

I have a list of 50.000 Ethereum addresses which at any time may receive ERC20 transfers. I know I can create filters but I don't think it scales to send 50.000 RPC calls to an Ethereum node every 20 ...
1
vote
0answers
28 views

How to use 'geth attach' with Infura?

I have a project in Infura and the project ID is 6f...3a. I'm having problem to start geth attach process with Infura. I tried all protocols (http, https, ws and wss) but all failed. Did I miss ...
0
votes
1answer
14 views

RPC 's SendRawTransaction(increased nonce) many times ,only the first transaction in block

I am using infura node (rinkeby), php. There are 3 transactions I signed with custom nonce (like the solution here) then broadcasted them by sendRawTransaction and succeeded. After above I get 3 ...
0
votes
1answer
39 views

Accounts not getting the balance right

I'm trying to get the balance of a set of accounts using Parity RPC and web3.eth.getBalance. The problem is that, some accounts are returning 0 even though they have balance. For instance: https://...
1
vote
0answers
14 views

One rpc connection faster than another

I have four synced peer nodes running on two separate machines. Nodes 1-3 have been around since the beginning of the block chain and are all on one machine while Node 4 was just added around block ...
0
votes
0answers
21 views

Is it dangerous for my geth node to accept connections from random IP addresses? [duplicate]

I am running a geth node with a number of RPC and WS options available. In looking at the logs, I am seeing attempted connections from random IP addresses. They look as follows: TRACE[02-17|22:19:32....
0
votes
1answer
13 views

Is it possible to artificially delete a given block from local chain database without causing any problems?

Is it possible to artificially delete a given block from local chain database without causing any problems? for example, how could I delete the latest block from my local eth node, and resync newly ...
2
votes
2answers
460 views

Difference between web3.eth.getCoinbase() and web3.eth.getAccounts()[0]

What is the difference between web3.eth.getCoinbase() and web3.eth.getAccounts()[0]. In both cases, I always get the value, which is the currently selected account in Metamask. Note: The question ...
0
votes
1answer
42 views

CORS Issue when using RPC with 2 docker containers

I currently have a setup with two docker containers. The first container, peerA, has a private ethereum network running a single node. The second container, web-app, has a web application that uses ...
1
vote
0answers
34 views

Handle nonce after RPC timeout

From time to time, I will be making some 5 ~ 10 tx/s on Ethereum via RPC interface. I have to handle the nonce manually because it cannot update fast enough. But I am facing issue below: From time ...
1
vote
1answer
290 views

How to get list of all transactions on all accunts in parity wallet [duplicate]

I'm looking for simplest way how to get list of all transactions(incoming, outgoing, external, internal, confirmed, unconfirmed) on all accounts created in parity wallet. The listing should support ...
1
vote
1answer
56 views

How to get balances of all the accounts(~1000) in Geth node?

How can I get the balance of all the accounts in my Go Ethereum node? I have about 1000 accounts and it is too slow to use eth_getBalance to get balance for each address. Are there any ways to use ...
0
votes
1answer
34 views

How do I send coins over personal blockchain?

What I have done --> I have created my own blockchain which is basically forked from Ethereum. So everything that can be done on Ethereum, can in theory by done on my blockchain. I can run a local ...
0
votes
1answer
85 views

Use of RPC, IPC and ws in go-ethereum?

RPC provides http-rpc server.But what is the use of IPC and ws?
1
vote
1answer
110 views

Retrieve event args from getPastLogs

When we use web3.eth.getPastLogs it returns topic and data properties together with rest data. Does it possible to retrieve event args parsing just data and topic as filter? Without to make additional ...
1
vote
0answers
129 views

Geth RPC send_transaction error -32000

How do you calculate how much gas to use in a send_transaction? Amount: 0x670479cb5385800, // (decimal: 463949500000000000 wei 0.4639495 eth) Gas price: 0x6ddd00 // (decimal: 7200000 wei) Gas: ...
0
votes
1answer
492 views

Couldn't decode uint256 from ABI: 0x

I'm trying to get all Transfer events from an account of an ERC721 token, I'm currently struggling with the following error. I googled around but couldn't find much helpful things. I'm definitely on ...
0
votes
1answer
23 views

How to restreint access to rpc? [closed]

I want to restreint access to my ethereum node (geth) via rpc interface for some machines, for example : localhost and 10.x.x.x how to deal with that?
3
votes
0answers
77 views

GETH gets out of sync from time to time

GETH tooks 6 days to sync, after that it will get out of sync from time to time. (PC is running with SSD, never shutdown, and network availability is 100% with 500mbps connection). May I know how ...
2
votes
0answers
120 views

“RPC error, your account is locked” when I try to deploy the last version of parity-bridge

I have already success to deploy the last version of parity-bridge (last month), but today i have pull the last version of parity-bridge. I have that on my terminal : env RUST_LOG=info parity-bridge-...
0
votes
2answers
178 views

RPC connection to ETH Mainnet

Currently I am using GETH, but it is getting like 4~5 days trying to sync without success! May I know any other ETH client which can provides RPC connection and able to sync with the mainnet fast?!?
2
votes
1answer
77 views

How to connect to Ethereum Mainnet from a Mobile App?

I have tested with various private Ethereum chains and test ones using Web3 and RPC calls to a node from React. I am working on connecting to the mainnet for Ethereum with the same principle. If I ...
1
vote
1answer
183 views

Error when try to connect to infura using HDWallet

I would like to debug a transaction using truffle and infura. truffle debug --network=infurarinkeby 0x7... truffle-config.js: infurarinkeby: { provider: function() { return ...
0
votes
4answers
38 views

How to keep a geth node synchronised on a ubuntu machine?

The requirement is keep a geth node synchronised almost always for a DAPP . The geth node is running on a ubuntu machine. The command being used to expose the geth rpc server is geth --testnet --...
0
votes
1answer
450 views

How secure is using port 8545 from the internet (aka via JSON), can someone steal my ether?

Just noticed I can access 8545 from localhost but fortunately not from the web/internet. Do I need this at all? e.q. I read about someone who had lost $20 million due to someone else sending a call ...
1
vote
0answers
94 views

Cannot connect to the Web3 provider when rpccorsdomain is on

I am getting the message: Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). When I specify: --rpccorsdomain "http://...
2
votes
1answer
172 views

Private Ethereum Node connection with Metamask

I am able to connect using metamask localhost 8545 option, as well as computer within the intranet. geth --identity "SK" --datadir data --networkid 18 console --rpc --rpcport 8545 --rpcaddr "0.0.0.0" ...
0
votes
1answer
109 views

Detecting whether a transaction was cancelled (because a block is orphaned)

I'm writing a system where some transactions have to be automatically detected, and wait for 30 blocks to ensure they're confirmed. What I do is that I read all new blocks, and find the transactions ...
1
vote
1answer
184 views

Syncmode = full, and still getting “missing trie node”

I'm running on Rinkeby testnet with this command (I resynced the whole blockchain with this): ./geth --rinkeby --syncmode full --rpc --rpcapi "web3,db,eth,net,personal" --datadir /.../ and after the ...
2
votes
1answer
217 views

How can I retrieve the number of decimals of a token with RPC?

There doesn't seem any obligation in the ERC20 standard to provide the number of decimals anywhere, yet etherscan and all other services can automatically determine the number of decimals of a token. ...
1
vote
2answers
404 views

Javascript Web3 sendTransaction not working

I wrote the following to interact with a Geth node. Got Error: authentication needed: password or unlock. Is there any way to bypass that? I don't want to use private key in my code either. Can I ...
0
votes
0answers
21 views

Am I starting my node correctly?

My intention: Setup for RPC call locally (behind a firewall). Mine some ETH with my GPU to cover my gas fees. geth --datadir ./data --syncmode fast console --rpc --rpcport 8545 --rpcaddr "0.0.0.0" --...
1
vote
1answer
357 views

Check if node is running in private network

Is there a command in the geth javascript console to check if node is running in private net or if it is public? For now I always had to check it in the left hand corner in mist if it's private or ...
3
votes
1answer
282 views

web3.js: Error: The method shh_newSymKey does not exist/is not available on Web3.js

My main goal is to call web3.shh functions using RPC API , Web3.py or Web3.js. I can call web3.shh functions when I use geth attach; which is my last option to do. I am following this answer. geth ...
0
votes
2answers
119 views

Does running a Geth RPC server locally also require having a full Ethereum node?

I've been trying to learn about smart contracts and attempting to work through a few examples. Specifically, I found this one about creating an Oracle -- https://github.com/axic/tinyoracle. The ...
1
vote
1answer
219 views

run node safe prevent RPC hack!

I was running a node on my vps and my coinbase account was hacked. could anyone tell me what would be the default command to start geth on port 8545. Thank you
0
votes
1answer
204 views

set Test RPC block gas limit with Web3

I am stuck between "out of gas" and "exceed block gas limit" when try deploying my contract onto Test RPC in my mocha test file. I wonder Can I manually increase block gas limit on my test RPC (I ...
0
votes
1answer
318 views

Is there an API for json rpc transactions and signing?

I've been looking at a lot of node host providers like infura and they don't allow for ethereum json rpc signing or transactions for security reasons (private key handling). I thought that I could ...
0
votes
0answers
44 views

Error when calling json RPC eth_sign() [duplicate]

I'm currently trying to use the json rpc call eth_sign() and am inputting a public key for the address like this: , but I keep getting this 405 error.
0
votes
0answers
30 views

How does the json RPC function sendTransaction() work? Also what is the eth_sign()?

More specifically, how is it that you can send a transaction using this function call without even signing it? I don't see any parameters for a private key so I don't really know how one would use ...
0
votes
0answers
20 views

Signing and sending a transaction using only JSON RPC [duplicate]

What is the specific javascript implementation of using only a json RPC call to sign and send a transaction WITHOUT using web3js. I'm working in a limited environment where I can only make xml ...
0
votes
0answers
66 views

goroutine while running geth on aws node

I'm trying to run a testnet node of a private network id on my aws instance. It starts syncing but then it crashes and shows goroutine err. The entire stack trace was too long so just pasting part of ...
1
vote
1answer
69 views

Using json RPC without any libraries besides js

I am currently trying to call a function on my smart contract function adopt(uint petId) public returns (uint) that has already been deployed to the ropsten network... but here's the catch. I'm ...
1
vote
0answers
76 views

What does “RlpInvalidIndirection” error mean?

I run my own Parity node for Ropsten network. I am sending raw transactions to the node with "eth_sendRawTransaction" api, and sometimes it returns {-32602, "Invalid RLP.", "RlpInvalidIndirection"} ...
0
votes
2answers
167 views

Servers That Implement Ethereum RPC

Here is the documentation for Ethereum RPC. It looks straight forward enough, but I just need a list of servers that implement the RPC. https://ethereumbuilders.gitbooks.io/guide/content/en/...
0
votes
0answers
27 views

Making RPC calls without setting up my own node [duplicate]

My application is using web3 or Nethereum to connect to my own ethereum node (setup using geth). Is it a must for me to setup my own node to make RPC calls (or connect to a specific node that setup ...
0
votes
1answer
68 views

Invalid type: sequence, expected a string for key 'rpc.cors'

Trying to run parity using the configuration file node.toml file $ parity --config /data/parity/node.toml Loading config file from /data/parity/node.toml You might have supplied invalid parameters in ...
0
votes
1answer
72 views

What boot parameters do I use for a RPC server?

So we use the following for Litecoin daemon=1 rpcallowip=127.0.0.1 rpcallowip=xxx.xxx.xxx.xxx rpcuser=xxxxxxxxxxxxx rpcpassword=xxxxxxxxxxxx rpcport=9339 What would be the equivalent boot parameters ...
2
votes
1answer
484 views

Geth --rpcaddr doubt

Can you tell me the differences between --rpcaddr 127.0.0.1 --rpcaddr 0.0.0.0 --rpcaddr my_public_ip --rpcaddr my_private_ip during a private network config? Thank you
0
votes
0answers
230 views

How connect to my geth from Remix? IPC is always \\\.\\pipe\\geth.ipc

I am trying to develop smart contract & dapp with Window 10. I made my own accounts in local testnet in geth. And I'd like to make smart contracts and deploy them on the Remix. so I need to ...