Jeff Garzik [ARCHIVE] on Nostr: 📅 Original date posted:2013-07-22 📝 Original message:URL: Adding an HTTP REST ...
📅 Original date posted:2013-07-22
📝 Original message:URL:
https://github.com/bitcoin/bitcoin/pull/2844Adding an HTTP REST API for bitcoind has been occasionally tossed
about as a useful thing. Such an API would essentially provide a
decentralized block explorer capability, enabling easy external access
to transaction/address/block indices that we maintain.
The first two implemented API calls are simple, returning a block or
TX given a simple query string based on block hash, e.g.
GET /rest/tx/TX-HASH
or
GET /rest/block/BLOCK-HASH
This can be easily accessed via command line cURL/wget utilities.
Output formats -- binary, hex or json -- may be selected via a
"bitcoin-format" header.
The general goal of the HTTP REST interface is to access
unauthenticated, public blockchain information. There is no plan to
add wallet interfacing/manipulation via this API.
--
Jeff Garzik
Senior Software Engineer and open source evangelist
BitPay, Inc.
https://bitpay.com/Published at
2023-06-07 15:04:55Event JSON
{
"id": "b941b96db0fa788075f9901af4704b19fdc8be1c70e821b6f47c281c090b900e",
"pubkey": "b25e10e25d470d9b215521b50da0dfe7a209bec7fedeb53860c3e180ffdc8c11",
"created_at": 1686150295,
"kind": 1,
"tags": [
[
"e",
"2548e3bbd5806f0a91f1440e5be19b1893f723d052860cba20b98f557d042316",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2013-07-22\n📝 Original message:URL: https://github.com/bitcoin/bitcoin/pull/2844\n\nAdding an HTTP REST API for bitcoind has been occasionally tossed\nabout as a useful thing. Such an API would essentially provide a\ndecentralized block explorer capability, enabling easy external access\nto transaction/address/block indices that we maintain.\n\nThe first two implemented API calls are simple, returning a block or\nTX given a simple query string based on block hash, e.g.\n\n GET /rest/tx/TX-HASH\nor\n GET /rest/block/BLOCK-HASH\n\nThis can be easily accessed via command line cURL/wget utilities.\nOutput formats -- binary, hex or json -- may be selected via a\n\"bitcoin-format\" header.\n\nThe general goal of the HTTP REST interface is to access\nunauthenticated, public blockchain information. There is no plan to\nadd wallet interfacing/manipulation via this API.\n\n-- \nJeff Garzik\nSenior Software Engineer and open source evangelist\nBitPay, Inc. https://bitpay.com/",
"sig": "249e6bee6b13ae04096d424020d63cdec11ccb66570666d98a9ecacfe876e3a76a0b7627936f6ddacd8998d58e7bb5a2a63c901f4cab1dcce3a4088961339975"
}