accumulate-sdk 2.1.0

Accumulate Rust SDK (V2/V3 unified) with DevNet-first flows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
//! GENERATED FILE - DO NOT EDIT
//! Source: internal/api/v2/methods.yml
//! Generated: 2025-10-04 03:26:52

#![allow(missing_docs)]

use serde::{Serialize, Deserialize};
use crate::errors::Error;
use async_trait::async_trait;

// AccumulateRpc trait for transport abstraction
#[async_trait]
pub trait AccumulateRpc {
    async fn rpc_call<TParams: Serialize + Send + Sync, TResult: for<'de> Deserialize<'de>>(
        &self, method: &str, params: &TParams
    ) -> Result<TResult, Error>;
}

// Generic client wrapper
#[derive(Debug, Clone)]
pub struct AccumulateClient<C> {
    pub transport: C,
}

impl<C> AccumulateClient<C> {
    pub fn new(transport: C) -> Self {
        Self { transport }
    }
}

// Parameter structures
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct StatusParams {
    // No parameters
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VersionParams {
    // No parameters
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DescribeParams {
    // No parameters
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MetricsParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FaucetParams {
    pub url: String,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryDirectoryParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryTxParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryTxLocalParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryTxHistoryParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryDataParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryDataSetParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryKeyPageIndexParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryMinorBlocksParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryMajorBlocksParams {
    pub url: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<serde_json::Value>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QuerySynthParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteDirectParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteLocalParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateAdiParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateIdentityParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateDataAccountParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateKeyBookParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateKeyPageParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateTokenParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateTokenAccountParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteSendTokensParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteAddCreditsParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteUpdateKeyPageParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteUpdateKeyParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteWriteDataParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteIssueTokensParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteWriteDataToParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteBurnTokensParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteUpdateAccountAuthParams {
    #[serde(flatten)]
    pub params: serde_json::Value,
}

// Result structures
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct StatusResponse {
    pub ok: bool,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub last_block_time: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub version: Option<String>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VersionResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DescribeResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MetricsResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FaucetResponse {
    pub transaction_hash: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub simple_hash: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub code: Option<u32>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub message: Option<String>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryDirectoryResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryTxResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryTxLocalResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryTxHistoryResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryDataResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryDataSetResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryKeyPageIndexResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryMinorBlocksResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueryMajorBlocksResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QuerySynthResponse {
    #[serde(flatten)]
    pub data: serde_json::Value,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteResponse {
    pub transaction_hash: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub simple_hash: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub code: Option<u32>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub message: Option<String>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteDirectResponse {
    pub transaction_hash: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub simple_hash: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub code: Option<u32>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub message: Option<String>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteLocalResponse {
    pub transaction_hash: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub simple_hash: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub code: Option<u32>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub message: Option<String>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateAdiResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateIdentityResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateDataAccountResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateKeyBookResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateKeyPageResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateTokenResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteCreateTokenAccountResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteSendTokensResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteAddCreditsResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteUpdateKeyPageResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteUpdateKeyResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteWriteDataResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteIssueTokensResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteWriteDataToResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteBurnTokensResponse {
    // No result data
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExecuteUpdateAccountAuthResponse {
    // No result data
}

// Client implementation with strongly-typed methods
impl<C: AccumulateRpc + Send + Sync> AccumulateClient<C> {
    pub async fn status(&self, params: StatusParams) -> Result<StatusResponse, Error> {
        self.transport.rpc_call("status", &params).await
    }

    pub async fn version(&self, params: VersionParams) -> Result<VersionResponse, Error> {
        self.transport.rpc_call("version", &params).await
    }

    pub async fn describe(&self, params: DescribeParams) -> Result<DescribeResponse, Error> {
        self.transport.rpc_call("describe", &params).await
    }

    pub async fn metrics(&self, params: MetricsParams) -> Result<MetricsResponse, Error> {
        self.transport.rpc_call("metrics", &params).await
    }

    pub async fn faucet(&self, params: FaucetParams) -> Result<FaucetResponse, Error> {
        self.transport.rpc_call("faucet", &params).await
    }

    pub async fn query(&self, params: QueryParams) -> Result<QueryResponse, Error> {
        self.transport.rpc_call("query", &params).await
    }

    pub async fn query_directory(&self, params: QueryDirectoryParams) -> Result<QueryDirectoryResponse, Error> {
        self.transport.rpc_call("query-directory", &params).await
    }

    pub async fn query_tx(&self, params: QueryTxParams) -> Result<QueryTxResponse, Error> {
        self.transport.rpc_call("query-tx", &params).await
    }

    pub async fn query_tx_local(&self, params: QueryTxLocalParams) -> Result<QueryTxLocalResponse, Error> {
        self.transport.rpc_call("query-tx-local", &params).await
    }

    pub async fn query_tx_history(&self, params: QueryTxHistoryParams) -> Result<QueryTxHistoryResponse, Error> {
        self.transport.rpc_call("query-tx-history", &params).await
    }

    pub async fn query_data(&self, params: QueryDataParams) -> Result<QueryDataResponse, Error> {
        self.transport.rpc_call("query-data", &params).await
    }

    pub async fn query_data_set(&self, params: QueryDataSetParams) -> Result<QueryDataSetResponse, Error> {
        self.transport.rpc_call("query-data-set", &params).await
    }

    pub async fn query_key_page_index(&self, params: QueryKeyPageIndexParams) -> Result<QueryKeyPageIndexResponse, Error> {
        self.transport.rpc_call("query-key-index", &params).await
    }

    pub async fn query_minor_blocks(&self, params: QueryMinorBlocksParams) -> Result<QueryMinorBlocksResponse, Error> {
        self.transport.rpc_call("query-minor-blocks", &params).await
    }

    pub async fn query_major_blocks(&self, params: QueryMajorBlocksParams) -> Result<QueryMajorBlocksResponse, Error> {
        self.transport.rpc_call("query-major-blocks", &params).await
    }

    pub async fn query_synth(&self, params: QuerySynthParams) -> Result<QuerySynthResponse, Error> {
        self.transport.rpc_call("query-synth", &params).await
    }

    pub async fn execute(&self, params: ExecuteParams) -> Result<ExecuteResponse, Error> {
        self.transport.rpc_call("execute", &params).await
    }

    pub async fn execute_direct(&self, params: ExecuteDirectParams) -> Result<ExecuteDirectResponse, Error> {
        self.transport.rpc_call("execute-direct", &params).await
    }

    pub async fn execute_local(&self, params: ExecuteLocalParams) -> Result<ExecuteLocalResponse, Error> {
        self.transport.rpc_call("execute-local", &params).await
    }

    pub async fn execute_create_adi(&self, params: ExecuteCreateAdiParams) -> Result<ExecuteCreateAdiResponse, Error> {
        self.transport.rpc_call("create-adi", &params).await
    }

    pub async fn execute_create_identity(&self, params: ExecuteCreateIdentityParams) -> Result<ExecuteCreateIdentityResponse, Error> {
        self.transport.rpc_call("create-identity", &params).await
    }

    pub async fn execute_create_data_account(&self, params: ExecuteCreateDataAccountParams) -> Result<ExecuteCreateDataAccountResponse, Error> {
        self.transport.rpc_call("create-data-account", &params).await
    }

    pub async fn execute_create_key_book(&self, params: ExecuteCreateKeyBookParams) -> Result<ExecuteCreateKeyBookResponse, Error> {
        self.transport.rpc_call("create-key-book", &params).await
    }

    pub async fn execute_create_key_page(&self, params: ExecuteCreateKeyPageParams) -> Result<ExecuteCreateKeyPageResponse, Error> {
        self.transport.rpc_call("create-key-page", &params).await
    }

    pub async fn execute_create_token(&self, params: ExecuteCreateTokenParams) -> Result<ExecuteCreateTokenResponse, Error> {
        self.transport.rpc_call("create-token", &params).await
    }

    pub async fn execute_create_token_account(&self, params: ExecuteCreateTokenAccountParams) -> Result<ExecuteCreateTokenAccountResponse, Error> {
        self.transport.rpc_call("create-token-account", &params).await
    }

    pub async fn execute_send_tokens(&self, params: ExecuteSendTokensParams) -> Result<ExecuteSendTokensResponse, Error> {
        self.transport.rpc_call("send-tokens", &params).await
    }

    pub async fn execute_add_credits(&self, params: ExecuteAddCreditsParams) -> Result<ExecuteAddCreditsResponse, Error> {
        self.transport.rpc_call("add-credits", &params).await
    }

    pub async fn execute_update_key_page(&self, params: ExecuteUpdateKeyPageParams) -> Result<ExecuteUpdateKeyPageResponse, Error> {
        self.transport.rpc_call("update-key-page", &params).await
    }

    pub async fn execute_update_key(&self, params: ExecuteUpdateKeyParams) -> Result<ExecuteUpdateKeyResponse, Error> {
        self.transport.rpc_call("update-key", &params).await
    }

    pub async fn execute_write_data(&self, params: ExecuteWriteDataParams) -> Result<ExecuteWriteDataResponse, Error> {
        self.transport.rpc_call("write-data", &params).await
    }

    pub async fn execute_issue_tokens(&self, params: ExecuteIssueTokensParams) -> Result<ExecuteIssueTokensResponse, Error> {
        self.transport.rpc_call("issue-tokens", &params).await
    }

    pub async fn execute_write_data_to(&self, params: ExecuteWriteDataToParams) -> Result<ExecuteWriteDataToResponse, Error> {
        self.transport.rpc_call("write-data-to", &params).await
    }

    pub async fn execute_burn_tokens(&self, params: ExecuteBurnTokensParams) -> Result<ExecuteBurnTokensResponse, Error> {
        self.transport.rpc_call("burn-tokens", &params).await
    }

    pub async fn execute_update_account_auth(&self, params: ExecuteUpdateAccountAuthParams) -> Result<ExecuteUpdateAccountAuthResponse, Error> {
        self.transport.rpc_call("update-account-auth", &params).await
    }
}

pub fn __minimal_pair_for_test(method_name: &str) -> Option<(serde_json::Value, serde_json::Value)> {
    use serde_json::json;
    match method_name {
        "status" => Some((json!({}), json!({"ok": true}))),
        "version" => Some((json!({}), json!({"data": {}}))),
        "describe" => Some((json!({}), json!({"data": {}}))),
        "metrics" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "faucet" => Some((json!({"url": "acc://test.acme"}), json!({"transactionHash": "deadbeef"}))),
        "query" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-directory" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-tx" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-tx-local" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-tx-history" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-data" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-data-set" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-key-index" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-minor-blocks" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-major-blocks" => Some((json!({"url": "acc://test.acme"}), json!({"data": {}}))),
        "query-synth" => Some((json!({}), json!({"data": {}}))),
        "execute" => Some((json!({}), json!({"transactionHash": "deadbeef"}))),
        "execute-direct" => Some((json!({}), json!({"transactionHash": "deadbeef"}))),
        "execute-local" => Some((json!({}), json!({"transactionHash": "deadbeef"}))),
        "create-adi" => Some((json!({}), json!({"data": {}}))),
        "create-identity" => Some((json!({}), json!({"data": {}}))),
        "create-data-account" => Some((json!({}), json!({"data": {}}))),
        "create-key-book" => Some((json!({}), json!({"data": {}}))),
        "create-key-page" => Some((json!({}), json!({"data": {}}))),
        "create-token" => Some((json!({}), json!({"data": {}}))),
        "create-token-account" => Some((json!({}), json!({"data": {}}))),
        "send-tokens" => Some((json!({}), json!({"data": {}}))),
        "add-credits" => Some((json!({}), json!({"data": {}}))),
        "update-key-page" => Some((json!({}), json!({"data": {}}))),
        "update-key" => Some((json!({}), json!({"data": {}}))),
        "write-data" => Some((json!({}), json!({"data": {}}))),
        "issue-tokens" => Some((json!({}), json!({"data": {}}))),
        "write-data-to" => Some((json!({}), json!({"data": {}}))),
        "burn-tokens" => Some((json!({}), json!({"data": {}}))),
        "update-account-auth" => Some((json!({}), json!({"data": {}}))),
        _ => None,
    }
}