Timeline for How can I detect which network I'm connected to?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 23, 2018 at 7:10 | comment | added | Tailer |
Sorry, but it was not clear at all. because Bitcoind chain is not something that you change regularly through an RPC command, so you would know which chain you're connected to by the way you've started it. bitcoind -testnet or bitcoind -regtest etc..
|
|
Apr 22, 2018 at 19:29 | comment | added | toddmo |
@Adam, I tagged it json-rpc . (anyway, bitwasp never had ValidateAddress in the Bitcoin class). The Bitcoin class name is used all over the place, in EasyBitcoin, etc. But you can keep it closed if you wish, since I have my answer.
|
|
Apr 22, 2018 at 19:19 | vote | accept | toddmo | ||
Apr 22, 2018 at 8:48 | comment | added | Raghav Sood |
getblockchaininfo is part of the standard rpc interface, so I suspect any library will support it by default. bitwasp-php seems to include it in its tests too.
|
|
Apr 22, 2018 at 8:37 | comment | added | Tailer | Seems to be that OP is asking about bitwasp-php library, | |
Apr 22, 2018 at 1:33 | history | answered | Raghav Sood | CC BY-SA 3.0 |