public BlockInfo GetBlockInfo(BlockHandle handle) { var info = new BlockInfo(); var returnCode = PInvokes.cashdb_utxo_get_blockinfo( _connection, handle, ref info); if (returnCode != ReturnCode.SUCCESS) { throw new CashDBException("GetBlockInfo failed.", returnCode); } return(info); }