Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] - support /block/current API endpoint #158

Open
dtfiedler opened this issue Apr 11, 2024 · 0 comments
Open

[FEAT] - support /block/current API endpoint #158

dtfiedler opened this issue Apr 11, 2024 · 0 comments

Comments

@dtfiedler
Copy link
Contributor

dtfiedler commented Apr 11, 2024

Arweave nodes support /block/current endpoint that returns all the relevant information about the most recently mined block. Support a matching endpoint in arlocal.

❯ curl https://arweave.net/block/current | jq '.'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  696k  100  696k    0     0  2469k      0 --:--:-- --:--:-- --:--:-- 2543k
{
  "chunk2_hash": "_zvxAE6Mk5plyLSxa-bCgxIdkvI7gSZcp1P25e_GUPg",
  "merkle_rebase_support_threshold": "151066495197430",
  "chunk_hash": "tZfB4ZWoDmzHYfWfM4uMdcCqbCzvW_VgV5pCtz95VFA",
  "block_time_history_hash": "cXXd_k2OCksx5LhLlWmsXBhpSymw0jlsyRd-0try9og",
  "recall_byte2": "22971810869392",
  "hash_preimage": "jGaTz7Ecsq-q9wyiQdKotHK8xiA_l5QL_vJD6hpEeBI",
  "recall_byte": "83325904906292",
  "reward": "727854128758",
  "previous_solution_hash": "____5-bzTEYy39vSrgGZxM8_KqsJ4EZtDCn2eSW_Vkg",
  "partition_number": 23,
  "nonce_limiter_info": {
    "output": "zMXgxuWTze62ctAZW_mEEIz5onBpx0nNV6OpslXlSuM",
    "global_step_number": 37904626,
    "seed": "BwUykJgPZx1LU9LzJI9xaWnsVxubJwad-7RrwfLY5VHirs5dEgieFmwnD3mXLhlo",
    "next_seed": "7SiN6MM3u80SmhaO9Cp7fiZCg9bRcg_7Z2md31iwdYl_MRBefOAWTMzT7nbyLNuz",
    "zone_upper_bound": 179453364838646,
    "next_zone_upper_bound": 179454890778870,
    "prev_output": "73UcbzsbyhJmlw9Oo906yCYw52Ii2fhNXattBkiUUaY",
    "last_step_checkpoints": [
      "zMXgxuWTze62ctAZW_mEEIz5onBpx0nNV6OpslXlSuM",
      "sbzVD_0bgM0HnGEN8153vGT_KzVbRjY1ku-6EMe2Cpk",
      "fDYcW1XfoVZavwrhBebJ_cNOZt-rXIvAAGBPqts2A8A",
      "fBp0MGDTroRXHBOuYsz32bDiskGdJjFKWStEedWag8M",
      "Y4GFuEdfoolm5fvelO6AsZ1t9VGPe-ZksQK-RcBVNGI",
      "DuB7gt_nnmlsTgizvg1YleZG3Vyb_OlCxbbI33VibuI",
      "wrwJjj1DQn_U3Nofn37cvXeXRc_3CZeSPjaeGqQP_3w",
      "gIUTneXVNPDA0FZUk7m7IrzNz9DFbC8XQ3kBvwWtbpw",
      "TXmdcBeCu0QA8Qf_4eTc6zTeeq-qCPrqEtovE0x_UsM",
      "oFwKRuNGNZBBvxz9qSCNP4veicYm-aBN_ueXvg6ejfs",
      "CvUpbKTtyNGqOqmlEhyGYw1JZnb0kfr3CCsOpAetjHU",
      "8Ewzxj3QB3ie8aEeuEhTqFu3OQV_67bzprSB5cZ4kvM",
      "ksiJIKgtcXDAj4T8SZBMucbvSnxKpsbFtyOqIe8KyqM",
      "6oAlK3_PG2CyDesLDkdCVwbzsIoFoFyA7ipQgZIi5DE",
      "HWlul30YrVZNYEpTDw3OYKqNSJNZDOMnI3ogCI3W5VQ",
      "LAEvzw86ob9VM4zEbQ-rpfl7sYmhrOMf8mIjLw-sECI",
      "GWBeL2nKSMFkexg8EJjzZApHtMcwkm0iNKdcH-GM-nY",
      "DB9hjOHjtLqSTuDpzAkjXv1HFawzmqigUGNsv2G6DDA",
      "1CV-Fh7FnR8WqLAOS_GwRxODJYRbX17XniUxEmH8F0Y",
      "A9SI8PuWNrlMtVbYAo7VrBCt1SWkg9TwAdvlV7vfYrM",
      "oKhAaCF8ueoySmYtTOl6cINZvq_yo0agE58Uv3iaXaE",
      "VRW9y2IYUo84zK_FNJXbO0Hc5G4VRI2kkCAY-fo6EHM",
      "4gXum_8h0IlXKm3nicadzWR8GKbV1WVEieh-DtOVZVQ",
      "aL5EYbbaAqxTgIREqgcWsKJXsETlmoF-PGKrfM3wKIQ",
      "g3Dl98iEe-MzJwT-0Bg1c5JuqdKls6_jraevhE_Z-AE"
    ],
    "checkpoints": [
      "zMXgxuWTze62ctAZW_mEEIz5onBpx0nNV6OpslXlSuM",
      "ojM25eP8QS7560wrQpUc0VA8pUlkYmJ-pvY3U3S4KRc",
      "AsHznud365BUefDrB_9fMwyHdz72R6dERp_sV6wjrTs",
      "iQB_5YnviH7GDWGDVTEO1erC_L1blPfxDLUmEZSzlFc",
      "kQQYhE5crzH_MvDKTC4pDJ0WOp0kdQIZx3tsRkUUd58",
      "rOjf6U2euwzvGVENcoydxOtCJLYqwA_UbXsjMam3mOk",
      "r7r-sEG0kZxcGYm6ft-gore2jwwD71o5pL--M0Zm0IQ",
      "z4y8paDGzhQD_khsLKq9L2t1HTF9JLJV3XHq3kUhR34",
      "FkCfbPAOQConJcFcNVfmcWfusHgd4J5hP6OdnpBL4g8",
      "u-ZhvgMlOcLevKgJ1ZwPWIsTgXlDcqiJvPxWaaapEqE",
      "bTTlHPO4go4Ve44tmc2WbLbPUUWvDik6qqhNLl1mNVY",
      "w5xzKKL5QuF7Z3LUUQL5oAcZKeOExnYXNAjPol8Xkbc",
      "zGYXr_ZpgFPzPmXzKZ7E6QhQAVsjpMoBoEk6T3oVZh0",
      "fhdl4kkohj-Hy0cyoUZXgRluRB9Ny9W06ETNvRaTSbA",
      "Te7V6FQNWTuuvXiSltfTxSCbKFkhzJTEpBeRaB6Qs6U",
      "-kDZiluJ5muy0YGrf-pDP2V9HK0ZF1FhEZw5yPnEiLU",
      "OgsJpWaP25Rc6u6nz2yAiP37z7nM0a_fYKrSP6GudVI",
      "i_AcpeiAQ6PH8X6A3s5qJVZljUjj3Op20Uo9nCOobt8",
      "wcZ-ZTObPVbKg00XkcxsNYCqiWzxrhMiVYiFtNA7byQ",
      "cMGBKroWmABzkho4oThpUJzDa8ndznSI0l2VH-zhDQo",
      "Mu8m7g-K4KtpnZNEtTLBk2evZucu9-kPU-AmxtRM0TA",
      "_7N-XrKDgNlycTVJDzzcEhYTIZWyKY-VeMSrbG-1rS4",
      "jupTZ5GaLf6e8VJmN_oHeHBwYPTi86oEZcdyY8euqOU",
      "qhi2JTax6ocy7a-1bG4SC6sfdfYA3T6Y4z-X7f63uhg",
      "deEo8XZcOg5xjUmbJ3GgKXG2NizU2x7Bgp2QGcNiD80",
      "IDpv70_P4xAmndoTpShuUt6Ww_3KScYhYLSqio32fpM",
      "HfbskI34BRlwC6nQCDSWLjjvP32n4ihFjnNx4fLSw-0",
      "y-cfMqDSVJ3wcGzJlw_E2nqSkW6dGotT2pKyCbUANLc",
      "eE27JHFREhnLFsczURUf80h0yXM3bfv3qlqh_RV4aQo",
      "If2rqbN_eDAY8RuieOfiCxYkr3WJJkumpBYrXgDiJlA",
      "6BjzaVX8PTkCv0sKsxZ0C-ecdW9n-yi2AR32IYEG0SM",
      "7HzDc-DL_CKxaGbg3G6XWd7rkz4eQEMJhtQkciteSAY",
      "sjAhl6nXnV3sT3upE2iJYffaoLigsz6jkyuNC3uAJmw",
      "1KNDs8z4ySQnq0VFXKgYV-qU4vYDPMPuzE4PItv5Wkk",
      "_fZ1SF4Ehz-1xCyzMsJyiFS6oUPVj5p_sWiN1nn2xnY",
      "BR29kQ6qX4n8QZ1yZwGsDk4Mu21_8y5w93MtFRHpPmo",
      "OZtjsKJxwrPqxewNCnHrlH25_rzCwtx7w4haepMP-3I",
      "OQiP-dSWjPYnV1HX_MJZvcXX6YDS0nzOQ2s01a8_Dig",
      "rergtu6JKvM_HEAWUzi1Siity5WmoZnKmgQlrCKkRR0",
      "HD50Xoc4AcAognybIDka2P3GX8OOUhvfrQ2AEZAGeoo",
      "I6cSRr4XxD8KKSZm6lxNpKE3BmlO9SPubnvZhdosD_Y",
      "14oaBcN2R0eoQTVYr53_bv6VTQGPhEIFYiSOSK_JA7c",
      "0Vtd8ZXReHcqwAlKWj8cemE6fhlJJ9SWpDtFRFcpRsw",
      "kONXiKst2bmUStXr1J99kKNvYUnJVuNcdT9tc6mJsYc",
      "qCTaXg4yhfO8LsvphKvpbkOPsKuHFwb2AEyi3YJcTsU",
      "ZPb7_ii0fQgpRICRpPe4lkPGbH74xSTzsebiLlJCVPM",
      "7O0uPLTPunhgb_9U5Dpi3lwSJI1ZYNXYu0iOFa3f0HI",
      "tRnt183R9TieGFm0rMMfpToX_wSfBImlvSiglTZc0XY",
      "lYtFwBdVi0RraF2gAvoOxdWQwayDltQXQUGrndGynMY",
      "Wwml39wGLrN_A2tlv7yeSgUVC0l6BzCbkuFRemqJZs8",
      "1Q1Dkv6nztXd92ljPD99794rbDgdKsy0e8_69nXBNc0",
      "blUFaVkb1fLAHqU-wqT0h99Qon9GiS5Sh-FszvflIS0",
      "nOKVJ0wvfmc-9H7zfYOAYHbMG04En_kJyCxREDMygs0",
      "46FscWmgq0Q2VfbHNJR8XpqkVoVG3Vx30rBZtz6CZUM",
      "dLZ0SufdCTX7OlUKNZIgC81rXFtfCZrc4QaGsiwX9T8",
      "uxOI1-sh3i5a9NQ4RwPOI5l9lfotSv-3KVj6tvXjlOc",
      "WKv6fGMUC21yHwRISV6ZEZbZ2-U6Lpvdkzwg8rpRlBs",
      "BQiVS1SudL4xAiK3sC84oEaf718qKAEWlKCyVHI1Zr4",
      "S47aTf8CteYLaj0GfE8KKo5-z53eM5_RnMGaODgKfLU",
      "csZp_rvbJ1g5Wo6fnUGN59mYXjwD_m0v8W6QvLkIXqA",
      "crCwUsTJwbhUy9oCpver50lvDd9dPL_aBVVlle-BvVY",
      "5S_HSJlqQH3r65fwW1acUVBwjpneJPTPZduYzRkny3w",
      "9kEnS6WaKauFjRi073Ce6cjG19FgJwznQ8AV0OR1uXA",
      "XlRGh99G4tlkqGtG-JUY7i04ptmct8U7GyqJ-0Mj9LI",
      "LOsgJrGOtbKvr7_Xwb32wVG-UpNf1bK0zB8BKWrTIGs",
      "JHSaKeorgc4jpM_K33rH_Ke8nE_TPXxe03y7V6vzNhg",
      "cLS9RBfA1wFDExcujQVtNtSOzvhVl7VsNQcTRTXCdNQ",
      "zuum-mWVMQ2g1jJs6PrYQczou0-EAgb-fO-G5RLVH10",
      "EokP80GmxGE9Q_O-zOSG7aaTTCk_DprVlgDxpr71s7I",
      "9G88qKbseJJTOBPI72lu2mEzhhvx76rQCCKmQ8FfabQ",
      "bmaJAowTBhdZJMr6McQDnBt_HPas5m5ivR61FtLIXnQ",
      "qs43PX4BJywv-ZnMw49z8C6Yv2RYY5cwgC17CVGQ0MA",
      "JJyvP9r3t5NlEDCwJzeQcNebk2cWMx1n0d9UESd2Ugo",
      "s4X6cF6FMqOT8C64dy3LOiZdK85kCwqcUajCXvfszi0",
      "xlwjrXHgZQFD1WPDOYf7BYxtOPB5wLc37PKyhUms-5s",
      "EPNPAv6_2KdWBodSC6WjqjArcZ7dZb26bL-GahegdEE",
      "VHIWRET8hf99MKpNkRW-5i3PXPVrF5xmPu1CQUyfntM",
      "OK7wsWDD49tVXub5cB9038Ezwkw-6jwL4_RJ_G_2bLs",
      "JSHeJIScqyt2oCKJMnVNcB-IF7erzmAkh3OpRYK1h18",
      "vLZwuJiyHXfQwwxjF2WFd6YmMyJAq0nyZPx3vZVJ3Q4",
      "Ji6YWKJ7bBmuQhlSfKUcGGVnWdzUFKQXx4fgDumHSF8",
      "-f_y4zwmlsTAVu31WmcM1iZcLkGNbC-Mbn2BMhikoG8",
      "G_FeRdUmsQFOnMV49pfQCmgGEJoVjlje6FLNbEKttbs",
      "6Cq0DpckmpKyWo_icIERlC05y5egoDI07msvJuJX2LE",
      "t14kPJIGDLloQZjBNz9KMj5IWtLB383vS9ItxMQ_1MQ",
      "b8AX9rjK2-b9ifSA2rWSoJn-FsJxf0-Qb6hLwH3nWvs",
      "Pz8jvo9ayrXDlqNjoJIMzvImVmCof-85Q6xIll01KuQ",
      "goYwlhMLmJHtKTHejkOHehQ9F-s6jq6ftm6GI98piGc",
      "nxprzqKpWKR-dQCMn_XjjGjICxF2Bnc8qbHMrkViNLA",
      "sJgGBu4bYO4rYaH3X5JeXJaLv8r_8TaDRn7l5wtySj0",
      "8UlxPgk9K1n73PTUw-VxXw2nu3sgF1pu7J8nyVFkDzI",
      "icyPemiuBm6lNTU_oz1uAUFprnnqkyB4uK3uACsfHvs",
      "jy-ixm9KHprCna3oOAiNIX-jWfQpgNH2HhSCukZQXYc",
      "Z56jZ5IGCIsHofhY1YcJyyzHG1oABxrg66GXhsObTog",
      "zv4A0ZxEbqSpvCnXhkvfMFvH9EUM9WR57COJ5RR0Wx4",
      "uPGjDfSFj-lXwtZrWjttZ0awTWTt2eKECCdbnxDqurM",
      "X1IQ3sexmn0SFPBWAfuQ-pHXy5GGc3zHUxTxUEFNbyo",
      "sIRy-Y5YD-JFTj2EiNpQFi5VLXy9VXloLGndU47E32s",
      "0L5_LXU54eFZgOxCuV5GToLC5bSEUtNsSOb-Z5UDjyQ",
      "YvejBm5sIPUFDuaBkjnFW9FfxthbuPqBGoNTweG_ZcA",
      "B9OVaOz9bMseCjg5Z7q4TfCTvsfJBWQyW0aTcsOYpZk",
      "AvhkALimm4r4YRV3URU8HFOHqjjnFf3pd3JAvZYA4L0",
      "nlHJJt4PKOgW1B_-cp8mIYkETasESBCNdMZ7VepOoWs",
      "HiKQqiwA7BmQNHw2i0DlZd5bomrV6OeygtdrsOGcvpw",
      "GQYeV4ZCzmceLh13orf4vZfgVv6IhmTwBzgpVs6g00E",
      "J8pFzXi-9WZVizOo-JYrsXvhqSwBzjyJJcIZ24CLdZY",
      "9uz3-7rHKAgzWNWmO-uKYxQhfqMkmo2Wjnox-KeZBUQ",
      "R32LGBNWVm2pr-LqtLKqmgrb00cAmKHzPeAlDcP7M28",
      "oWq2D12NUDWmSRHu1vdz2YIHhex0Bid0D--_jno_0U4",
      "5OxZ4vCurKPoRCjBLBbKK11T8fqN1AmmK_wzphbapxY",
      "QEGYuZ3t8DaK3b4Lu77bUpOS08blcrrSyqLV_ui_WuE",
      "zJqFTSbSDEAZEdjOfPbOUYzjP6MqK3cLMNGHPzCNhAw",
      "3tq7KcCHDF3AHAxc-0MyhdB7E0AYNJ61Mob9-fjWXXM",
      "RssL8JpSuWXt6fY6wtdgxDLwd_NdlK08io2n_Bq5JGw",
      "Q_MEm2gBkG8bOzKsCYL1UOK8z6HLsULO5UsCQCCOC_0",
      "ZVzyw5YXKUqL7obQADN7hkFmDj6vn9UOUO-YEQLKlsk",
      "kdPbKbA6RFICUvRdxSZ-26przM0HR1oyAu-L83-UJ0M",
      "h1ghza9AJFcS_tLmb2KLdd8VJ_jIgTZ86yIWqn4nYXU",
      "OuVNem1IdfseCeKNy15GKEbLKBmVJnII5VA47JOZtGo",
      "z7EQ0kbMPqueoEwDXRY2IqyM7JwkOO_22IN0mUWtY88",
      "TtNCG2p597MLU6_gII1EBHLOPQFZMP-HkjcDPwfvGlA",
      "3JuxOyazgeBr6J69B7Xyn83QTSy03ZiBqwbfMnuNYrQ"
    ],
    "vdf_difficulty": "679425",
    "next_vdf_difficulty": "679425"
  },
  "poa2": {
    "option": "1",
    "tx_path": "..."
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant