Beispiel #1
0
        /// <summary>
        /// Returns result of mempool acceptance tests indicating if raw transaction (serialized, hex-encoded) would be accepted by mempool.
        /// </summary>
        /// <param name="rawTxs">An array of hex strings of raw transactions.</param>
        /// <param name="maxFeeRate">Reject transactions whose fee rate is higher than the specified value, expressed in BTC/kB</param>
        /// <returns></returns>
        public async Task <string> TestMemPoolAccept(List <string> rawTxs, string maxFeeRate)
        {
            TestMemPoolAccept testMemPoolAccept = new TestMemPoolAccept()
            {
                RawTxs = rawTxs, MaxFeeRate = maxFeeRate
            };
            string response = await httpRequest.SendReq(MethodName.testmempoolaccept, testMemPoolAccept);

            return(response);
        }
Beispiel #2
0
        /// <summary>
        /// Returns result of mempool acceptance tests indicating if raw transaction (serialized, hex-encoded) would be accepted by mempool.
        /// </summary>
        /// <param name="rawTx">A hex string of raw transaction.</param>
        /// <returns></returns>
        public async Task <string> TestMemPoolAccept(string rawTx)
        {
            TestMemPoolAccept testMemPoolAccept = new TestMemPoolAccept()
            {
                RawTx = rawTx
            };
            string response = await httpRequest.SendReq(MethodName.testmempoolaccept, testMemPoolAccept);

            return(response);
        }