dogecoin-core-trpc-api 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -179,6 +179,82 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
179
179
  };
180
180
  meta: object;
181
181
  }>;
182
+ getBlockHeader: _trpc_server.TRPCQueryProcedure<{
183
+ input: {
184
+ requestId: string | null;
185
+ blockhash: string;
186
+ verbose?: boolean | undefined;
187
+ };
188
+ output: {
189
+ id: string | null;
190
+ error: {
191
+ message: string;
192
+ } | null;
193
+ result: string | {
194
+ hash: string;
195
+ confirmations: number;
196
+ height: number;
197
+ version: number;
198
+ merkleroot: string;
199
+ time: number;
200
+ nonce: number;
201
+ bits: string;
202
+ difficulty: number;
203
+ versionHex?: string | undefined;
204
+ mediantime?: number | undefined;
205
+ chainwork?: string | undefined;
206
+ previousblockhash?: string | undefined;
207
+ nextblockhash?: string | undefined;
208
+ };
209
+ };
210
+ meta: object;
211
+ }>;
212
+ getTxOut: _trpc_server.TRPCQueryProcedure<{
213
+ input: {
214
+ requestId: string | null;
215
+ txid: string;
216
+ n: number;
217
+ include_mempool?: boolean | undefined;
218
+ };
219
+ output: {
220
+ id: string | null;
221
+ error: {
222
+ message: string;
223
+ } | null;
224
+ result: {
225
+ bestblock: string;
226
+ confirmations: number;
227
+ value: number;
228
+ scriptPubKey: {
229
+ asm: string;
230
+ hex: string;
231
+ type: string;
232
+ reqSigs?: number | undefined;
233
+ addresses?: string[] | undefined;
234
+ };
235
+ coinbase: boolean;
236
+ } | null;
237
+ };
238
+ meta: object;
239
+ }>;
240
+ getChainTips: _trpc_server.TRPCQueryProcedure<{
241
+ input: {
242
+ requestId: string | null;
243
+ };
244
+ output: {
245
+ id: string | null;
246
+ error: {
247
+ message: string;
248
+ } | null;
249
+ result: {
250
+ height: number;
251
+ hash: string;
252
+ branchlen: number;
253
+ status: string;
254
+ }[];
255
+ };
256
+ meta: object;
257
+ }>;
182
258
  getRawMempool: _trpc_server.TRPCQueryProcedure<{
183
259
  input: {
184
260
  requestId: string | null;
@@ -221,6 +297,51 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
221
297
  };
222
298
  meta: object;
223
299
  }>;
300
+ getMempoolEntry: _trpc_server.TRPCQueryProcedure<{
301
+ input: {
302
+ requestId: string | null;
303
+ txid: string;
304
+ };
305
+ output: Record<string, unknown> | {
306
+ id: string | number | null;
307
+ error: {
308
+ message: string;
309
+ code?: number | undefined;
310
+ } | null;
311
+ result: Record<string, unknown> | null;
312
+ };
313
+ meta: object;
314
+ }>;
315
+ getMempoolAncestors: _trpc_server.TRPCQueryProcedure<{
316
+ input: {
317
+ requestId: string | null;
318
+ txid: string;
319
+ verbose?: boolean | undefined;
320
+ };
321
+ output: {
322
+ id: string | null;
323
+ error: {
324
+ message: string;
325
+ } | null;
326
+ result: string[] | Record<string, Record<string, unknown>>;
327
+ };
328
+ meta: object;
329
+ }>;
330
+ getMempoolDescendants: _trpc_server.TRPCQueryProcedure<{
331
+ input: {
332
+ requestId: string | null;
333
+ txid: string;
334
+ verbose?: boolean | undefined;
335
+ };
336
+ output: {
337
+ id: string | null;
338
+ error: {
339
+ message: string;
340
+ } | null;
341
+ result: string[] | Record<string, Record<string, unknown>>;
342
+ };
343
+ meta: object;
344
+ }>;
224
345
  getMempoolInfo: _trpc_server.TRPCQueryProcedure<{
225
346
  input: {
226
347
  requestId: string | null;
@@ -269,6 +390,34 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
269
390
  };
270
391
  meta: object;
271
392
  }>;
