-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to remote geth ip rpc #1
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First Test Trial:
|
First Trial complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Send Raw Transaction
Calcualte Gas Price from Ether
Gas to ether is determined by the miners
Go to ethstats.net
dynamic exchange rate of ether to gas....
how much gwei for that gasPrice...
21000 gas to execute a transaction....
Notes
--rpc
Good chance that
Unhandled rejection Error: Invalid JSON RPC response: ""
means need pass the --rpc flag to accept inbound RPC connection calls, which are sent by Web3.js, as well as the geth console if you run geth attach. Discussion: trufflesuite/truffle#492geth --rpc --rpccorsdomain "http://localhost:3000"
is for running a geth node locally and permitting the webapp you're running on :3000 to make connections to geth.
geth --rpc --rpccorsdomain "http://191.156.25.51:3000"
Is for running geth locally locally and permitting connection requests from IP
191.156.25.51
which is someone not in your physicall location (i.e. remote), and they're sending their requests from a node.js program running on their local :3000 port.Geth node accepts external connections on 30303? I read something about. Have remote guy try connecting to port 30303 if 8545 isn't working. Need better understand the 8545 vs 30303 usage.
Original port provided to me was for SSH, which is what I requested. But now I'm hitting 8545 so I can hit the geth node directly as opposed to ssh remote connection.
Avoid committing IP addresses to source code. Instead, share a
.env
file. App config is updated in this PR to use this.Todo
--rpcport <portNumber>
http://[hidden]:8545
--rpc
and have remote IP guy re-rungetBlock
script for getBlock(5000000). This allows the node to accept connections from other programs on the same localhost.--rpc --rpccorsdomain "http://191.156.25.51:3000"
as stated above in Notes, then have remote guy from that IP re-rungetBlock
script. Ask remote guy what their IP address is and use that. --rpccorsdomain allows the node to accept connections from other programs on a different IP altogther.Reference
JSON-RPC API
How-to-allow-remote-connections-to-ethereum-node?
How-can-i-expose-geths-rpc-server-to-external-connections?