Jorge Timón [ARCHIVE] on Nostr: 📅 Original date posted:2015-08-29 📝 Original message:On Sat, Aug 29, 2015 at ...
📅 Original date posted:2015-08-29
📝 Original message:On Sat, Aug 29, 2015 at 9:01 PM, Matt Whitlock via bitcoin-dev
<bitcoin-dev at lists.linuxfoundation.org> wrote:
> That's still not right, since "mainnet" and "testnet" are not host names.
>
> You'd have to do something like:
>
> blockchain:?network=testnet&txid=3b95a766d7a99b87188d6875c8484cb2b310b78459b7816d4dfc3f0f7e04281a
I would really prefer chain=<chainID> over network=<chainPetnameStr>
By chainID I mean the hash of the genesis block, see
https://github.com/jtimon/bitcoin/commit/3191d5e8e75687a27cf466b7a4c70bdc04809d39I'm completely fine with doing that using an optional parameter (for
backwards compatibility).
I agree with Andreas Schildbach that respecting the most commonly used
schemes is desirable.
So my preference would be:
/tx/3b95a766d7a99b87188d6875c8484cb2b310b78459b7816d4dfc3f0f7e04281a?chain=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
(a tx in testnet)
/block/00000000000000000b0d504d142ac8bdd1a2721d19f423a8146d0d6de882167b?chain=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
(a block in bitcoin's mainnet)
Published at
2023-06-07 17:38:28Event JSON
{
"id": "1152a0776deccb22eec3176ec1e95cc350035964280f7dac4b014463bf472447",
"pubkey": "498a711971f8a0194289aee037a4c481a99e731b5151724064973cc0e0b27c84",
"created_at": 1686159508,
"kind": 1,
"tags": [
[
"e",
"7cc8d14173d1f56e3744d772d4d70152d07a99a0b5f93142926f4b2f8204351e",
"",
"root"
],
[
"e",
"721aebc937c07eab2a7aa0f487c6a588f4cfbccd5be2dba357f3abcc9cc8bae9",
"",
"reply"
],
[
"p",
"f00d0858b09287e941ccbc491567cc70bdbc62d714628b167c1b76e7fef04d91"
]
],
"content": "📅 Original date posted:2015-08-29\n📝 Original message:On Sat, Aug 29, 2015 at 9:01 PM, Matt Whitlock via bitcoin-dev\n\u003cbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\u003e That's still not right, since \"mainnet\" and \"testnet\" are not host names.\n\u003e\n\u003e You'd have to do something like:\n\u003e\n\u003e blockchain:?network=testnet\u0026txid=3b95a766d7a99b87188d6875c8484cb2b310b78459b7816d4dfc3f0f7e04281a\n\nI would really prefer chain=\u003cchainID\u003e over network=\u003cchainPetnameStr\u003e\nBy chainID I mean the hash of the genesis block, see\nhttps://github.com/jtimon/bitcoin/commit/3191d5e8e75687a27cf466b7a4c70bdc04809d39\nI'm completely fine with doing that using an optional parameter (for\nbackwards compatibility).\n\nI agree with Andreas Schildbach that respecting the most commonly used\nschemes is desirable.\nSo my preference would be:\n\n/tx/3b95a766d7a99b87188d6875c8484cb2b310b78459b7816d4dfc3f0f7e04281a?chain=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943\n\n(a tx in testnet)\n\n/block/00000000000000000b0d504d142ac8bdd1a2721d19f423a8146d0d6de882167b?chain=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f\n\n(a block in bitcoin's mainnet)",
"sig": "ae63e8c16b5fd38401d35c46e62faf96a65b45b2c496565d384e26ffc651b554642f6e10d2a3d974a9282e51622d26a6941201aeab36a2a9af79e56690b65623"
}