TrueBlocks / trueblocks-core

The main repository for the TrueBlocks system
https://trueblocks.io
GNU General Public License v3.0
1.05k stars 197 forks source link

Let user set RPCENDPOINT on the command line #970

Closed wildmolasses closed 5 years ago

wildmolasses commented 5 years ago

Similar to how we set FALLBACK=infura, a user could set RPCENDPOINT=http://localhost:5151

Then users could hit any RPC url they'd like.

e.g.

RPCENDPOINT=http://localhost:5151 getBlock 1010101

RPCENDPOINT=http://mainnet.infura.io getBlock 1010101

Does this obviate the need for a separate FALLBACK variable?

Follows from #966

Relates to issues with hardcoded infura url: #921, #700, #554

Perhaps relates to #357.

tjayrush commented 5 years ago

Tx-Providers link has a bunch of related issues.

tjayrush commented 5 years ago

Let's call this Provider instead of RPCENDPOINT to more closely mimic web3.js: https://web3js.readthedocs.io/en/1.0/web3.html#setprovider

tjayrush commented 5 years ago

Closing this in lieu of issue #977