/**<summary>Prune blockchain to a UNIX epoch time, * to prune blocks whose block time is at least 2 hours older than the provided timestamp.</summary>**/ ///<param name="unixTimestamp">A UNIX epoch time</param> public async Task <string> PruneBlockchain(long unixTimestamp) { PruneBlockChain pruneBlockChain = new PruneBlockChain { UnixTimestamp = unixTimestamp }; string response = await httpRequest.SendReq(MethodName.pruneblockchain, pruneBlockChain); return(response); }
/**<summary>Prune blockchain to a specific height</summary>**/ ///<param name="height">The block height to prune up to. May be set to a discrete height.</param> public async Task <string> PruneBlockchain(int height) { PruneBlockChain pruneBlockChain = new PruneBlockChain { Height = height }; string response = await httpRequest.SendReq(MethodName.pruneblockchain, pruneBlockChain); return(response); }