@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
20 lines (16 loc) • 492 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 SaveMempoolParams = {
bitcoind: Bitcoind
}
/**
* savemempool
*
* Dumps the mempool to disk. It will fail until the previous dump is fully loaded.
*
*/
export function saveMempool(params: SaveMempoolParams) {
const { bitcoind, ...methodParams } = params
return request({ method: 'savemempool', params: methodParams }, bitcoind)
}