393
+ getDifficulty: _trpc_server.TRPCQueryProcedure<{
394
+ input: {
395
+ requestId: string | null;
396
+ };
397
+ output: {
398
+ id: string | null;
399
+ error: {
400
+ message: string;
401
+ } | null;
402
+ result: number;
403
+ };
404
+ meta: object;
405
+ }>;
406
+ getNetworkHashPs: _trpc_server.TRPCQueryProcedure<{
407
+ input: {
408
+ requestId: string | null;
409
+ nblocks?: number | undefined;
410
+ height?: number | undefined;
411
+ };
412
+ output: {
413
+ id: string | null;
414
+ error: {
415
+ message: string;
416
+ } | null;
417
+ result: number;
418
+ };
419
+ meta: object;
420
+ }>;
272
421
  getBlockchainInfo: _trpc_server.TRPCQueryProcedure<{
273
422
  input: {
274
423
  requestId: string | null;
@@ -335,6 +484,35 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
335
484
  };
336
485
  meta: object;
337
486
  }>;
487
+ getTxOutProof: _trpc_server.TRPCQueryProcedure<{
488
+ input: {
489
+ requestId: string | null;
490
+ txids: string[];
491
+ blockhash?: string | undefined;
492
+ };
493
+ output: {
494
+ id: string | null;
495
+ error: {
496
+ message: string;
497
+ } | null;
498
+ result: string;
499
+ };
500
+ meta: object;
501
+ }>;
502
+ verifyTxOutProof: _trpc_server.TRPCQueryProcedure<{
503
+ input: {
504
+ requestId: string | null;
505
+ proof: string;
506
+ };
507
+ output: {
508
+ id: string | null;
509
+ error: {
510
+ message: string;
511
+ } | null;
512
+ result: string[];
513
+ };
514
+ meta: object;
515
+ }>;
338
516
  validateAddress: _trpc_server.TRPCQueryProcedure<{
339
517
  input: {
340
518
  requestId: string | null;
@@ -179,6 +179,82 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
179
179
  };
180
180
  meta: object;
181
181
  }>;
182
+ getBlockHeader: _trpc_server.TRPCQueryProcedure<{
183
+ input: {
184
+ requestId: string | null;
185
+ blockhash: string;
186
+ verbose?: boolean | undefined;
187
+ };
188
+ output: {
189
+ id: string | null;
190
+ error: {
191
+ message: string;
192
+ } | null;
193
+ result: string | {
194
+ hash: string;
195
+ confirmations: number;
196
+ height: number;
197
+ version: number;
198
+ merkleroot: string;
199
+ time: number;
200
+ nonce: number;
201
+ bits: string;
202
+ difficulty: number;
203
+ versionHex?: string | undefined;
204
+ mediantime?: number | undefined;
205
+ chainwork?: string | undefined;
206
+ previousblockhash?: string | undefined;
207
+ nextblockhash?: string | undefined;
208
+ };
209
+ };
210
+ meta: object;
211
+ }>;
212
+ getTxOut: _trpc_server.TRPCQueryProcedure<{
213
+ input: {
214
+ requestId: string | null;
215
+ txid: string;
216
+ n: number;
217
+ include_mempool?: boolean | undefined;
218
+ };
219
+ output: {
220
+ id: string | null;
221
+ error: {
222
+ message: string;
223
+ } | null;
224
+ result: {
225
+ bestblock: string;
226
+ confirmations: number;
227
+ value: number;
228
+ scriptPubKey: {
229
+ asm: string;
230
+ hex: string;
231
+ type: string;
232
+ reqSigs?: number | undefined;
233
+ addresses?: string[] | undefined;
234
+ };
235
+ coinbase: boolean;
236
+ } | null;
237
+ };
238
+ meta: object;
239
+ }>;
240
+ getChainTips: _trpc_server.TRPCQueryProcedure<{
241
+ input: {
242
+ requestId: string | null;
243
+ };
244
+ output: {
245
+ id: string | null;
246
+ error: {
247
+ message: string;
248
+ } | null;
249
+ result: {
250
+ height: number;
251
+ hash: string;
252
+ branchlen: number;
253
+ status: string;
254
+ }[];
255
+ };
256
+ meta: object;
257
+ }>;
182
258
  getRawMempool: _trpc_server.TRPCQueryProcedure<{
183
259
  input: {
184
260
  requestId: string | null;
@@ -221,6 +297,51 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
221
297
  };
222
298
  meta: object;
223
299
  }>;
300
+ getMempoolEntry: _trpc_server.TRPCQueryProcedure<{
301
+ input: {
302
+ requestId: string | null;
303
+ txid: string;
304
+ };
305
+ output: Record<string, unknown> | {
306
+ id: string | number | null;
307
+ error: {
308
+ message: string;
309
+ code?: number | undefined;
310
+ } | null;
311
+ result: Record<string, unknown> | null;
312
+ };
313
+ meta: object;
314
+ }>;
315
+ getMempoolAncestors: _trpc_server.TRPCQueryProcedure<{
316
+ input: {
317
+ requestId: string | null;
318
+ txid: string;
319
+ verbose?: boolean | undefined;
320
+ };
321
+ output: {
322
+ id: string | null;
323
+ error: {
324
+ message: string;
325
+ } | null;
326
+ result: string[] | Record<string, Record<string, unknown>>;
327
+ };
328
+ meta: object;
329
+ }>;
330
+ getMempoolDescendants: _trpc_server.TRPCQueryProcedure<{
331
+ input: {
332
+ requestId: string | null;
333
+ txid: string;
334
+ verbose?: boolean | undefined;
335
+ };
336
+ output: {
337
+ id: string | null;
338
+ error: {
339
+ message: string;
340
+ } | null;
341
+ result: string[] | Record<string, Record<string, unknown>>;
342
+ };
343
+ meta: object;
344
+ }>;
224
345
  getMempoolInfo: _trpc_server.TRPCQueryProcedure<{
225
346
  input: {
226
347
  requestId: string | null;
@@ -269,6 +390,34 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
269
390
  };
270
391
  meta: object;
271
392
  }>;
393
+ getDifficulty: _trpc_server.TRPCQueryProcedure<{
394
+ input: {
395
+ requestId: string | null;
396
+ };
397
+ output: {
398
+ id: string | null;
399
+ error: {
400
+ message: string;
401
+ } | null;
402
+ result: number;
403
+ };
404
+ meta: object;
405
+ }>;
406
+ getNetworkHashPs: _trpc_server.TRPCQueryProcedure<{
407
+ input: {
408
+ requestId: string | null;
409
+ nblocks?: number | undefined;
410
+ height?: number | undefined;
411
+ };
412
+ output: {
413
+ id: string | null;
414
+ error: {
415
+ message: string;
416
+ } | null;
417
+ result: number;
418
+ };
419
+ meta: object;
420
+ }>;
272
421
  getBlockchainInfo: _trpc_server.TRPCQueryProcedure<{
273
422
  input: {
274
423
  requestId: string | null;
@@ -335,6 +484,35 @@ declare function createDogecoinCoreClient(options?: DogecoinCoreClientOptions):
335
484
  };
336
485
  meta: object;
337
486
  }>;
487
+ getTxOutProof: _trpc_server.TRPCQueryProcedure<{
488
+ input: {
489
+ requestId: string | null;
490
+ txids: string[];
491
+ blockhash?: string | undefined;
492
+ };
493
+ output: {
494
+ id: string | null;
495
+ error: {
496
+ message: string;
497
+ } | null;
498
+ result: string;
499
+ };
500
+ meta: object;
501
+ }>;
502
+ verifyTxOutProof: _trpc_server.TRPCQueryProcedure<{
503
+ input: {
504
+ requestId: string | null;
505
+ proof: string;
506
+ };
507
+ output: {
508
+ id: string | null;
509
+ error: {
510
+ message: string;
511
+ } | null;
512
+ result: string[];
513
+ };
514
+ meta: object;
515
+ }>;
338
516
  validateAddress: _trpc_server.TRPCQueryProcedure<{
339
517
  input: {
340
518
  requestId: string | null;