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
1answer
6 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
19 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
12 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
147 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
35 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
28 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
141 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
44 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
24 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
55 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
84 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
77 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
361 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
22 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
69 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
104 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-...
1
vote
0answers
51 views

Start geth javascript console for node without mist

I have my Mist node running on https://ip:8545. To work over it with the Geth javascript console I run a cmd prompt with: ./mist.exe --rpc https://ip:8545. After that I attach the geth javascript ...
0
votes
2answers
152 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
67 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
152 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
1answer
22 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
413 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
84 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
165 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
90 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
157 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
189 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
330 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" --...
0
votes
0answers
43 views

Geth RPC help and bitcoin-cli equivalents? [duplicate]

I have been using Bitcoin and a few other cryptocurrency nodes for a project and I'm having a lot of trouble trying to add Ethereum. I have geth installed on a digitalocean droplet and I need to ...
1
vote
1answer
322 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
248 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
109 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
210 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
200 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
273 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
40 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
27 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
19 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
65 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
65 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
71 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
127 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
26 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
62 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
71 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
381 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
409 views

Nethereum Call to function seems to return correctly but state of contract is uneffected [duplicate]

I am attempting to set a variable of the contract. The setter function returns the expected value but the value of subsequent calls to get are unaffected. Nethereum Code: using System; using System....
0
votes
0answers
201 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 ...