Questions tagged [rpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
493 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
586 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 ...
1
vote
1answer
498 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
459 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
173 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
267 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
238 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
507 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 ...
2
votes
1answer
96 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
118 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
270 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
31 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
126 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
79 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 ...
4
votes
1answer
1k 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
307 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 ...
0
votes
1answer
508 views

Nethereum contract function call throwing exception on return: hex string has length 64, want 40 for common.Address

Both a call returning and address and a call returning an int256 fail with the same error: Nethereum.JsonRpc.Client.RpcResponseException HResult=0x80131500 Message=invalid argument 0: hex string ...
1
vote
1answer
280 views

unable to list accounts in web3.py via RPC

I built a private chain on my computer using geth and I want to interact with it using web3.py. But there was something wrong. I started the private chain(containing only one node) with the command $...
5
votes
1answer
299 views

Accessing custom JavaScript functions via RPC API on Geth

Geth allows me to define & load my own custom JavaScript functions with --preload flag or require() on Geth console. But is there way to access my functions via RPC interface? Like : curl -H "...
1
vote
0answers
55 views

Cannot see address on geth instance console in the dev network

I am trying to develop a ethereum private network & i am using a single dev node. I startup my local dev instance of geth using this command below. geth --mine --dev --rpc --rpccorsdomain="...
0
votes
1answer
3k views

What do these geth --rpcapi parameters mean: db and net?

Many times in different guides I met the following string to start geth: geth --rpc --rpcapi="db,eth,net,web3,personal" Here we can find commands provided by admin, personal, eth options. But what ...
1
vote
1answer
95 views

How did MyEtherApi manage to disallow some methods (Parity)

I want to launch a public node with RPC enabled, open to others and for me. However, I want to disable the RPC methods that are unsafe to expose to the outside. Looking at MyEtherApi, they have ...
1
vote
1answer
43 views

What information do nodes exchange with each other?

From my understanding nodes are able to communicate with each other to send and receive information such as newer block info etc... I would like to understand what those informations are, and why can ...
1
vote
0answers
65 views

ETH Accounts per block

Correct me if Im wrong but from my understanding each block has a "stateRoot" property that point to status of the State tree at the time of mining. I also believe that tha state tree contais a list ...
0
votes
1answer
248 views

What is the rpc IP address?

I've only begun with blockchain(rinkeby-testnet) and IOT. I use nodemcu (ARDUINO IDE) and mist. What should the rpc-ip address be? Do I have to establish an ethereum node in order to do that ?
0
votes
2answers
252 views

web3 (then property) in ethereum node

Would you please help: When I run the below command in my nodejs console I get the below error: (I am using web3 0.20.0) on Windows 10 web3.eth.getAccounts().then(list => {accts = list}) ...
3
votes
0answers
265 views

Invalid JSON RPC response: {“id”:6,“jsonrpc”:“2.0”}

I'm following this tutorial https://medium.com/@ConsenSys/a-101-noob-intro-to-programming-smart-contracts-on-ethereum-695d15c1dab4 I have downloaded the code from github repo. I'm using ganache as ...
0
votes
1answer
818 views

rpc requests to geth on AWS instance

I have geth running on an AWS EC2 instance. Here is how I started it: geth --rpc --rpcaddr "127.0.0.1" --rpcport "8545" --rpc --rpccorsdomain "*" from that same instance I can use python's request....
0
votes
2answers
485 views

Ethereum private network get initiated on 127.0.0.1:8545 and not on my specified ip and port

I am creating a private blockchain network for testing by doing all the initial steps like creating genesis block and data folder etc. Here are some initial commands I have used geth --datadir "./...
1
vote
0answers
956 views

How to get all the transactions made by a token address [duplicate]

Given the address of a token, how I can get all the transactions related to that address using JSON RPC or an external api such a api.etherscan.io? The transactions that gives a Ethereum address are ...
0
votes
1answer
106 views

How to configure Ethereum on Bifrost

I am building a blockchain application that allows investors purchase ICOs using ETH on the Stellar network. I use Bifrost to connect my application to stellar network. But when I startEthereum on ...
0
votes
1answer
124 views

Do you have to leave geth --rpc running forever or once it's synced you stop it?

if are supposed to stop it at some point, what is correct way and when do you need to run it again? thanks
1
vote
2answers
2k views

TypeError: Web3.providers.WebsocketProvider is not a constructor?

Trying to connect to a geth machine over websocket? JS code. var Web3=require('web3'); var web3 = new Web3(new Web3.providers.WebsocketProvider('ws://10.244.5.43:8546')); console.log(web3....
0
votes
1answer
321 views

Interact with remote geth node with metamask using SSH

I have a geth node running on a server. There are no ports open on the server, the only access is using SSH tunnel. I want to interact with the node using metamask extension. Is there any way to do so ...
1
vote
0answers
184 views

Geth on ios and RPC protocol

I'm using Geth Objective-C API on ios and would like to start the node with RPC protocol enabled. Is it possible and if yes how?
2
votes
3answers
857 views

How to get token holders via json RPC

So I want to get the token holders of a token like this: https://ropsten.etherscan.io/token/0xfa68d281e7ff1a8e9393428ba0abe8961cf342cb#balances Via my Ethereum node. I tried: https://github.com/...
1
vote
1answer
3k views

GETH command --rpc

I want to learn how to use the GETH console. What does command "geth --rpc" do? Why are so many entries generated? What is it syncing? If it is a syncing process, when or what message means the ...
0
votes
1answer
400 views

How to write a message/string to the Blockchain? [duplicate]

I am not a programmer so my attempt to deploy a token is failing. Is there any other way to write a string to the Blockchain? An RPC command maybe? *EDIT: Yes. The answer is visible at How to ...
0
votes
1answer
463 views

Publicly accessible nodes for RPC [duplicate]

It seems that truffle cannot deploy to a --light node. I run a laptop where disk space is really tight. Are there any publicly available testnet and mainnet nodes that I can interract with via RPC?
0
votes
1answer
266 views

How do I export ethereum blocks with quickblocks to a JSON file?

I am looking for how to export or save data from ethereum blocks in a json file using quickblocks.
3
votes
1answer
952 views

Raw transaction nonce won't increment until confirmation

I am building transactions manually and have been able to successfully create raw transactions which can be broadcasted to the network. My problem is, that while I can get a nonce from the web3....
3
votes
0answers
54 views

What RPC APIs are safe to expose?

What RPC APIs are safe to expose (make public, so accessible by anyone), and what are the unsafe ones, and why? I've read: are there "public" ethereum nodes? or any recommendations on ...
2
votes
1answer
303 views

Parity web3 access for another user account on same server?

I am following the instructions from the Parity github page: https://github.com/paritytech/parity/wiki/Basic-Usage Specifically: $ npm install web3 $ node > Web3 = require("web3") > web3 = ...
1
vote
1answer
246 views

Security and Geth RPC

Sorry just a little confused. If the geth rpc node needs to be running on the live server (say you deploy your dapp to the world), does that mean everyone has access (via the web) to modify the ...
2
votes
0answers
534 views

Geth connection rpc vs ws

where I can find same articles or materials to understand differences between rpc and ws connection over geth. From my point of view rpc is part of a websocket connection, so why I have to use ws ...
1
vote
1answer
987 views

How should I enable the api’s ‘personal’ and ‘admin’ over RPC on Azure ‘Ethereum Consortium Blockchain’

How should I enable the api’s ‘personal’ and ‘admin’ over RPC on Azure ‘Ethereum Consortium Blockchain’. Is there any way by which we get direct access to the VM console (Now we SSH on to the VM to ...
1
vote
0answers
269 views

Parity RPC Mode Compatible with Geth RPC?

I have a program interfacing with geth. But now I have to move to a new server, and geth is taking too long to re-sync. If I install Parity, will the program that interfaces with localhost:8545 work ...
0
votes
2answers
304 views

Easiest Framework to build a quick POC Daap

So I'm trying to build the most simple Daap to make a POC. I just want to register messages/strings on a block so that any given duplicate messages are ignored. I've done a lot of research but I'm ...
1
vote
1answer
473 views

go-ethereum rpc connection via http for native dapps

For native dapps we can establish an rcp connection over IPC using conn, err := rpc.NewIPCClient("/home/karalabe/.ethereum/testnet/geth.ipc") Now what if I want to establish an rpc connection over ...
2
votes
2answers
433 views

Deploying to rinkeby doesn't work

It seems I have a bit of trouble deploying a contract to testnet through infura this is my code: var Web3 = require('web3'); var web3 = new Web3(new Web3.providers.HttpProvider('https://rinkeby....