@@ -30,6 +30,8 @@ struct explore_methods
3030{
3131 static constexpr std::tuple methods
3232 {
33+ method<" configuration" , uint8_t , uint8_t >{ " version" , " media" },
34+
3335 method<" top" , uint8_t , uint8_t >{ " version" , " media" },
3436 method<" block" , uint8_t , uint8_t , nullable<system::hash_cptr>, nullable<uint32_t >, optional<true >>{ " version" , " media" , " hash" , " height" , " witness" },
3537 method<" block_header" , uint8_t , uint8_t , nullable<system::hash_cptr>, nullable<uint32_t >>{ " version" , " media" , " hash" , " height" },
@@ -70,37 +72,39 @@ struct explore_methods
7072
7173 // Derive this from above in c++26 using reflection.
7274
73- using top = at<0 >;
74-
75- using block = at<1 >;
76- using block_header = at<2 >;
77- using block_header_context = at<3 >;
78- using block_details = at<4 >;
79- using block_txs = at<5 >;
80- using block_filter = at<6 >;
81- using block_filter_hash = at<7 >;
82- using block_filter_header = at<8 >;
83- using block_tx = at<9 >;
84-
85- using tx = at<10 >;
86- using tx_header = at<11 >;
87- using tx_details = at<12 >;
88-
89- using inputs = at<13 >;
90- using input = at<14 >;
91- using input_script = at<15 >;
92- using input_witness = at<16 >;
93-
94- using outputs = at<17 >;
95- using output = at<18 >;
96- using output_script = at<19 >;
97- using output_spender = at<20 >;
98- using output_spenders = at<21 >;
99-
100- using address = at<22 >;
101- using address_confirmed = at<23 >;
102- using address_unconfirmed = at<24 >;
103- using address_balance = at<25 >;
75+ using configuration = at<0 >;
76+
77+ using top = at<1 >;
78+
79+ using block = at<2 >;
80+ using block_header = at<3 >;
81+ using block_header_context = at<4 >;
82+ using block_details = at<5 >;
83+ using block_txs = at<6 >;
84+ using block_filter = at<7 >;
85+ using block_filter_hash = at<8 >;
86+ using block_filter_header = at<9 >;
87+ using block_tx = at<10 >;
88+
89+ using tx = at<11 >;
90+ using tx_header = at<12 >;
91+ using tx_details = at<13 >;
92+
93+ using inputs = at<14 >;
94+ using input = at<15 >;
95+ using input_script = at<16 >;
96+ using input_witness = at<17 >;
97+
98+ using outputs = at<18 >;
99+ using output = at<19 >;
100+ using output_script = at<20 >;
101+ using output_spender = at<21 >;
102+ using output_spenders = at<22 >;
103+
104+ using address = at<23 >;
105+ using address_confirmed = at<24 >;
106+ using address_unconfirmed = at<25 >;
107+ using address_balance = at<26 >;
104108};
105109
106110// / ?format=data|text|json (via query string).
0 commit comments