{"id":418,"date":"2023-12-22T09:51:29","date_gmt":"2023-12-22T09:51:29","guid":{"rendered":"http:\/\/10.0.1.147\/?page_id=41"},"modified":"2024-07-30T13:16:02","modified_gmt":"2024-07-30T13:16:02","slug":"developers-hc-net-api-all-ledgers","status":"publish","type":"page","link":"https:\/\/www.hashcashconsultants.com\/developers-hc-net-api-all-ledgers\/","title":{"rendered":"Developers HC Net API All Ledgers"},"content":{"rendered":"
This endpoint represents all ledgers<\/a>. This endpoint can also be used in streaming<\/a> mode so it is possible to use it to get notifications as ledgers are closed by the HC Net. If called in streaming mode aurora will start at the earliest known ledger unless a cursor is set. In that case it will start from the cursor. You can also set cursor value to now to only stream ledgers created since your request time.<\/p>\n GET \/ledgers{?cursor,limit,order}<\/p>\n Arguments<\/strong><\/p>\n This endpoint responds with a list of ledgers. See ledger resource for reference.<\/p>\n Example Streaming Event<\/p>\n {<\/p>\n “_links” <\/span> : {<\/p>\n “effects” <\/span> : {<\/p>\n “href”<\/span> : “\/ledgers\/69859\/effects\/{?cursor,limit,order}”<\/span><\/p>\n “templated” <\/span> : true <\/span><\/p>\n },<\/p>\n “operations” <\/span> : {<\/p>\n “href”<\/span> : “\/ledgers\/69859\/operations\/{?cursor,limit,order}”<\/span><\/p>\n “templated” <\/span> : true <\/span><\/p>\n },<\/p>\n “self” <\/span> : {<\/p>\n “href” <\/span> : “\/ledgers\/69859” <\/span><\/p>\n },<\/p>\n “transactions” <\/span> : {<\/p>\n “href”<\/span> : “\/ledgers\/69859\/transactions\/{?cursor,limit,order}”<\/span><\/p>\n “templated” <\/span> : true <\/span><\/p>\n }<\/p>\n },<\/p>\n “id” <\/span> : “4db1e4f145e9ee75162040d26284795e0697e2e84084624e7c6c723ebbf80118” <\/span>,<\/p>\n “paging_token” <\/span> : “300042120331264” <\/span>,<\/p>\n “hash” <\/span> : “4db1e4f145e9ee75162040d26284795e0697e2e84084624e7c6c723ebbf80118” <\/span>,<\/p>\n “prev_hash” <\/span> : “4b0b8bace3b2438b2404776ce57643966855487ba6384724a3c664c7aa4cd9e4” <\/span>,<\/p>\n “sequence” <\/span> : 69859 <\/span>,<\/p>\n “transaction_count” <\/span> : 0 <\/span>,<\/p>\n “operation_count” <\/span> : 0 <\/span>,<\/p>\n “closed_at” <\/span> : “2015-07-20T15:51:52Z” <\/span>,<\/p>\n “total_coins” <\/span> : “100000000000.0000000” <\/span>,<\/p>\n “fee_pool” <\/span> : “0.0025600” <\/span>,<\/p>\n “base_fee_in_jots” <\/span> : 100 <\/span>,<\/p>\n “base_reserve_in_jots” <\/span> : 100000000 <\/span>,<\/p>\n “max_tx_set_size” <\/span> : 50 <\/span><\/p>\n }<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":" HC NET APIs > End Points > All Ledgers All Ledgers All Ledgers This endpoint represents all ledgers. This endpoint can also be used in streaming mode so it is possible to use it to get notifications as ledgers are closed by the HC Net. If called in streaming mode aurora will start at the […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-developers-hc-net-api-all-ledgers.php","meta":{"footnotes":""},"class_list":["post-418","page","type-page","status-publish","hentry"],"yoast_head":"\nRequest:-<\/h5>\n
\n\n
\n \nName<\/th>\n Notes<\/th>\n Description<\/th>\n Example<\/th>\n<\/tr>\n<\/thead>\n \n ?cursor<\/td>\n optional, default null<\/td>\n A paging token, specifying where to start returning records from. When streaming this can be set to now to stream object created since your request time.<\/td>\n 12884905984<\/td>\n<\/tr>\n \n ?order<\/td>\n optional, string, default asc<\/td>\n The order in which to return rows, \u201casc\u201d or \u201cdesc\u201d.<\/td>\n asc<\/td>\n<\/tr>\n \n ?limit<\/td>\n optional, number, default 10<\/td>\n Maximum number of records to return.<\/td>\n 200<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n Response<\/h5>\n