MCPcopy Create free account
hub / github.com/bitpay/bitcore / command

Function command

packages/bitcore-cli/src/commands/clearcache.ts:4–18  ·  view source on GitHub ↗
(args: CommonArgs)

Source from the content-addressed store, hash-verified

2import type { CommonArgs } from '../../types/cli';
3
4export function command(args: CommonArgs) {
5 const { program } = args;
6 program
7 .description('Clear the wallet\'s transaction cache at BWS')
8 .usage('<walletName> --command clearcache [options]')
9 .optionsGroup('Clear Cache Options')
10 .parse(process.argv);
11
12 const opts = program.opts();
13 if (opts.help) {
14 program.help();
15 }
16
17 return opts;
18}
19
20export async function clearCache(args: CommonArgs) {
21 const { wallet, opts } = args;

Callers 1

clearCacheFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected