Questions tagged [rpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

eth_getBlockByNumber returning undefined

I have some JavaScript that's connecting to a private ethereum network via JSON-RPC. I am trying to extract the transaction hash of the blocks but am unable to do so. // BlockNumber clientNodeOne....
0
votes
0answers
20 views

PIVX fork CryptoDezire Coin SendRawTransaction not working

A CDZC coin basically fork of PIVX . I am trying to send coin via rpc calls. Successfuly created RawTxn, SignRawTxn but unable to SendRawTxn. `await rpc.listunspent().then(async r => { ...
0
votes
0answers
8 views

Why is geth RPC endpoint binding with all the interfaces?

I wish to run a private Ethereum network using geth. The machine I am running geth on is connected to Internet. geth is launched using the following command line: geth --datadir geth-data-dir --...
0
votes
1answer
36 views

Detect failed token transfer via RPC

It seems like Etherscan can detect failed token transfer even though the transaction itself is successful and the gas isn't used completely. Like in this transfer of Huobi Tokens Is there a way to ...
1
vote
2answers
97 views

How to check Ethereum smart contract info?

I want to know 3 things: Is an address a smart contract? Is this smart contract an ERC20 or ERC721 token? Is the Solidity code public?
0
votes
1answer
18 views

View sendTransaction implementation

I'd like to see code that implements getAccounts and sendTransaction in a provider. I tried digging into the Metamask source code and found the line where Metamask supplies the Web3 provider, but I ...
0
votes
1answer
46 views

Get the result of token transfer transaction in geth

There is a way to get the result of a token transfer operation in Parity https://ethereum.stackexchange.com/a/9009 Is there a way to do it in geth by RPC?
2
votes
0answers
37 views

Creating new accounts using `web3`

In the new version of web3.py, the personal.newAccount functionality has been retained only for the geth client. What is the right cross-client approach to creating new accounts? See v5 migration ...
1
vote
0answers
25 views

RPC command to list current nodes

I am using Parity and I want to see a list of the IP addresses of every node my node is talking to. I am sure I have done this before but I can't remember how. Please share the curl/RPC command to ...
2
votes
1answer
52 views

Ethereum wallets that support “Custom RPC URL” like Metamask

I'm running a private blockchain and I've been using Metamask connected to my custom RPC URL with no issues.. I'm curious if there's any other Ethereum wallet that let's you add and connect to a ...
2
votes
1answer
43 views

How does one retrieve revert/require error messages from RPC

In both of these questions, the user is asking if it's possible to get the error string from a revert or require. The answers say, basically, "Yes" and point to Truffle or other methods. VM Exception ...
0
votes
0answers
20 views

Why can’t light nodes broadcast transactions directly?

Everything I’ve read about Ethereum thus far seems to state that light nodes are incapable of broadcasting/relaying/etc. transactions themselves. It is also my understanding that light nodes have ...
0
votes
1answer
186 views

MetaMask - RPC Error: Error: WalletMiddleware - Invalid “from” address

I'm trying to create a simple Dapp (via tutorial) which would allow me to send Ether from sender to receiver (via a contract with an address that automatically approves the transaction). The truffle ...
1
vote
2answers
34 views

Is it possible to connect to public Ethereum like blockchain with Remix to deploy and view contracts?

I've tried to do so by specifying the web3 provider and the 8584 port but it gets stuck on every try. Is this possible? if so, is there another solution for that need?
1
vote
1answer
35 views

How do i create account remotely?

I have two servers, one for eth-node, one for web api and user db. I want to send request to create account from web server to eth server, but i see it can be created by running command like geth ...
0
votes
1answer
56 views

which port I use when I want to connect remix to my local quorum network?

I want to deploy a smart contract on my local network. I executed a local node via PRIVATE_CONFIG=ignore nohup geth --datadir ./Node1/new- node-1 --nodiscover --verbosity 5 --networkid ...
0
votes
2answers
69 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
86 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
26 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
62 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
23 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
21 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 ...
3
votes
2answers
1k 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
72 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
42 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
559 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
2answers
118 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
42 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
194 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
208 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
234 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
809 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
24 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
93 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
167 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
224 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
85 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
214 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
5answers
52 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
542 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
116 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
230 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
157 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
216 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
337 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
490 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
428 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
348 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
151 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 ...