testmempoolaccept (0.17.0 RPC) blockchain getbestblockhash getblock getblockchaininfo getblockcount getblockhash getblockheader getblockstats getchaintips getchaintxstats getdifficulty getmempoolancestors getmempooldescendants getmempoolentry getmempoolinfo getrawmempool gettxout gettxoutproof gettxoutsetinfo preciousblock pruneblockchain savemempool scantxoutset verifychain verifytxoutproof control getmemoryinfo help logging stop uptime generating generate generatetoaddress mining getblocktemplate getmininginfo getnetworkhashps prioritisetransaction submitblock network addnode clearbanned disconnectnode getaddednodeinfo getconnectioncount getnettotals getnetworkinfo getpeerinfo listbanned ping setban setnetworkactive rawtransactions combinepsbt combinerawtransaction converttopsbt createpsbt createrawtransaction decodepsbt decoderawtransaction decodescript finalizepsbt fundrawtransaction getrawtransaction sendrawtransaction signrawtransaction signrawtransactionwithkey testmempoolaccept util createmultisig estimatesmartfee signmessagewithprivkey validateaddress verifymessage wallet abandontransaction abortrescan addmultisigaddress backupwallet bumpfee createwallet dumpprivkey dumpwallet encryptwallet getaccount getaccountaddress getaddressbyaccount getaddressesbylabel getaddressinfo getbalance getnewaddress getrawchangeaddress getreceivedbyaccount getreceivedbyaddress gettransaction getunconfirmedbalance getwalletinfo importaddress importmulti importprivkey importprunedfunds importpubkey importwallet keypoolrefill listaccounts listaddressgroupings listlabels listlockunspent listreceivedbyaccount listreceivedbyaddress listsinceblock listtransactions listunspent listwallets loadwallet lockunspent move removeprunedfunds rescanblockchain sendfrom sendmany sendtoaddress setaccount sethdseed settxfee signmessage signrawtransactionwithwallet unloadwallet walletcreatefundedpsbt walletlock walletpassphrase walletpassphrasechange walletprocesspsbt zmq getzmqnotifications testmempoolaccept ["rawtxs"] ( allowhighfees ) Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool. This checks if the transaction violates the consensus or policy rules. See sendrawtransaction call. Arguments: 1. ["rawtxs"] (array, required) An array of hex strings of raw transactions. Length must be one for now. 2. allowhighfees (boolean, optional, default=false) Allow high fees Result: [ (array) The result of the mempool acceptance test for each raw transaction in the input array. Length is exactly one for now. { "txid" (string) The transaction hash in hex "allowed" (boolean) If the mempool allows this tx to be inserted "reject-reason" (string) Rejection string (only present when 'allowed' is false) } ] Examples: Create a transaction > bitcoin-cli createrawtransaction "[{\"txid\" : \"mytxid\",\"vout\":0}]" "{\"myaddress\":0.01}" Sign the transaction, and get back the hex > bitcoin-cli signrawtransaction "myhex" Test acceptance of the transaction (signed hex) > bitcoin-cli testmempoolaccept "signedhex" As a json rpc call > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/