/**<summary>Returns all transaction ids in memory pool as a json array of string transaction ids.</summary>**/ ///<param name="returnFormat">"Json" or "Array of transaction ids".</param> public async Task <string> GetRawMempool(ReturnFormat returnFormat = ReturnFormat.JSON) { GetMemPool getMemPool = new GetMemPool { ReturnFormat = returnFormat }; string response = await httpRequest.SendReq(MethodName.getrawmempool, getMemPool); return(response); }
/**<summary>Returns mempool data for given transaction</summary>**/ ///<param name="txid">The transaction id (must be in mempool).</param> public async Task <string> GetMemPoolEntry(string txid) { GetMemPool memPoolAncestors = new GetMemPool { Txid = txid }; string response = await httpRequest.SendReq(MethodName.getmempoolentry, memPoolAncestors); return(response); }
/**<summary>If txid is in the mempool, returns all in-mempool descendants.</summary>**/ ///<param name="txid">The transaction id (must be in mempool).</param> ///<param name="returnFormat">"Json" or "Array of transaction ids".</param> public async Task <string> GetMemPoolDescendants(string txid, ReturnFormat returnFormat = ReturnFormat.JSON) { GetMemPool memPoolAncestors = new GetMemPool { ReturnFormat = returnFormat, Txid = txid }; string response = await httpRequest.SendReq(MethodName.getmempooldescendants, memPoolAncestors); return(response); }