@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
21 lines (17 loc) • 514 B
text/typescript
// Auto synced from github actions. Don't change this file
import { Bitcoind } from '../../types.js'
import request from '../../rpc-request.js'
type ListWalletsParams = {
bitcoind: Bitcoind
}
/**
* listwallets
*
* Returns a list of currently loaded wallets.
* For full information on the wallet, use "getwalletinfo"
*
*/
export function listWallets(params: ListWalletsParams) {
const { bitcoind, ...methodParams } = params
return request({ method: 'listwallets', params: methodParams }, bitcoind)
}