dogecoin-core-trpc-api 0.0.1 → 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.
- package/dist/{chunk-GZ3OT3YJ.js → chunk-FH72CRD7.js} +13 -13
- package/dist/client/index.d.cts +244 -0
- package/dist/client/index.d.ts +244 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +1 -1
- package/dist/server/index.cjs +14 -14
- package/dist/server/index.d.cts +244 -0
- package/dist/server/index.d.ts +244 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
package/dist/client/index.d.cts
CHANGED
|
@@ -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,129 @@ 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
|
+
}>;
|
|
421
|
+
getBlockchainInfo: _trpc_server.TRPCQueryProcedure<{
|
|
422
|
+
input: {
|
|
423
|
+
requestId: string | null;
|
|
424
|
+
};
|
|
425
|
+
output: {
|
|
426
|
+
id: string | null;
|
|
427
|
+
error: {
|
|
428
|
+
message: string;
|
|
429
|
+
} | null;
|
|
430
|
+
result: {
|
|
431
|
+
chain: string;
|
|
432
|
+
blocks: number;
|
|
433
|
+
headers: number;
|
|
434
|
+
bestblockhash: string;
|
|
435
|
+
difficulty: number;
|
|
436
|
+
mediantime: number;
|
|
437
|
+
verificationprogress: number;
|
|
438
|
+
initialblockdownload: boolean;
|
|
439
|
+
chainwork: string;
|
|
440
|
+
size_on_disk: number;
|
|
441
|
+
pruned: boolean;
|
|
442
|
+
pruneheight?: number | undefined;
|
|
443
|
+
automatic_pruning?: boolean | undefined;
|
|
444
|
+
prune_target_size?: number | undefined;
|
|
445
|
+
softforks?: unknown[] | Record<string, unknown> | undefined;
|
|
446
|
+
bip9_softforks?: Record<string, unknown> | undefined;
|
|
447
|
+
warnings?: string | undefined;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
meta: object;
|
|
451
|
+
}>;
|
|
452
|
+
listUnspent: _trpc_server.TRPCQueryProcedure<{
|
|
453
|
+
input: {
|
|
454
|
+
requestId: string | null;
|
|
455
|
+
minconf?: number | undefined;
|
|
456
|
+
maxconf?: number | undefined;
|
|
457
|
+
addresses?: string[] | undefined;
|
|
458
|
+
include_unsafe?: boolean | undefined;
|
|
459
|
+
query_options?: {
|
|
460
|
+
minimumAmount?: number | undefined;
|
|
461
|
+
maximumAmount?: number | undefined;
|
|
462
|
+
maximumCount?: number | undefined;
|
|
463
|
+
minimumSumAmount?: number | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
};
|
|
466
|
+
output: {
|
|
467
|
+
id: string | null;
|
|
468
|
+
error: {
|
|
469
|
+
message: string;
|
|
470
|
+
} | null;
|
|
471
|
+
result: {
|
|
472
|
+
txid: string;
|
|
473
|
+
vout: number;
|
|
474
|
+
scriptPubKey: string;
|
|
475
|
+
amount: number;
|
|
476
|
+
confirmations: number;
|
|
477
|
+
spendable: boolean;
|
|
478
|
+
solvable: boolean;
|
|
479
|
+
address?: string | undefined;
|
|
480
|
+
account?: string | undefined;
|
|
481
|
+
redeemScript?: string | undefined;
|
|
482
|
+
safe?: boolean | undefined;
|
|
483
|
+
}[];
|
|
484
|
+
};
|
|
485
|
+
meta: object;
|
|
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
|
+
}>;
|
|
272
516
|
validateAddress: _trpc_server.TRPCQueryProcedure<{
|
|
273
517
|
input: {
|
|
274
518
|
requestId: string | null;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -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,129 @@ 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
|
+
}>;
|
|
421
|
+
getBlockchainInfo: _trpc_server.TRPCQueryProcedure<{
|
|
422
|
+
input: {
|
|
423
|
+
requestId: string | null;
|
|
424
|
+
};
|
|
425
|
+
output: {
|
|
426
|
+
id: string | null;
|
|
427
|
+
error: {
|
|
428
|
+
message: string;
|
|
429
|
+
} | null;
|
|
430
|
+
result: {
|
|
431
|
+
chain: string;
|
|
432
|
+
blocks: number;
|
|
433
|
+
headers: number;
|
|
434
|
+
bestblockhash: string;
|
|
435
|
+
difficulty: number;
|
|
436
|
+
mediantime: number;
|
|
437
|
+
verificationprogress: number;
|
|
438
|
+
initialblockdownload: boolean;
|
|
439
|
+
chainwork: string;
|
|
440
|
+
size_on_disk: number;
|
|
441
|
+
pruned: boolean;
|
|
442
|
+
pruneheight?: number | undefined;
|
|
443
|
+
automatic_pruning?: boolean | undefined;
|
|
444
|
+
prune_target_size?: number | undefined;
|
|
445
|
+
softforks?: unknown[] | Record<string, unknown> | undefined;
|
|
446
|
+
bip9_softforks?: Record<string, unknown> | undefined;
|
|
447
|
+
warnings?: string | undefined;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
meta: object;
|
|
451
|
+
}>;
|
|
452
|
+
listUnspent: _trpc_server.TRPCQueryProcedure<{
|
|
453
|
+
input: {
|
|
454
|
+
requestId: string | null;
|
|
455
|
+
minconf?: number | undefined;
|
|
456
|
+
maxconf?: number | undefined;
|
|
457
|
+
addresses?: string[] | undefined;
|
|
458
|
+
include_unsafe?: boolean | undefined;
|
|
459
|
+
query_options?: {
|
|
460
|
+
minimumAmount?: number | undefined;
|
|
461
|
+
maximumAmount?: number | undefined;
|
|
462
|
+
maximumCount?: number | undefined;
|
|
463
|
+
minimumSumAmount?: number | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
};
|
|
466
|
+
output: {
|
|
467
|
+
id: string | null;
|
|
468
|
+
error: {
|
|
469
|
+
message: string;
|
|
470
|
+
} | null;
|
|
471
|
+
result: {
|
|
472
|
+
txid: string;
|
|
473
|
+
vout: number;
|
|
474
|
+
scriptPubKey: string;
|
|
475
|
+
amount: number;
|
|
476
|
+
confirmations: number;
|
|
477
|
+
spendable: boolean;
|
|
478
|
+
solvable: boolean;
|
|
479
|
+
address?: string | undefined;
|
|
480
|
+
account?: string | undefined;
|
|
481
|
+
redeemScript?: string | undefined;
|
|
482
|
+
safe?: boolean | undefined;
|
|
483
|
+
}[];
|
|
484
|
+
};
|
|
485
|
+
meta: object;
|
|
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
|
+
}>;
|
|
272
516
|
validateAddress: _trpc_server.TRPCQueryProcedure<{
|
|
273
517
|
input: {
|
|
274
518
|
requestId: string | null;
|