bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
23 lines (22 loc) • 1.21 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.testMempoolAccept = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* testmempoolaccept ["rawtx",...] ( maxfeerate )
*
* Returns result of mempool acceptance tests indicating if raw transaction(s) (serialized, hex-encoded) would be accepted by mempool.
* If multiple transactions are passed in, parents must come before children and package policies apply: the transactions cannot conflict with any mempool transactions or each other.
* If one transaction fails, other transactions may not be fully validated (the 'allowed' key will be blank).
* The maximum number of transactions allowed is 25.
* This checks if transactions violate the consensus or policy rules.
* See sendrawtransaction call.
*
*/
function testMempoolAccept(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'testmempoolaccept', params: methodParams }, bitcoind);
}
exports.testMempoolAccept = testMempoolAccept;